diff options
author | gentoo90 <gentoo90@gmail.com> | 2015-04-25 00:04:29 +0300 |
---|---|---|
committer | gentoo90 <gentoo90@gmail.com> | 2015-04-25 00:15:56 +0300 |
commit | 3aedde50fb6f0442e999cb0515478175db3e8228 (patch) | |
tree | 145d5845e8ec163e762b99e254477361f4810661 /dev-rust | |
parent | Merge pull request #110 from gentoo90/add-channel (diff) | |
download | rust-3aedde50fb6f0442e999cb0515478175db3e8228.tar.gz rust-3aedde50fb6f0442e999cb0515478175db3e8228.tar.bz2 rust-3aedde50fb6f0442e999cb0515478175db3e8228.zip |
Add dev-rust/cargo-0.2.0 ebuild
Build fails, so added as masked.
Reason for adding: as a template for next releases.
Diffstat (limited to 'dev-rust')
-rw-r--r-- | dev-rust/cargo/Manifest | 2 | ||||
-rw-r--r-- | dev-rust/cargo/cargo-0.2.0.ebuild | 55 |
2 files changed, 57 insertions, 0 deletions
diff --git a/dev-rust/cargo/Manifest b/dev-rust/cargo/Manifest new file mode 100644 index 0000000..9ebbb1d --- /dev/null +++ b/dev-rust/cargo/Manifest @@ -0,0 +1,2 @@ +DIST cargo-nightly-i686-unknown-linux-gnu-2015-04-02.tar.gz 3683398 SHA256 c7ffc239045ba788a59b00a830725114e727ade52fc2dda0994e5d97ff64c201 SHA512 5b5833304881ded5a5af4bcaf465dfdd2303f4ed8dc31af12e94ae3a2e7450bc0c4dc1a08fca994b2e9d7a688bf6ef44980e9bb9f48fb138d667ead90bb40df8 WHIRLPOOL 6766b037788dd98452134e9de6c7bb9c99d71704f739e0a7d7fb610c6d35663e408994bf23063ded2b6f893766edd7618ee146d08c1a3f2910c9738bb6ec5d22 +DIST cargo-nightly-x86_64-unknown-linux-gnu-2015-04-02.tar.gz 3606974 SHA256 16b6338ba2942989693984ba4dbd057c2801e8805e6da8fa7b781b00e722d117 SHA512 23be7c8ce4676b03d7957502e28967ef714c5a8d659d430b8475c4b36fbe0eac42ac4176fdea3ada1e6c082bec9f30bdaf2e36aeb1d823bcbcd3c8820aed5bda WHIRLPOOL 2ee3d37c594ace149829aa69edefa21dd04eddc6b236536d415fd26acfc1e1dc2cef6585259619744b258e51be2b62f36e0fe87f884b94b2b634cdab5efa4bf6 diff --git a/dev-rust/cargo/cargo-0.2.0.ebuild b/dev-rust/cargo/cargo-0.2.0.ebuild new file mode 100644 index 0000000..3d1e175 --- /dev/null +++ b/dev-rust/cargo/cargo-0.2.0.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 + +inherit eutils bash-completion-r1 git-r3 + +DESCRIPTION="A Rust's package manager" +HOMEPAGE="http://crates.io/" + +# version of cargo binary to bootstrap with +SNAPSHOT_DATE="2015-04-02" + +SRC_URI=" + x86? ( https://static-rust-lang-org.s3.amazonaws.com/cargo-dist/${SNAPSHOT_DATE}/cargo-nightly-i686-unknown-linux-gnu.tar.gz -> + cargo-nightly-i686-unknown-linux-gnu-${SNAPSHOT_DATE}.tar.gz ) + amd64? ( https://static-rust-lang-org.s3.amazonaws.com/cargo-dist/${SNAPSHOT_DATE}/cargo-nightly-x86_64-unknown-linux-gnu.tar.gz -> + cargo-nightly-x86_64-unknown-linux-gnu-${SNAPSHOT_DATE}.tar.gz )" + +LICENSE="|| ( MIT Apache-2.0 )" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +IUSE="" + +EGIT_REPO_URI="https://github.com/rust-lang/cargo.git" +EGIT_COMMIT="${PV}" + +COMMON_DEPEND=">=virtual/rust-999 + sys-libs/zlib + dev-libs/openssl + net-libs/libssh2 + net-libs/http-parser" +RDEPEND="${COMMON_DEPEND} + net-misc/curl[curl_ssl_openssl]" +DEPEND="${COMMON_DEPEND} + dev-util/cmake" + +src_unpack() { + git-r3_checkout + unpack "${A}" + mv cargo-nightly-*-unknown-linux-gnu "cargo-snapshot" +} + +src_configure() { + ./configure --prefix="${EPREFIX}"/usr --disable-verify-install \ + --local-cargo="${WORKDIR}/cargo-snapshot/cargo/bin/cargo" || die +} + +src_install() { + CFG_DISABLE_LDCONFIG="true" emake DESTDIR="${D}" install || die + dobashcomp "${ED}"/usr/etc/bash_completion.d/cargo + rm -rf "${ED}"/usr/etc +} |