dev-lang/rust-bin: add other gentoo arches
This commit is contained in:
parent
a267dc5f44
commit
bc859a5781
6
dev-lang/rust-bin/Manifest
Normal file
6
dev-lang/rust-bin/Manifest
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
DIST rust-1.14.0-armv7-unknown-linux-gnueabihf.tar.gz 126374178 SHA256 cb0b5f64c2699640357d0edb336366ad7b088f084fbb76fc8df7798da420520b SHA512 4606b3cf7f3c0d6116cc1c3a5e3a1b54e02b128358784b7b044aea8019948ceb9280b6fbc1476f40b12d85a4b24e5824d39948c3240832023d280e99f343a77f WHIRLPOOL 4f7932e3ec915132db192dde09484502ae54cd889d52f268b18b6b7a69c6746ba78fef9f85a037c7d1fea8dbbe43565a2b27c276658fd6986a24525b93386970
|
||||||
|
DIST rust-1.14.0-i686-unknown-linux-gnu.tar.gz 126452488 SHA256 8d5c75728b44468216f99651dfae9d60ae0696a77105dd2b02942d75f3256840 SHA512 2e1cd7cb1c9a1c147fcfe16f5eac3876b88a5a04bc1a6d2386756181986046b8636c317fb76834ca75aec99f0bcf9e5ce760eacf74b4b9811210db4a59fdb66f WHIRLPOOL 9f2a6a0462b9494566c5be7475ca15280b35229756789e3dda01ba7eefe5ae3eab6c804fd7183641890efa16aa22ff0e9153ef6c8b8379f76d0c44b98027a483
|
||||||
|
DIST rust-1.14.0-mips-unknown-linux-gnu.tar.gz 130612674 SHA256 ee87b5a38a3dd1e97fffda4f6915264e09893958db3d3b13b322c3629784a46a SHA512 617b8d7f06ed658c0d0b8f360b55c43a86a7f7e5a02dcdb65774066742c31f1302dd97dd4ecb6d56b237ed82f48ee71b0fd93db1a5af66e009d679cffe24e07f WHIRLPOOL 31a61f986fb6daf40e73ef1ef62bb53165b205b43f1c6b2721360a05ecbb33581299b7bf6a09038e2cdc7bbccf748107c23ed7e05dd93a04383062401198c872
|
||||||
|
DIST rust-1.14.0-powerpc64-unknown-linux-gnu.tar.gz 131762135 SHA256 86b0179e4b706594ee03d67f02094cda635cce477d0e42772b14cf8dbc96448a SHA512 4d4f871c508d375242df3baca03d8fb776f999229944d93822fee273ad3fb8fd2e9df9dc257f0f0977c2a68db8d9dcf50327c037256ea834c02ba83e0c8a549e WHIRLPOOL 7d5931d2aba97827ce421d02652d3550a4973c5c4698dc05bfee38ed8da2618b5fd07f0892ae5211845bbfa45ed567a8f7122b515de93c8b0628c357b0cd16bb
|
||||||
|
DIST rust-1.14.0-x86_64-unknown-linux-gnu.tar.gz 122820395 SHA256 c71325cfea1b6f0bdc5189fa4c50ff96f828096ff3f7b5056367f9685d6a4d04 SHA512 6ec7155a2ac95718d1c28ffada0d365ca46cca7b1879b4533a662a4e63140fd2a70a9647a4b4d57e12d0d20dd46b7aba18365db0ed0cfd870b0a0394d4266b8c WHIRLPOOL f6c1c67806974cd39e68e2c111803a9ba7e858a93bfb8c8939747d253f119ae6667a21e3cba385015f27f9395fb2982d2a0c26f423b5d784fdc395e680da803b
|
||||||
|
EBUILD rust-bin-1.14.0.ebuild 3058 SHA256 c6c0275e15af7c99204b84b6e279bf25620080eed8c3bcdb4385da1a68fc2925 SHA512 5d9494be999818f0f241874dfa9dd06100599d302447d598ef258cf93547e93b30193efcf2913a539b18dc85393c6c8bc0338588e8eddb19c417f807965d7991 WHIRLPOOL d95e8041b02afaef49206449412c7659955b1704a3ce90cbd4f4dfffc7abbfb0a230341480c341bbfcf00245f3405815cdd023b0c0ac9c8efec4691b05518dbe
|
108
dev-lang/rust-bin/rust-bin-1.14.0.ebuild
Normal file
108
dev-lang/rust-bin/rust-bin-1.14.0.ebuild
Normal file
@ -0,0 +1,108 @@
|
|||||||
|
# Copyright 1999-2016 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Id$
|
||||||
|
|
||||||
|
EAPI=5
|
||||||
|
|
||||||
|
inherit eutils bash-completion-r1
|
||||||
|
|
||||||
|
MY_P="rust-${PV}"
|
||||||
|
|
||||||
|
DESCRIPTION="Systems programming language from Mozilla"
|
||||||
|
HOMEPAGE="http://www.rust-lang.org/"
|
||||||
|
SRC_URI="amd64? ( http://static.rust-lang.org/dist/${MY_P}-x86_64-unknown-linux-gnu.tar.gz )
|
||||||
|
arm? ( http://static.rust-lang.org/dist/${MY_P}-armv7-unknown-linux-gnueabihf.tar.gz )
|
||||||
|
mips? ( http://static.rust-lang.org/dist/${MY_P}-mips-unknown-linux-gnu.tar.gz )
|
||||||
|
ppc64? ( http://static.rust-lang.org/dist/${MY_P}-powerpc64-unknown-linux-gnu.tar.gz )
|
||||||
|
x86? ( http://static.rust-lang.org/dist/${MY_P}-i686-unknown-linux-gnu.tar.gz )"
|
||||||
|
|
||||||
|
LICENSE="|| ( MIT Apache-2.0 ) BSD-1 BSD-2 BSD-4 UoI-NCSA"
|
||||||
|
SLOT="stable"
|
||||||
|
KEYWORDS="~amd64 ~arm ~x86"
|
||||||
|
IUSE="doc"
|
||||||
|
|
||||||
|
DEPEND=">=app-eselect/eselect-rust-0.3_pre20150425
|
||||||
|
!dev-lang/rust:0
|
||||||
|
"
|
||||||
|
RDEPEND="${DEPEND}"
|
||||||
|
|
||||||
|
QA_PREBUILT="
|
||||||
|
opt/${P}/bin/rustc-bin-${PV}
|
||||||
|
opt/${P}/bin/rustdoc-bin-${PV}
|
||||||
|
opt/${P}/lib/*.so
|
||||||
|
opt/${P}/lib/rustlib/*/lib/*.so
|
||||||
|
"
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
default
|
||||||
|
|
||||||
|
local postfix
|
||||||
|
use amd64 && postfix=x86_64-unknown-linux-gnu
|
||||||
|
use arm && postfix=armv7-unknown-linux-gnueabihf
|
||||||
|
use mips && postfix=mips-unknown-linux-gnu
|
||||||
|
use ppc64 && postfix=powerpc64-unknown-linux-gnu
|
||||||
|
use x86 && postfix=i686-unknown-linux-gnu
|
||||||
|
mv "${WORKDIR}/${MY_P}-${postfix}" "${S}" || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
local std=$(grep 'std' ./components)
|
||||||
|
local components="rustc,${std}"
|
||||||
|
use doc && components="${components},rust-docs"
|
||||||
|
./install.sh \
|
||||||
|
--components="${components}" \
|
||||||
|
--disable-verify \
|
||||||
|
--prefix="${D}/opt/${P}" \
|
||||||
|
--mandir="${D}/usr/share/${P}/man" \
|
||||||
|
--disable-ldconfig \
|
||||||
|
|| die
|
||||||
|
|
||||||
|
local rustc=rustc-bin-${PV}
|
||||||
|
local rustdoc=rustdoc-bin-${PV}
|
||||||
|
local rustgdb=rust-gdb-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
|
||||||
|
mv "${D}/opt/${P}/bin/rust-gdb" "${D}/opt/${P}/bin/${rustgdb}" || die
|
||||||
|
|
||||||
|
dosym "/opt/${P}/bin/${rustc}" "/usr/bin/${rustc}"
|
||||||
|
dosym "/opt/${P}/bin/${rustdoc}" "/usr/bin/${rustdoc}"
|
||||||
|
dosym "/opt/${P}/bin/${rustgdb}" "/usr/bin/${rustgdb}"
|
||||||
|
|
||||||
|
cat <<-EOF > "${T}"/50${P}
|
||||||
|
LDPATH="/opt/${P}/lib"
|
||||||
|
MANPATH="/usr/share/${P}/man"
|
||||||
|
EOF
|
||||||
|
doenvd "${T}"/50${P}
|
||||||
|
|
||||||
|
cat <<-EOF > "${T}/provider-${P}"
|
||||||
|
/usr/bin/rustdoc
|
||||||
|
/usr/bin/rust-gdb
|
||||||
|
EOF
|
||||||
|
dodir /etc/env.d/rust
|
||||||
|
insinto /etc/env.d/rust
|
||||||
|
doins "${T}/provider-${P}"
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
eselect rust update --if-unset
|
||||||
|
|
||||||
|
elog "Rust installs a helper script for calling GDB now,"
|
||||||
|
elog "for your convenience it is installed under /usr/bin/rust-gdb-bin-${PV},"
|
||||||
|
|
||||||
|
if has_version app-editors/emacs || has_version app-editors/emacs-vcs; then
|
||||||
|
elog "install app-emacs/rust-mode to get emacs support for rust."
|
||||||
|
fi
|
||||||
|
|
||||||
|
if has_version app-editors/gvim || has_version app-editors/vim; then
|
||||||
|
elog "install app-vim/rust-vim to get vim support for rust."
|
||||||
|
fi
|
||||||
|
|
||||||
|
if has_version 'app-shells/zsh'; then
|
||||||
|
elog "install app-shells/rust-zshcomp to get zsh completion for rust."
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postrm() {
|
||||||
|
eselect rust unset --if-invalid
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user