1 |
jauhien 15/07/04 14:56:04 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: rust-1.1.0.ebuild |
5 |
Removed: rust-1.0.0.ebuild |
6 |
Log: |
7 |
version bump, fix bug 553442 |
8 |
|
9 |
(Portage version: 2.2.18/cvs/Linux i686, signed Manifest commit with key B2EFA1D4) |
10 |
|
11 |
Revision Changes Path |
12 |
1.21 dev-lang/rust/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/rust/ChangeLog?rev=1.21&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/rust/ChangeLog?rev=1.21&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/rust/ChangeLog?r1=1.20&r2=1.21 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/dev-lang/rust/ChangeLog,v |
21 |
retrieving revision 1.20 |
22 |
retrieving revision 1.21 |
23 |
diff -u -r1.20 -r1.21 |
24 |
--- ChangeLog 6 Jun 2015 15:39:57 -0000 1.20 |
25 |
+++ ChangeLog 4 Jul 2015 14:56:04 -0000 1.21 |
26 |
@@ -1,6 +1,12 @@ |
27 |
# ChangeLog for dev-lang/rust |
28 |
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/rust/ChangeLog,v 1.20 2015/06/06 15:39:57 jauhien Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/rust/ChangeLog,v 1.21 2015/07/04 14:56:04 jauhien Exp $ |
31 |
+ |
32 |
+*rust-1.1.0 (04 Jul 2015) |
33 |
+ |
34 |
+ 04 Jul 2015; Jauhien Piatlicki <jauhien@g.o> |
35 |
+ +files/rust-1.1.0-install.patch, +rust-1.1.0.ebuild, -rust-1.0.0.ebuild: |
36 |
+ version bump, fix bug 553442 |
37 |
|
38 |
06 Jun 2015; Jauhien Piatlicki <jauhien@g.o> rust-1.0.0.ebuild: |
39 |
move to new SLOTs schema |
40 |
|
41 |
|
42 |
|
43 |
1.1 dev-lang/rust/rust-1.1.0.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/rust/rust-1.1.0.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/rust/rust-1.1.0.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: rust-1.1.0.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/rust-1.1.0.ebuild,v 1.1 2015/07/04 14:56:04 jauhien Exp $ |
53 |
|
54 |
EAPI=5 |
55 |
|
56 |
PYTHON_COMPAT=( python2_7 ) |
57 |
|
58 |
inherit eutils multilib python-any-r1 |
59 |
|
60 |
MY_P="rustc-${PV}" |
61 |
|
62 |
DESCRIPTION="Systems programming language from Mozilla" |
63 |
HOMEPAGE="http://www.rust-lang.org/" |
64 |
|
65 |
SRC_URI="http://static.rust-lang.org/dist/${MY_P}-src.tar.gz |
66 |
amd64? ( http://static.rust-lang.org/stage0-snapshots/rust-stage0-2015-04-27-857ef6e-linux-x86_64-94089740e48167c5975c92c139ae9c286764012f.tar.bz2 ) |
67 |
x86? ( http://static.rust-lang.org/stage0-snapshots/rust-stage0-2015-04-27-857ef6e-linux-i386-0bc8cffdce611fb71fd7d3d8e7cdbfaf748a4f16.tar.bz2 ) |
68 |
" |
69 |
|
70 |
LICENSE="|| ( MIT Apache-2.0 ) BSD-1 BSD-2 BSD-4 UoI-NCSA" |
71 |
SLOT="stable" |
72 |
KEYWORDS="~amd64 ~x86" |
73 |
|
74 |
IUSE="clang debug doc libcxx +system-llvm" |
75 |
REQUIRED_USE="libcxx? ( clang )" |
76 |
|
77 |
CDEPEND="libcxx? ( sys-libs/libcxx ) |
78 |
>=app-eselect/eselect-rust-0.3_pre20150425 |
79 |
!dev-lang/rust:0 |
80 |
" |
81 |
DEPEND="${CDEPEND} |
82 |
${PYTHON_DEPS} |
83 |
>=dev-lang/perl-5.0 |
84 |
clang? ( sys-devel/clang ) |
85 |
system-llvm? ( >=sys-devel/llvm-3.6.0[multitarget(-)] ) |
86 |
" |
87 |
RDEPEND="${CDEPEND}" |
88 |
|
89 |
S=${WORKDIR}/${MY_P} |
90 |
|
91 |
src_unpack() { |
92 |
unpack "${MY_P}-src.tar.gz" || die |
93 |
mkdir "${MY_P}/dl" || die |
94 |
cp "${DISTDIR}/rust-stage0"* "${MY_P}/dl/" || die |
95 |
} |
96 |
|
97 |
src_prepare() { |
98 |
local postfix="gentoo-${SLOT}" |
99 |
sed -i -e "s/CFG_FILENAME_EXTRA=.*/CFG_FILENAME_EXTRA=${postfix}/" mk/main.mk || die |
100 |
epatch "${FILESDIR}/${P}-install.patch" |
101 |
} |
102 |
|
103 |
src_configure() { |
104 |
export CFG_DISABLE_LDCONFIG="notempty" |
105 |
|
106 |
"${ECONF_SOURCE:-.}"/configure \ |
107 |
--prefix="${EPREFIX}/usr" \ |
108 |
--libdir="${EPREFIX}/usr/$(get_libdir)/${P}" \ |
109 |
--mandir="${EPREFIX}/usr/share/${P}/man" \ |
110 |
--release-channel=${SLOT} \ |
111 |
--disable-manage-submodules \ |
112 |
$(use_enable clang) \ |
113 |
$(use_enable debug) \ |
114 |
$(use_enable debug llvm-assertions) \ |
115 |
$(use_enable !debug optimize) \ |
116 |
$(use_enable !debug optimize-cxx) \ |
117 |
$(use_enable !debug optimize-llvm) \ |
118 |
$(use_enable !debug optimize-tests) \ |
119 |
$(use_enable doc docs) \ |
120 |
$(use_enable libcxx libcpp) \ |
121 |
$(usex system-llvm "--llvm-root=${EPREFIX}/usr" " ") \ |
122 |
|| die |
123 |
} |
124 |
|
125 |
src_compile() { |
126 |
emake VERBOSE=1 |
127 |
} |
128 |
|
129 |
src_install() { |
130 |
unset SUDO_USER |
131 |
|
132 |
default |
133 |
|
134 |
mv "${D}/usr/bin/rustc" "${D}/usr/bin/rustc-${PV}" || die |
135 |
mv "${D}/usr/bin/rustdoc" "${D}/usr/bin/rustdoc-${PV}" || die |
136 |
mv "${D}/usr/bin/rust-gdb" "${D}/usr/bin/rust-gdb-${PV}" || die |
137 |
|
138 |
dodoc COPYRIGHT LICENSE-APACHE LICENSE-MIT |
139 |
|
140 |
dodir "/usr/share/doc/rust-${PV}/" |
141 |
mv "${D}/usr/share/doc/rust"/* "${D}/usr/share/doc/rust-${PV}/" || die |
142 |
rmdir "${D}/usr/share/doc/rust/" || die |
143 |
|
144 |
cat <<-EOF > "${T}"/50${P} |
145 |
LDPATH="/usr/$(get_libdir)/${P}" |
146 |
MANPATH="/usr/share/${P}/man" |
147 |
EOF |
148 |
doenvd "${T}"/50${P} |
149 |
|
150 |
cat <<-EOF > "${T}/provider-${P}" |
151 |
/usr/bin/rustdoc |
152 |
/usr/bin/rust-gdb |
153 |
EOF |
154 |
dodir /etc/env.d/rust |
155 |
insinto /etc/env.d/rust |
156 |
doins "${T}/provider-${P}" |
157 |
} |
158 |
|
159 |
pkg_postinst() { |
160 |
eselect rust update --if-unset |
161 |
|
162 |
elog "Rust installs a helper script for calling GDB now," |
163 |
elog "for your convenience it is installed under /usr/bin/rust-gdb-${PV}." |
164 |
|
165 |
if has_version app-editors/emacs || has_version app-editors/emacs-vcs; then |
166 |
elog "install app-emacs/rust-mode to get emacs support for rust." |
167 |
fi |
168 |
|
169 |
if has_version app-editors/gvim || has_version app-editors/vim; then |
170 |
elog "install app-vim/rust-mode to get vim support for rust." |
171 |
fi |
172 |
|
173 |
if has_version 'app-shells/zsh'; then |
174 |
elog "install app-shells/rust-zshcomp to get zsh completion for rust." |
175 |
fi |
176 |
} |
177 |
|
178 |
pkg_postrm() { |
179 |
eselect rust unset --if-invalid |
180 |
} |