diff options
author | Jauhien Piatlicki <jauhien@gentoo.org> | 2014-10-18 12:50:51 +0000 |
---|---|---|
committer | Jauhien Piatlicki <jauhien@gentoo.org> | 2014-10-18 12:50:51 +0000 |
commit | a94419b9a78a64934832735387bb12a91e47ff54 (patch) | |
tree | 30a7ed1ee75c8ff2797a3183eb5d193f2a527887 /dev-lang/rust-bin | |
parent | version bump, switch to new eselect version (diff) | |
download | historical-a94419b9a78a64934832735387bb12a91e47ff54.tar.gz historical-a94419b9a78a64934832735387bb12a91e47ff54.tar.bz2 historical-a94419b9a78a64934832735387bb12a91e47ff54.zip |
initila import from the rust overlay
Package-Manager: portage-2.2.14_rc1/cvs/Linux x86_64
Manifest-Sign-Key: 0xB2EFA1D4
Diffstat (limited to 'dev-lang/rust-bin')
-rw-r--r-- | dev-lang/rust-bin/ChangeLog | 11 | ||||
-rw-r--r-- | dev-lang/rust-bin/Manifest | 27 | ||||
-rw-r--r-- | dev-lang/rust-bin/files/rust-bin-0.12.0-no-ldconfig.patch | 23 | ||||
-rw-r--r-- | dev-lang/rust-bin/metadata.xml | 8 | ||||
-rw-r--r-- | dev-lang/rust-bin/rust-bin-0.12.0.ebuild | 77 | ||||
-rw-r--r-- | dev-lang/rust-bin/rust-bin-999.ebuild | 81 |
6 files changed, 227 insertions, 0 deletions
diff --git a/dev-lang/rust-bin/ChangeLog b/dev-lang/rust-bin/ChangeLog new file mode 100644 index 000000000000..01f45657d733 --- /dev/null +++ b/dev-lang/rust-bin/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for dev-lang/rust-bin +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/rust-bin/ChangeLog,v 1.1 2014/10/18 12:50:48 jauhien Exp $ + +*rust-bin-999 (18 Oct 2014) +*rust-bin-0.12.0 (18 Oct 2014) + + 18 Oct 2014; Jauhien Piatlicki <jauhien@gentoo.org> + +files/rust-bin-0.12.0-no-ldconfig.patch, +metadata.xml, + +rust-bin-0.12.0.ebuild, +rust-bin-999.ebuild: + initila import from the rust overlay diff --git a/dev-lang/rust-bin/Manifest b/dev-lang/rust-bin/Manifest new file mode 100644 index 000000000000..6a758bce2822 --- /dev/null +++ b/dev-lang/rust-bin/Manifest @@ -0,0 +1,27 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + +AUX rust-bin-0.12.0-no-ldconfig.patch 702 SHA256 e069f4288537ce64f4d7878d307ed4556f62a7d21433c85f021e9acf5ce054c8 SHA512 0ece0d7a74e79333db159b5cf8e2431439a54fce0dcc3486e3e516fc76069f3928e67bba962e5bcc7a2427b2a6e98e70fbf693b7c9da9dd3e8a79f044c2ddb45 WHIRLPOOL a7c39e54517333847bffd54c4fb5214453f9fe47219fd1d8beb2b113c2acda1dcd7ba00bd31f4e0898ddc1b81cdbe0381db67949c58ffce8d863e8ce42ffaa48 +DIST rust-0.12.0-i686-unknown-linux-gnu.tar.gz 110403651 SHA256 2a96a5662e1248da0c2dc3394646b7e75b2c05b2df332cb6f388bbbb6cb75999 SHA512 466234164e9dea906f2adcce8a4eb423fbce729171ec865cc3162b2c6b73166cbe4b4dad98cd342555ed35497dddde9c9e04b80a607d8862923e05931c406ecc WHIRLPOOL a0244cf7ed0de3417da7e982043c219cd91c08ecfba919bc6ffac9adf632f937bb21d403d1ba5ccc31e6fc44192f3954ed900ecaffc874320b67d879bfab18af +DIST rust-0.12.0-x86_64-unknown-linux-gnu.tar.gz 110096209 SHA256 bb3e2eda2bd25690c58a3925ca175dedc27fedada33af4159fdb63dae9cc41a3 SHA512 1e08408cd8c8900fba637ce69efeb3ef565323c80aa94bda8679a667d19b16c2c10daa527a54ea401d49537aebfda825e44d690c3e99c025aa8e5ebd1b79c5fe WHIRLPOOL 63cf0b46f51c2010a7485427b179f02baa3a9e7e4a277df70617b50a603fda75591e74d5e4a263ab964e7f6c88ff3713e437a9967879428742431840ca970abf +EBUILD rust-bin-0.12.0.ebuild 2094 SHA256 dcbd3256c9d86c115094339a0bc20328d23ca95fc6ba3c0fc5e94788b7661749 SHA512 e6277829d0492c6effce21e261684c13b200a57ceba314d2c33f5d8342d6b268a6e08b1ee8d1ebeabcc8707abd3f973db89f78ad4bc1f86693d4e8d8bd39b35f WHIRLPOOL dff3f2aa64a053213a5451fbd97f69c302aed37433574e2c2c184789ae89287d17d7a1374891ba75d432d5a30ae38bdb6303178d48df522d6eeaaaaaca2c167e +EBUILD rust-bin-999.ebuild 2080 SHA256 aad6d40a890c24f89598c6a1194d955d6c57d74637c26de3d138e4b198914e63 SHA512 d6e5e8d758ae970e0fd4c4645fcd5d4a88f20da37d30149725f0b7f35e85691b8aae225727b7529efab8a819835833ceeba9d964b6430a9c397c441a2d729297 WHIRLPOOL 0b87c56b751ceee8f21bf7792d0b1e40be2e2afd5c15e3a71d33af7d81b3d760d20137712387e8d47d455988a1e8cac8921210427f6eaa8cc806de9906c7cb8f +MISC ChangeLog 469 SHA256 e2fdcd35e4df044a59b547961cfe14030bdc879fa46963c1dd9d2e72260a26c9 SHA512 d03092e211816319c6f4f5e5798e0221971aad35e342645e0cbb8b393f0886f9d4dab5f6af46f88cee31ddf75fce4cd568ba04b06d9f9152945218f2087e7046 WHIRLPOOL f4076687de99bff4965cb9b12c0a2e26e69e70cebd8a231d3e90b36be70859e9ab912c2c25cef37563a813a5dda46e8ae56136403fb4b9c44d7ac1a629d50b13 +MISC metadata.xml 243 SHA256 18abd81b04a3651cbf1290466163ecb9269199286408c133021daa0e74869f47 SHA512 4bdc4acc90c8a444f645f1f058d2eed96adddb53fc28554f8eca840c744c320158daf264e28b644d67dcda59299d921f84eddbdd471b780b2e5bcae78ddbaaae WHIRLPOOL 0643256f713a85f274a4d748f885edc6db04407fb28eaf3c73803b96c8a9d6c79c15ce162c13096958d0f10500f8edf8d1ac0833f2d256988686ad987811622a +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2 + +iQIcBAEBCAAGBQJUQmIpAAoJELvuk32y76HUeF0P/Rnn96OwoqC/bkbHuNl1sTrj +n9+5GEwQFoUxHbkDWNlW5oSchLXjp7E8hfhX2Yn3MiPQ0UwL+lwHMP4Jveg3cfQ2 +2gqocQDrZLWNegFqg6h0jL7vGknlvB3BvD1yrxGgjCJAKHy/GiTNx/QA/Asx4ryg +9Hc/BsYQOeTaXg2aa0Iz+ucVpFpWDO6oMcCjs0i6LWWG7vgZcEQQaSIEKLu+L47J +YE82qQj5DUoLpqBw6SKwqidejcod+pePQ9adMLFLy67fiCOHHPaV1ie6izJz2lMn +od8kUaw/D/Vw2XPVfwMazvuahCZnOCXJ6nbCEP4Oj6PSmzRT6fkjjjyDFFLIaljK +av1LYEo1uYHrw26+K3fR12SRFNf2nmkpy+1gOp5DiM3UU7EcafsZcx9OnWWULnp1 +psdENkL3Bz/DrBJHDxqZBPMlhsX1HzC+nyE+9Keb44qa4NCyoNrPbYfT8sPiiFkX +XpPvk9K8ky8q9hZOf9/9aSg+NLIN4AoQ08Bmpkzh8cWdpg0bcW8kf6rW4IrXz/wA +6I1D/L4XXYlHMiC3jhbaieFxpTE2IHdXsjGgpc0n3gJrxlhVjOQlz3ot4MPguiQZ +LSKwsWbilywEnJaHJQQpQ44E4YxHsCEkXuJvvxD06wd/cKNREXt7sGU/OLsz/4J/ +RMFO/m9s/GfLCsIQ4r50 +=Xb4Z +-----END PGP SIGNATURE----- diff --git a/dev-lang/rust-bin/files/rust-bin-0.12.0-no-ldconfig.patch b/dev-lang/rust-bin/files/rust-bin-0.12.0-no-ldconfig.patch new file mode 100644 index 000000000000..d4c5fd8d1be8 --- /dev/null +++ b/dev-lang/rust-bin/files/rust-bin-0.12.0-no-ldconfig.patch @@ -0,0 +1,23 @@ +Remove ldconfig(1) execution to prevent the installation script from accessing +outside of a sandbox. + +--- install.sh ++++ install.sh +@@ -466,17 +466,6 @@ while read p; do + # The manifest lists all files to install + done < "${CFG_SRC_DIR}/${CFG_LIBDIR_RELATIVE}/rustlib/manifest.in" + +-# Run ldconfig to make dynamic libraries available to the linker +-if [ "$CFG_OSTYPE" = "Linux" ] +- then +- ldconfig +- if [ $? -ne 0 ] +- then +- warn "failed to run ldconfig." +- warn "this may happen when not installing as root and may be fine" +- fi +-fi +- + # Sanity check: can we run the installed binaries? + # + # As with the verification above, make sure the right LD_LIBRARY_PATH-equivalent diff --git a/dev-lang/rust-bin/metadata.xml b/dev-lang/rust-bin/metadata.xml new file mode 100644 index 000000000000..0b7db932cfa4 --- /dev/null +++ b/dev-lang/rust-bin/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>jauhien@gentoo.org</email> + <name>Jauhien Piatlicki</name> + </maintainer> +</pkgmetadata> diff --git a/dev-lang/rust-bin/rust-bin-0.12.0.ebuild b/dev-lang/rust-bin/rust-bin-0.12.0.ebuild new file mode 100644 index 000000000000..531dd377f703 --- /dev/null +++ b/dev-lang/rust-bin/rust-bin-0.12.0.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/rust-bin/rust-bin-0.12.0.ebuild,v 1.1 2014/10/18 12:50:48 jauhien Exp $ + +EAPI="5" + +inherit eutils + +DESCRIPTION="Systems programming language from Mozilla" +HOMEPAGE="http://www.rust-lang.org/" +SRC_URI="amd64? ( http://static.rust-lang.org/dist/rust-${PV}-x86_64-unknown-linux-gnu.tar.gz ) + x86? ( http://static.rust-lang.org/dist/rust-${PV}-i686-unknown-linux-gnu.tar.gz )" + +LICENSE="|| ( MIT Apache-2.0 ) BSD-1 BSD-2 BSD-4 UoI-NCSA" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +IUSE="emacs vim-syntax zsh-completion" + +DEPEND=">=app-admin/eselect-rust-0.2_pre20141011 + !dev-lang/rust:0 +" +RDEPEND="${DEPEND} + emacs? ( >=app-emacs/rust-mode-${PV} ) + vim-syntax? ( >=app-vim/rust-mode-${PV} ) + zsh-completion? ( >=app-shells/rust-zshcomp-${PV} ) +" + +src_unpack() { + default + + local postfix + use amd64 && postfix=x86_64-unknown-linux-gnu + use x86 && postfix=i686-unknown-linux-gnu + mv "${WORKDIR}/rust-${PV}-${postfix}" "${S}" || die +} + +src_prepare() { + epatch "${FILESDIR}/${PN}-0.12.0-no-ldconfig.patch" +} + +src_install() { + ./install.sh \ + --disable-verify \ + --prefix="${D}/opt/${P}" \ + --mandir="${D}/usr/share/${P}/man" + + local rustc=rustc-bin-${PV} + local rustdoc=rustdoc-bin-${PV} + + mv "${D}/opt/${P}/bin/rustc" "${D}/opt/${P}/bin/${rustc}" || die + mv "${D}/opt/${P}/bin/rustdoc" "${D}/opt/${P}/bin/${rustdoc}" || die + dosym "/opt/${P}/bin/${rustc}" "/usr/bin/${rustc}" + dosym "/opt/${P}/bin/${rustdoc}" "/usr/bin/${rustdoc}" + + cat <<-EOF > "${T}"/50${P} + LDPATH="/opt/${P}/lib" + MANPATH="/usr/share/${P}/man" + EOF + doenvd "${T}"/50${P} + + dodir /etc/env.d/rust + touch "${D}/etc/env.d/rust/provider-${P}" || die +} + +pkg_postinst() { + eselect rust update --if-unset + + elog "Rust uses slots now, use 'eselect rust list'" + elog "and 'eselect rust set' to list and set rust version." + elog "For more information see 'eselect rust help'" + elog "and http://wiki.gentoo.org/wiki/Project:Eselect/User_guide" +} + +pkg_postrm() { + eselect rust unset --if-invalid +} diff --git a/dev-lang/rust-bin/rust-bin-999.ebuild b/dev-lang/rust-bin/rust-bin-999.ebuild new file mode 100644 index 000000000000..35f36cd89b4d --- /dev/null +++ b/dev-lang/rust-bin/rust-bin-999.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/rust-bin/rust-bin-999.ebuild,v 1.1 2014/10/18 12:50:48 jauhien Exp $ + +EAPI="5" + +inherit eutils + +DESCRIPTION="Systems programming language from Mozilla" +HOMEPAGE="http://www.rust-lang.org/" +MY_SRC_URI="http://static.rust-lang.org/dist/rust-nightly" + +LICENSE="|| ( MIT Apache-2.0 ) BSD-1 BSD-2 BSD-4 UoI-NCSA" +SLOT="0" +KEYWORDS="" + +IUSE="emacs vim-syntax zsh-completion" + +CDEPEND=">=app-admin/eselect-rust-0.2_pre20141011 + !dev-lang/rust:0 +" +DEPEND="${CDEPEND} + net-misc/wget +" +RDEPEND="${CDEPEND} + emacs? ( >=app-emacs/rust-mode-${PV} ) + vim-syntax? ( >=app-vim/rust-mode-${PV} ) + zsh-completion? ( >=app-shells/rust-zshcomp-${PV} ) +" + +src_unpack() { + local postfix + use amd64 && postfix=x86_64-unknown-linux-gnu + use x86 && postfix=i686-unknown-linux-gnu + + wget "${MY_SRC_URI}-${postfix}.tar.gz" || die + unpack ./"rust-nightly-${postfix}.tar.gz" + + mv "${WORKDIR}/rust-nightly-${postfix}" "${S}" || die +} + +src_prepare() { + epatch "${FILESDIR}/${PN}-0.12.0-no-ldconfig.patch" +} + +src_install() { + ./install.sh \ + --disable-verify \ + --prefix="${D}/opt/${P}" \ + --mandir="${D}/usr/share/${P}/man" + + local rustc=rustc-bin-${PV} + local rustdoc=rustdoc-bin-${PV} + + mv "${D}/opt/${P}/bin/rustc" "${D}/opt/${P}/bin/${rustc}" || die + mv "${D}/opt/${P}/bin/rustdoc" "${D}/opt/${P}/bin/${rustdoc}" || die + dosym "/opt/${P}/bin/${rustc}" "/usr/bin/${rustc}" + dosym "/opt/${P}/bin/${rustdoc}" "/usr/bin/${rustdoc}" + + cat <<-EOF > "${T}"/50${P} + LDPATH="/opt/${P}/lib" + MANPATH="/usr/share/${P}/man" + EOF + doenvd "${T}"/50${P} + + dodir /etc/env.d/rust + touch "${D}/etc/env.d/rust/provider-${P}" || die +} + +pkg_postinst() { + eselect rust update --if-unset + + elog "Rust uses slots now, use 'eselect rust list'" + elog "and 'eselect rust set' to list and set rust version." + elog "For more information see 'eselect rust help'" + elog "and http://wiki.gentoo.org/wiki/Project:Eselect/User_guide" +} + +pkg_postrm() { + eselect rust unset --if-invalid +} |