jauhien 14/10/18 12:50:48
Added: metadata.xml rust-bin-0.12.0.ebuild
rust-bin-999.ebuild ChangeLog
Log:
initila import from the rust overlay
(Portage version: 2.2.14_rc1/cvs/Linux x86_64, signed Manifest commit with
key 0xB2EFA1D4)
Revision Changes Path
1.1 dev-lang/rust-bin/metadata.xml
file :
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/rust-bin/metadata.xml?rev=1.1&view=markup
plain:
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/rust-bin/metadata.xml?rev=1.1&content-type=text/plain
Index: metadata.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer>
<email>[email protected]</email>
<name>Jauhien Piatlicki</name>
</maintainer>
</pkgmetadata>
1.1 dev-lang/rust-bin/rust-bin-0.12.0.ebuild
file :
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/rust-bin/rust-bin-0.12.0.ebuild?rev=1.1&view=markup
plain:
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/rust-bin/rust-bin-0.12.0.ebuild?rev=1.1&content-type=text/plain
Index: rust-bin-0.12.0.ebuild
===================================================================
# 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
}
1.1 dev-lang/rust-bin/rust-bin-999.ebuild
file :
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/rust-bin/rust-bin-999.ebuild?rev=1.1&view=markup
plain:
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/rust-bin/rust-bin-999.ebuild?rev=1.1&content-type=text/plain
Index: rust-bin-999.ebuild
===================================================================
# 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
}
1.1 dev-lang/rust-bin/ChangeLog
file :
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/rust-bin/ChangeLog?rev=1.1&view=markup
plain:
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/rust-bin/ChangeLog?rev=1.1&content-type=text/plain
Index: ChangeLog
===================================================================
# 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 <[email protected]>
+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