Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=756783211fc748b3c88110275f5543b08354c411

commit 756783211fc748b3c88110275f5543b08354c411
Author: crazy <[email protected]>
Date:   Tue Aug 1 16:34:15 2017 +0200

cargo-0.20.0-1-x86_64
* Version bump ( r1 )
* we now makedepends=() self bc no way to bootstrap with provided bin
* we are also forced to build with cargo! which is really a POS
* bc it doesn't care about anything but the bin so we have to install
* any other files 'manually' ... eg: man pages , docs , etc

diff --git a/source/devel/cargo/FrugalBuild b/source/devel/cargo/FrugalBuild
index b7f9653..b02b454 100644
--- a/source/devel/cargo/FrugalBuild
+++ b/source/devel/cargo/FrugalBuild
@@ -2,61 +2,42 @@
# Maintainer: crazy <[email protected]>

pkgname=cargo
-pkgver=0.17.0
+pkgver=0.20.0
pkgrel=1
pkgdesc="The Rust package manager."
url="https://crates.io/";
-depends=('rust>=1.16.0' 'curl' 'openssl')
-makedepends=('curl' 'python' 'perl' 'jemalloc' 'git' 'cmake') #'llvm>=3.9.0')
+depends=('rust>=1.17.0' 'curl' 'openssl')
+makedepends=('curl' 'python' 'perl' 'jemalloc' 'git' 'cmake' 'llvm>=3.9.0' 
'cargo')
groups=('devel')
archs=("x86_64")
_F_github_author="rust-lang"
_F_github_tag="yes"
Finclude github
-## we use this to bootstrap.. withoout we need have an makedepnd on self ... 
weird..
-#source+=(https://static.rust-lang.org/cargo-dist/cargo-nightly-x86_64-unknown-linux-gnu.tar.gz)
-source+=(https://static.rust-lang.org/cargo-dist/2016-09-01/cargo-nightly-x86_64-unknown-linux-gnu.tar.gz)
-sha1sums=('a208a9b7d9fd2d03bb7fb572e6af83cd3127ca8d' \
-          '5f5e33bd67354f6d6669c5843888029c671da539')
+sha1sums=('6c37c9acb47cea0bec4f882b215a52e840f0a7f6')
options+=('static' 'nostrip' 'noversrc')

build() {

## such a ..
+       ## we need makedepend self for now..
+       ## the bin provided from the devels gives ssl error so no way
+       ## to use it to bootstrap...
Fcd
-       ## fix installer stuff missing from tarball
-       Fexec cd src || Fdie
-       Fexec rm -rfv rust-installer || Fdie
-       git clone https://github.com/rust-lang/rust-installer.git
+       Fexec cargo build --release --verbose || Fdie
+       Fexec cargo install --root "$Fdestdir"/usr || Fdie

-       ## let us try now :)
-       Fexec cd .. || Fdie
+       ## man
+       local i
+       for i in src/etc/man/*
+       do
+               Fmanrel $i
+       done

-       CARGO_BIN="cargo-nightly-x86_64-unknown-linux-gnu/cargo/bin/cargo"
-
-       ### set verbose
-       _F_make_opts+=" VERBOSE=1"
-
-       Fbuild  \
-               --rustc=/usr/bin/rustc \
-               --rustdoc=/usr/bin/rustdoc \
-               --cargo=$Fsrcdir/$CARGO_BIN \
-               --sysconfdir=/etc \
-               --disable-debug \
-               --disable-verify-install \
-               --disable-cross-tests \
-               --enable-optimize \
-               --local-rust-root=/usr \
-               --build=x86_64-unknown-linux-gnu \
-               --target=x86_64-unknown-linux-gnu \
-               --host=x86_64-unknown-linux-gnu
-
-       ## conflicts
-       Frm usr/lib/rustlib
-
-       ## broken PATH
-       Fmv usr/etc etc
+       Finstallrel 0644 src/etc/_cargo /usr/share/zsh/site-functions/_cargo
+       Finstallrel 0644 src/etc/cargo.bashcomp.sh 
/usr/share/bash-completion/completions/cargo

+       ## ???!!!
+       Frm usr/.crates.toml
}

# optimization ok
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to