1 |
jauhien 15/02/24 13:57:25 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: rust-bin-1.0.0_alpha2.ebuild |
5 |
Removed: rust-bin-1.0.0_alpha.ebuild |
6 |
Log: |
7 |
version bump |
8 |
|
9 |
(Portage version: 2.2.17/cvs/Linux x86_64, signed Manifest commit with key 0xB2EFA1D4) |
10 |
|
11 |
Revision Changes Path |
12 |
1.3 dev-lang/rust-bin/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/rust-bin/ChangeLog?rev=1.3&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/rust-bin/ChangeLog?rev=1.3&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/rust-bin/ChangeLog?r1=1.2&r2=1.3 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/dev-lang/rust-bin/ChangeLog,v |
21 |
retrieving revision 1.2 |
22 |
retrieving revision 1.3 |
23 |
diff -u -r1.2 -r1.3 |
24 |
--- ChangeLog 10 Feb 2015 11:54:53 -0000 1.2 |
25 |
+++ ChangeLog 24 Feb 2015 13:57:25 -0000 1.3 |
26 |
@@ -1,6 +1,12 @@ |
27 |
# ChangeLog for dev-lang/rust-bin |
28 |
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/rust-bin/ChangeLog,v 1.2 2015/02/10 11:54:53 jauhien Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/rust-bin/ChangeLog,v 1.3 2015/02/24 13:57:25 jauhien Exp $ |
31 |
+ |
32 |
+*rust-bin-1.0.0_alpha2 (24 Feb 2015) |
33 |
+ |
34 |
+ 24 Feb 2015; Jauhien Piatlicki <jauhien@g.o> |
35 |
+ +rust-bin-1.0.0_alpha2.ebuild, -rust-bin-1.0.0_alpha.ebuild: |
36 |
+ version bump |
37 |
|
38 |
*rust-bin-1.0.0_alpha (10 Feb 2015) |
39 |
|
40 |
|
41 |
|
42 |
|
43 |
1.1 dev-lang/rust-bin/rust-bin-1.0.0_alpha2.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/rust-bin/rust-bin-1.0.0_alpha2.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/rust-bin/rust-bin-1.0.0_alpha2.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: rust-bin-1.0.0_alpha2.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2015 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/dev-lang/rust-bin/rust-bin-1.0.0_alpha2.ebuild,v 1.1 2015/02/24 13:57:25 jauhien Exp $ |
53 |
|
54 |
EAPI="5" |
55 |
|
56 |
inherit eutils |
57 |
|
58 |
MY_PV="1.0.0-alpha.2" |
59 |
DESCRIPTION="Systems programming language from Mozilla" |
60 |
HOMEPAGE="http://www.rust-lang.org/" |
61 |
SRC_URI="amd64? ( http://static.rust-lang.org/dist/rust-${MY_PV}-x86_64-unknown-linux-gnu.tar.gz ) |
62 |
x86? ( http://static.rust-lang.org/dist/rust-${MY_PV}-i686-unknown-linux-gnu.tar.gz )" |
63 |
|
64 |
LICENSE="|| ( MIT Apache-2.0 ) BSD-1 BSD-2 BSD-4 UoI-NCSA" |
65 |
SLOT="0" |
66 |
KEYWORDS="~amd64 ~x86" |
67 |
|
68 |
IUSE="emacs vim-syntax zsh-completion" |
69 |
|
70 |
DEPEND=">=app-admin/eselect-rust-0.2_pre20150206 |
71 |
!dev-lang/rust:0 |
72 |
" |
73 |
RDEPEND="${DEPEND}" |
74 |
|
75 |
src_unpack() { |
76 |
default |
77 |
|
78 |
local postfix |
79 |
use amd64 && postfix=x86_64-unknown-linux-gnu |
80 |
use x86 && postfix=i686-unknown-linux-gnu |
81 |
mv "${WORKDIR}/rust-${MY_PV}-${postfix}" "${S}" || die |
82 |
} |
83 |
|
84 |
src_install() { |
85 |
./install.sh \ |
86 |
--disable-verify \ |
87 |
--prefix="${D}/opt/${P}" \ |
88 |
--mandir="${D}/usr/share/${P}/man" \ |
89 |
--disable-ldconfig |
90 |
|
91 |
local rustc=rustc-bin-${PV} |
92 |
local rustdoc=rustdoc-bin-${PV} |
93 |
local rustgdb=rust-gdb-bin-${PV} |
94 |
|
95 |
mv "${D}/opt/${P}/bin/rustc" "${D}/opt/${P}/bin/${rustc}" || die |
96 |
mv "${D}/opt/${P}/bin/rustdoc" "${D}/opt/${P}/bin/${rustdoc}" || die |
97 |
mv "${D}/opt/${P}/bin/rust-gdb" "${D}/opt/${P}/bin/${rustgdb}" || die |
98 |
|
99 |
dosym "/opt/${P}/bin/${rustc}" "/usr/bin/${rustc}" |
100 |
dosym "/opt/${P}/bin/${rustdoc}" "/usr/bin/${rustdoc}" |
101 |
dosym "/opt/${P}/bin/${rustgdb}" "/usr/bin/${rustgdb}" |
102 |
|
103 |
cat <<-EOF > "${T}"/50${P} |
104 |
LDPATH="/opt/${P}/lib" |
105 |
MANPATH="/usr/share/${P}/man" |
106 |
EOF |
107 |
doenvd "${T}"/50${P} |
108 |
|
109 |
dodir /etc/env.d/rust |
110 |
touch "${D}/etc/env.d/rust/provider-${P}" || die |
111 |
} |
112 |
|
113 |
pkg_postinst() { |
114 |
eselect rust update --if-unset |
115 |
|
116 |
elog "Rust uses slots now, use 'eselect rust list'" |
117 |
elog "and 'eselect rust set' to list and set rust version." |
118 |
elog "For more information see 'eselect rust help'" |
119 |
elog "and http://wiki.gentoo.org/wiki/Project:Eselect/User_guide" |
120 |
|
121 |
elog "Rust installs a helper script for calling GDB now," |
122 |
elog "for your convenience it is installed under /usr/bin/rust-gdb-bin-${PV}," |
123 |
|
124 |
if has_version app-editors/emacs || has_version app-editors/emacs-vcs; then |
125 |
elog "install app-emacs/rust-mode to get emacs support for rust." |
126 |
fi |
127 |
|
128 |
if has_version app-editors/gvim || has_version app-editors/vim; then |
129 |
elog "install app-vim/rust-mode to get vim support for rust." |
130 |
fi |
131 |
|
132 |
if has_version 'app-shells/zsh'; then |
133 |
elog "install app-shells/rust-zshcomp to get zsh completion for rust." |
134 |
fi |
135 |
} |
136 |
|
137 |
pkg_postrm() { |
138 |
eselect rust unset --if-invalid |
139 |
} |