aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJory A. Pratt <anarchy@gentoo.org>2018-06-28 19:31:16 -0500
committerJory A. Pratt <anarchy@gentoo.org>2018-06-28 19:31:16 -0500
commitb91983e38004299f2fbd19ca43ad3ceef73c1003 (patch)
tree3ac50d4ff3c7cec3cd1d347fdee42c2901597309 /dev-util
parentnet-misc/openssh: fix is now in the tree (diff)
downloadmusl-b91983e38004299f2fbd19ca43ad3ceef73c1003.tar.gz
musl-b91983e38004299f2fbd19ca43ad3ceef73c1003.tar.bz2
musl-b91983e38004299f2fbd19ca43ad3ceef73c1003.zip
dev-util/cargo: Add cargo-0.28.0
Diffstat (limited to 'dev-util')
-rw-r--r--dev-util/cargo/Manifest11
-rw-r--r--dev-util/cargo/cargo-0.28.0.ebuild236
2 files changed, 247 insertions, 0 deletions
diff --git a/dev-util/cargo/Manifest b/dev-util/cargo/Manifest
index b8c4fb3..da95e49 100644
--- a/dev-util/cargo/Manifest
+++ b/dev-util/cargo/Manifest
@@ -20,7 +20,18 @@ DIST cargo-0.26.0-i686-unknown-linux-musl.tar.xz 3951224 BLAKE2B 2d2189e7c18bfdf
DIST cargo-0.26.0-x86_64-unknown-linux-gnu.tar.xz 4134388 BLAKE2B 961df201fa4f87308a28b217296c7927e6b67f513e7eaaf5cf12675ab4c01c50e60bf8756c2f8fafe1e4b2d7e3e5a8daa446fc1b72014828d0233209434f1dda SHA512 476041cb12a49819250d96f246d900769ab83386e584b3264b4f47ef5a2182d410a8606054a330da653cf2b2a290193c7260af5c98a29d6969b6c7c5169876ee
DIST cargo-0.26.0-x86_64-unknown-linux-musl.tar.xz 3869132 BLAKE2B 9647b50bcfadce9b1b86e2ae79b05f9c371f49d5277f6bf2fc089c35deb4274156e134e479e78154005549356c420d27d2b73802a5f5bc44dd86452c78fb1a94 SHA512 01e401b8bbd9f9bc0df317032de4b019e8a3cbcd64d4b9b8d54174588d1b0c956b823916aaa2251f48b716c42167694bcef1599069c84c0bce16fa1eed548278
DIST cargo-0.26.0.tar.gz 698823 BLAKE2B a16b69818c029d9e2f6a704d6c5875d2cd01d4c120b9df18c9e33df56009c58870e7f48a0a3709dabbcc88b535a0762fca3ab11069e4ba2506566f89e8773533 SHA512 0ceba204f6effb0b636b8a4cab38ae876e32d548a158cc2a67f3f80f144d4a05ce5ec44df74eb7e17a3dcd57105298dae1ac599b917c0dbb4b7386d3cf424070
+DIST cargo-0.27.0-aarch64-unknown-linux-gnu.tar.xz 3447968 BLAKE2B 69ae05955214d37e05d62348cb006dadff258f600e3ba89c2d185c59c144486c7987eb154330dd203963c8d7761d8a74b8c41545eaed99761e7115ff5d19e345 SHA512 ba04d3c52ffbfc89bc92e17c6f850bd64335e15aedb4c884ea5a19fb6e2395d8054d3678b6e13d81903bc85a3ddd38bec3561266de783bc0f920f2d76c2834a5
+DIST cargo-0.27.0-aarch64-unknown-linux-musl.tar.xz 3457764 BLAKE2B 7c05d4a44110edeee92d93ba42778a362a3f9dc032e8072fc614f3dd2a2815223c6ad9b4a5bf8a76ee55cb918e49598edb0be913f95ec45005eb0a9d5b5639b5 SHA512 de52796e3aaf2fb76ff602bb8ca6f57127712c8d9d92384b857b530ad29946691f810fdb254568bf0af2a79467e7e3cee60406e2aabc05f3505bb3a834f7a9c5
+DIST cargo-0.27.0-arm-unknown-linux-gnueabi.tar.xz 4026932 BLAKE2B 4a7265f400675b671e94dd3e271621dddfaead6167ff659426afdcab18295286882105c548a31182b2753c91e0ae4c004c2952a6715883c2fc8893679e6785cc SHA512 e40ea55556bf901ab24df116c726298daa4d8cf734a39dc515ad3f0b93573b1200a4c8407dfc60365310ccb95b364c74f5b212f8840aae571d6766aca89f9cc8
+DIST cargo-0.27.0-arm-unknown-linux-musleabi.tar.xz 3496144 BLAKE2B c73a4d09a2b00fb66ff430ac5aab41aefc6a7fe6093823b900c73ec2541951b36a0c2db187892217c00f01ea0ef45a988bc3907748b578ce0908ee4d9a576736 SHA512 70888207b5e16bdc1804b6e1722a6405ddd0cab22060c018ebb1ba8234ed92312b789e4b7d75e2e3fcf4ba18e21c7967e1ced39a361735bf9a2323e6816fe98b
+DIST cargo-0.27.0-armv7-unknown-linux-gnueabihf.tar.xz 4059300 BLAKE2B 2cc0aeca591b7dc16357d5210d18efcaff7e812ac72976dd1dfb0da97463b9ad3447080fa0fc81387023c6d74130a6cfe509f6a02b38532452a9834ff8219d3c SHA512 689ebba97c27dff1a0e9fc41d24c4534f01cb98b29c5967dce365717daed406407ced7b7d85884c214d25f5a5ab9c0882c59709397b32afce0b6e66c1f9fdace
+DIST cargo-0.27.0-armv7-unknown-linux-musleabihf.tar.xz 3479432 BLAKE2B 8a9c7b95c8e50deed8b6471f570082d6dcb06c6f0c8ca764056c7605bab8e02d6991d8ebf8992fc406f20cbb85f0c8ee6628f8901c2ff5df69d74c2859964362 SHA512 b0c5866d3a9c36c7cc3cdf3efc98e456191fa82edc3e2bad385566c5cc86c55432b9f0e2aa1485e6573119f845e1101d585fb9b329b8394716c553edc23e5f64
+DIST cargo-0.27.0-i686-unknown-linux-gnu.tar.xz 4570084 BLAKE2B 9f62bcf03d8eefdc5681929fce4f7835ba5c4181324fcb43d2594cf61bd2e460496380abd8da37df0b2977a02e3c027a436297f06b6ca28da82e6b540df9f35a SHA512 212d5634e369c913612a2023cd0d1b81f4f1d8f37e504a07ce855573a6dd0fb2084ec9a0e00a86b457adb7e08b46215f73ede9222ad01213e4c9e5a4ff99cca9
+DIST cargo-0.27.0-i686-unknown-linux-musl.tar.xz 4015296 BLAKE2B 1ec166ba267546057da2431335026ca6349ab1823ee4250153d85ea412b70a480b0692330ad2a3bca320f2dc06973ea6a3a7559ae4c5d19c09e9ed853f40ded1 SHA512 146bc4793e34a478723ad1260c132ea8f6a8271b03e20d092e026b116d2aa32a075c3a1e1bf7c11106c3a72137bb9fb0c51a8ad70973702ae52d8b1239e2e849
+DIST cargo-0.27.0-x86_64-unknown-linux-gnu.tar.xz 4524080 BLAKE2B e2a65dafed7ce552f6fbf8b641409cd6fcd924c10e0779c7587fae5c3cba23626f7913cab3b8741d9bc9aac471c855e32b8647769a3750baee1d377031e9eb9b SHA512 c0609edeaebd3e851c94933b3e5c56e8fd394c5b3a572bdacdf32dba5a2de9bdf6468879017f97002bea990c1ec1a970e017d1cf2fbcb22f6cf1ac39dbd1d947
+DIST cargo-0.27.0-x86_64-unknown-linux-musl.tar.xz 4045136 BLAKE2B 58b168fbae0286daa0929b2dfeabb8914bacac82b24ded57a55e0dc40fcb2e11bac45bde824a92e4dc70e5d8f6c667e71cf04ff1ecbc14f732a7270ddf503298 SHA512 c2f4f343bb12f53aaabf509b7f9f98bc9799feb297e71e729206f1d584433acd88e3febc1de9706adf8c1534eaee9942e03e7803b4065827b16dac3484d25f92
DIST cargo-0.27.0.tar.gz 728885 BLAKE2B 1966e381b9c286786f8b28257f155d2a10d23727978f4f0a1954294c1b82ab0d2aecd511a72e39f9c6fe955bb237cee4e53f8542270eee8c2eea3cb7dc956fda SHA512 8b984a1a64427d09d29ed82cc736abb0a2e936a253ef3ec05b4934b2b541758bd4e3c68ca21c80649de83eac2742f84f2c81f29fe62d85a150ad0cf2c50a990e
+DIST cargo-0.28.0.tar.gz 761690 BLAKE2B 0dec2524053ce56013108f031e57b7b8c69daa95f4d594fa7a849e91dc317e07ea0540c322c7473242640567c0bf9f565661e9bf91ee8b96008986c9a1e2fd89 SHA512 609ce0b7539511e5dc9f5d426c761dc074406cc3f2f4b4a8bd4b1f01dbd5288b33403b64b2078e5f5ef1cf40d468468099bfab24af751bb5b4d4912cd5f72030
DIST cc-1.0.10.crate 41311 BLAKE2B 30dc4dc3efa8f2143341a7519c9a6a46b7987faed78b55b338bafac4f7550ac3534f5c876e174a938916d621435396a2066e001794f49d1e59be1e3815605d76 SHA512 b1f492cf2ab1b31ca11524703f02148a16bf54e57a05f2d988dea8b8f75c9e997b8c6ea6569ac9a47dbf0569adcc23b61db1537a0c6e7957fd736c64b9fb4ed3
DIST cc-1.0.9.crate 41193 BLAKE2B 15643c05698e5e9cfb955495db401b11a28c0047fd35945d17ba4656d44551b73451b8c4399cb1338311228c4fa059318c55e3f59dc0ecae2374ba1b577a8d45 SHA512 7423164d85ac2d57782b6f259ea7e7e581fd8ecb7f3cfe4f8767c05caaf6e25d8cd73031123b60f0df96b2cd4c265d92a66933b7aaef4aae998cdc0e179618f4
DIST cfg-if-0.1.2.crate 6668 BLAKE2B fd1960dfd30b3514bdb9943dba6418957068aaad3548667216d6dd4e4921a0df07d96cc4131f7b5121cacfb91aa59a802a47663a7b04ff401fa5b25ee1d321ea SHA512 ed6732d8ef2c99d99861f5dcfec3bcd2d1b62dcf6e8e4e88ca25148b5566f86418270dbbe9a7d2fae62a8320d432c5e0474059fa25a11c0f66787084e36f36aa
diff --git a/dev-util/cargo/cargo-0.28.0.ebuild b/dev-util/cargo/cargo-0.28.0.ebuild
new file mode 100644
index 0000000..625f656
--- /dev/null
+++ b/dev-util/cargo/cargo-0.28.0.ebuild
@@ -0,0 +1,236 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+CRATES="
+aho-corasick-0.6.4
+ansi_term-0.11.0
+atty-0.2.9
+backtrace-0.3.6
+backtrace-sys-0.1.16
+bitflags-1.0.1
+bufstream-0.1.3
+cc-1.0.10
+cfg-if-0.1.2
+clap-2.31.2
+cmake-0.1.30
+commoncrypto-0.2.0
+commoncrypto-sys-0.2.0
+core-foundation-0.5.1
+core-foundation-sys-0.5.1
+crates-io-0.16.0
+crossbeam-0.3.2
+crypto-hash-0.3.1
+curl-0.4.12
+curl-sys-0.4.2
+dtoa-0.4.2
+env_logger-0.5.9
+failure-0.1.1
+failure_derive-0.1.1
+filetime-0.1.15
+filetime-0.2.0
+flate2-1.0.1
+fnv-1.0.6
+foreign-types-0.3.2
+foreign-types-shared-0.1.1
+fs2-0.4.3
+fuchsia-zircon-0.3.3
+fuchsia-zircon-sys-0.3.3
+git2-0.7.1
+git2-curl-0.8.1
+glob-0.2.11
+globset-0.4.0
+hamcrest-0.1.1
+hex-0.3.2
+home-0.3.3
+humantime-1.1.1
+idna-0.1.4
+ignore-0.4.2
+itoa-0.4.1
+jobserver-0.1.11
+kernel32-sys-0.2.2
+lazy_static-1.0.0
+lazycell-0.6.0
+libc-0.2.40
+libgit2-sys-0.7.1
+libssh2-sys-0.2.6
+libz-sys-1.0.18
+log-0.4.1
+matches-0.1.6
+memchr-2.0.1
+miniz-sys-0.1.10
+miow-0.3.1
+num-traits-0.2.4
+num_cpus-1.8.0
+openssl-0.10.6
+openssl-probe-0.1.2
+openssl-sys-0.9.28
+percent-encoding-1.0.1
+pkg-config-0.3.11
+proc-macro2-0.3.7
+quick-error-1.2.1
+quote-0.3.15
+quote-0.5.2
+rand-0.4.2
+redox_syscall-0.1.37
+redox_termios-0.1.1
+regex-0.2.11
+regex-1.0.0
+regex-syntax-0.5.6
+regex-syntax-0.6.0
+remove_dir_all-0.5.1
+rustc-demangle-0.1.8
+same-file-1.0.2
+schannel-0.1.12
+scopeguard-0.3.3
+semver-0.9.0
+semver-parser-0.7.0
+serde-1.0.55
+serde_derive-1.0.55
+serde_ignored-0.0.4
+serde_json-1.0.17
+shell-escape-0.1.4
+socket2-0.3.5
+strsim-0.7.0
+syn-0.11.11
+syn-0.13.10
+synom-0.11.3
+synstructure-0.6.1
+tar-0.4.15
+tempfile-3.0.2
+termcolor-0.3.6
+termion-1.5.1
+textwrap-0.9.0
+thread_local-0.3.5
+toml-0.4.6
+ucd-util-0.1.1
+unicode-bidi-0.3.4
+unicode-normalization-0.1.7
+unicode-width-0.1.4
+unicode-xid-0.0.4
+unicode-xid-0.1.0
+unreachable-1.0.0
+url-1.7.0
+utf8-ranges-1.0.0
+vcpkg-0.2.3
+vec_map-0.8.1
+void-1.0.2
+walkdir-2.1.4
+winapi-0.2.8
+winapi-0.3.4
+winapi-build-0.1.1
+winapi-i686-pc-windows-gnu-0.4.0
+winapi-x86_64-pc-windows-gnu-0.4.0
+wincolor-0.1.6"
+
+inherit bash-completion-r1 cargo epatch versionator
+
+case "${CHOST}" in
+ armv7a*)
+ CARGOARCH=armv7 ;;
+ arm*)
+ CARGOARCH=arm ;;
+ *)
+ CARGOARCH=${CHOST%%-*} ;;
+esac
+case "${CHOST}" in
+ armv7a-hardfloat-*)
+ CARGOLIBC=${ELIBC/glibc/gnu}eabihf ;;
+ arm*)
+ CARGOLIBC=${CHOST##*-} ;;
+ *)
+ CARGOLIBC=${ELIBC/glibc/gnu} ;;
+esac
+CARGOHOST=${CARGOARCH}-unknown-${KERNEL}-${CARGOLIBC}
+CARGO_SNAPSHOT_VERSION="0.$(($(get_version_component_range 2) - 1)).0"
+
+DESCRIPTION="The Rust's package manager"
+HOMEPAGE="http://crates.io"
+SRC_URI="https://github.com/rust-lang/cargo/archive/${PV}.tar.gz -> ${P}.tar.gz
+ $(cargo_crate_uris ${CRATES})
+ amd64? (
+ elibc_glibc? ( https://static.rust-lang.org/dist/cargo-${CARGO_SNAPSHOT_VERSION}-x86_64-unknown-linux-gnu.tar.xz )
+ elibc_musl? ( https://portage.smaeul.xyz/distfiles/cargo-${CARGO_SNAPSHOT_VERSION}-x86_64-unknown-linux-musl.tar.xz )
+ )
+ arm? (
+ elibc_glibc? (
+ https://static.rust-lang.org/dist/cargo-${CARGO_SNAPSHOT_VERSION}-arm-unknown-linux-gnueabi.tar.xz
+ https://static.rust-lang.org/dist/cargo-${CARGO_SNAPSHOT_VERSION}-armv7-unknown-linux-gnueabihf.tar.xz
+ )
+ elibc_musl? (
+ https://portage.smaeul.xyz/distfiles/cargo-${CARGO_SNAPSHOT_VERSION}-arm-unknown-linux-musleabi.tar.xz
+ https://portage.smaeul.xyz/distfiles/cargo-${CARGO_SNAPSHOT_VERSION}-armv7-unknown-linux-musleabihf.tar.xz
+ )
+ )
+ arm64? (
+ elibc_glibc? ( https://static.rust-lang.org/dist/cargo-${CARGO_SNAPSHOT_VERSION}-aarch64-unknown-linux-gnu.tar.xz )
+ elibc_musl? ( https://portage.smaeul.xyz/distfiles/cargo-${CARGO_SNAPSHOT_VERSION}-aarch64-unknown-linux-musl.tar.xz )
+ )
+ x86? (
+ elibc_glibc? ( https://static.rust-lang.org/dist/cargo-${CARGO_SNAPSHOT_VERSION}-i686-unknown-linux-gnu.tar.xz )
+ elibc_musl? ( https://portage.smaeul.xyz/distfiles/cargo-${CARGO_SNAPSHOT_VERSION}-i686-unknown-linux-musl.tar.xz )
+ )"
+
+RESTRICT="mirror"
+LICENSE="|| ( MIT Apache-2.0 )"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+
+IUSE="bash-completion doc libressl"
+
+COMMON_DEPEND="
+ libressl? ( dev-libs/libressl:0= )
+ !libressl? ( dev-libs/openssl:0= )
+ net-libs/http-parser:0/2.8.0
+ net-libs/libssh2:=
+ net-misc/curl:=[ssl]
+ sys-libs/zlib:=
+"
+RDEPEND="
+ ${COMMON_DEPEND}
+ !dev-util/cargo-bin
+"
+DEPEND="
+ ${COMMON_DEPEND}
+ >=virtual/rust-1.9.0
+ dev-util/cmake
+ sys-apps/coreutils
+ sys-apps/diffutils
+ sys-apps/findutils
+ sys-apps/sed"
+
+PATCHES=()
+
+src_prepare() {
+ default
+
+ (cd ${WORKDIR} && epatch "${FILESDIR}/cargo27-libressl27.patch" || die "Could not apply patch")
+}
+
+src_configure() {
+ # Do nothing
+ echo "Configuring cargo..."
+}
+
+src_compile() {
+ export CARGO_HOME="${ECARGO_HOME}"
+ local cargo="${WORKDIR}/cargo-${CARGO_SNAPSHOT_VERSION}-${CARGOHOST}/cargo/bin/cargo"
+ ${cargo} build --release || die
+
+ # Building HTML documentation
+ use doc && ${cargo} doc
+}
+
+src_install() {
+ dobin target/release/cargo
+
+ # Install HTML documentation
+ use doc && HTML_DOCS=("target/doc")
+ einstalldocs
+
+ use bash-completion && newbashcomp src/etc/cargo.bashcomp.sh cargo
+ insinto /usr/share/zsh/site-functions
+ doins src/etc/_cargo
+ doman src/etc/man/*
+}