Gentoo Archives: gentoo-commits

From: "Jauhien Piatlicki (jauhien)" <jauhien@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-lang/rust: rust-9999-r2.ebuild metadata.xml rust-999.ebuild rust-0.11.0-r1.ebuild ChangeLog rust-9999.ebuild rust-0.11.0.ebuild rust-0.10.ebuild
Date: Fri, 29 Aug 2014 14:12:31
Message-Id: 20140829141227.83BDC42D6@oystercatcher.gentoo.org
1 jauhien 14/08/29 14:12:27
2
3 Modified: metadata.xml ChangeLog
4 Added: rust-9999-r2.ebuild rust-999.ebuild
5 rust-0.11.0-r1.ebuild
6 Removed: rust-9999.ebuild rust-0.11.0.ebuild
7 rust-0.10.ebuild
8 Log:
9 Add slotting to rust ebuilds
10
11 Add these slots:
12 (major.minor) rust release
13 (nightly) nightly version
14 (git) git master branch
15
16 Remove old unslotted versions
17
18 (Portage version: 2.2.12/cvs/Linux x86_64, signed Manifest commit with key 0xB2EFA1D4)
19
20 Revision Changes Path
21 1.3 dev-lang/rust/metadata.xml
22
23 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/rust/metadata.xml?rev=1.3&view=markup
24 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/rust/metadata.xml?rev=1.3&content-type=text/plain
25 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/rust/metadata.xml?r1=1.2&r2=1.3
26
27 Index: metadata.xml
28 ===================================================================
29 RCS file: /var/cvsroot/gentoo-x86/dev-lang/rust/metadata.xml,v
30 retrieving revision 1.2
31 retrieving revision 1.3
32 diff -u -r1.2 -r1.3
33 --- metadata.xml 31 Jul 2014 09:52:41 -0000 1.2
34 +++ metadata.xml 29 Aug 2014 14:12:27 -0000 1.3
35 @@ -5,8 +5,10 @@
36 <email>jauhien@g.o</email>
37 <name>Jauhien Piatlicki</name>
38 </maintainer>
39 + <maintainer>
40 + <email>Heather@××××××.net</email>
41 + </maintainer>
42 <use>
43 - <flag name="binary-bootstrap">Download precompiled rust for compilator bootstrap</flag>
44 <flag name="clang">Use <pkg>sys-devel/clang</pkg> for building</flag>
45 <flag name="libcxx">Use <pkg>sys-libs/libcxx</pkg> as standard
46 library when building with <pkg>sys-devel/clang</pkg></flag>
47
48
49
50 1.4 dev-lang/rust/ChangeLog
51
52 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/rust/ChangeLog?rev=1.4&view=markup
53 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/rust/ChangeLog?rev=1.4&content-type=text/plain
54 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/rust/ChangeLog?r1=1.3&r2=1.4
55
56 Index: ChangeLog
57 ===================================================================
58 RCS file: /var/cvsroot/gentoo-x86/dev-lang/rust/ChangeLog,v
59 retrieving revision 1.3
60 retrieving revision 1.4
61 diff -u -r1.3 -r1.4
62 --- ChangeLog 31 Jul 2014 14:29:09 -0000 1.3
63 +++ ChangeLog 29 Aug 2014 14:12:27 -0000 1.4
64 @@ -1,6 +1,20 @@
65 # ChangeLog for dev-lang/rust
66 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
67 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/rust/ChangeLog,v 1.3 2014/07/31 14:29:09 jauhien Exp $
68 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/rust/ChangeLog,v 1.4 2014/08/29 14:12:27 jauhien Exp $
69 +
70 +*rust-0.11.0-r1 (29 Aug 2014)
71 +*rust-999 (29 Aug 2014)
72 +*rust-9999-r2 (29 Aug 2014)
73 +
74 + 29 Aug 2014; Jauhien Piatlicki <jauhien@g.o>
75 + +files/rust-0.11.0-libdir.patch, +files/rust-9999-libdir.patch,
76 + +rust-0.11.0-r1.ebuild, +rust-999.ebuild, +rust-9999-r2.ebuild,
77 + -rust-0.10.ebuild, -rust-0.11.0.ebuild, -rust-9999.ebuild,
78 + files/50rust-mode-gentoo.el, files/rust-0.12.0-no-ldconfig.patch,
79 + metadata.xml:
80 + Add slotting to rust ebuilds Add these slots: (major.minor) rust release
81 + (nightly) nightly version (git) git master branch Remove old unslotted
82 + versions
83
84 *rust-9999 (31 Jul 2014)
85
86
87
88
89 1.1 dev-lang/rust/rust-9999-r2.ebuild
90
91 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/rust/rust-9999-r2.ebuild?rev=1.1&view=markup
92 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/rust/rust-9999-r2.ebuild?rev=1.1&content-type=text/plain
93
94 Index: rust-9999-r2.ebuild
95 ===================================================================
96 # Copyright 1999-2014 Gentoo Foundation
97 # Distributed under the terms of the GNU General Public License v2
98 # $Header: /var/cvsroot/gentoo-x86/dev-lang/rust/rust-9999-r2.ebuild,v 1.1 2014/08/29 14:12:27 jauhien Exp $
99
100 EAPI="5"
101
102 PYTHON_COMPAT=( python{2_6,2_7} )
103
104 inherit elisp-common eutils git-r3 python-any-r1
105
106 DESCRIPTION="Systems programming language from Mozilla"
107 HOMEPAGE="http://www.rust-lang.org/"
108 EGIT_REPO_URI="git://github.com/rust-lang/rust.git"
109
110 LICENSE="|| ( MIT Apache-2.0 ) BSD-1 BSD-2 BSD-4 UoI-NCSA"
111 SLOT="git"
112 KEYWORDS=""
113
114 IUSE="clang debug emacs libcxx vim-syntax zsh-completion"
115 REQUIRED_USE="libcxx? ( clang )"
116
117 RDEPEND="vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )
118 zsh-completion? ( app-shells/zsh )"
119 DEPEND="${RDEPEND}
120 ${PYTHON_DEPS}
121 app-admin/eselect-rust
122 >=dev-lang/perl-5.0
123 clang? ( sys-devel/clang )
124 emacs? ( virtual/emacs )
125 libcxx? ( sys-libs/libcxx )
126 !dev-lang/rust:0"
127
128 SITEFILE="50${PN}-mode-gentoo.el"
129
130 src_unpack() {
131 git-r3_src_unpack
132
133 use amd64 && BUILD_TRIPLE=x86_64-unknown-linux-gnu
134 use x86 && BUILD_TRIPLE=i686-unknown-linux-gnu
135 export CFG_SRC_DIR="${S}" && \
136 cd ${S} && \
137 mkdir -p "${S}/dl" && \
138 mkdir -p "${S}/${BUILD_TRIPLE}/stage0/bin" && \
139 python2 "${S}/src/etc/get-snapshot.py" ${BUILD_TRIPLE} || die
140 }
141
142 src_prepare() {
143 epatch "${FILESDIR}/${PN}-0.12.0-no-ldconfig.patch" "${FILESDIR}/${P}-libdir.patch"
144 local commit_hash=`git rev-parse --short HEAD`
145 sed -i -e "s/CFG_FILENAME_EXTRA=.*/CFG_FILENAME_EXTRA=${commit_hash}/" mk/main.mk || die
146 }
147
148 src_configure() {
149 "${ECONF_SOURCE:-.}"/configure \
150 --prefix="${EPREFIX}/usr" \
151 --libdir="${EPREFIX}/usr/lib/${P}" \
152 --mandir="${EPREFIX}/usr/share/${P}/man" \
153 $(use_enable clang) \
154 $(use_enable debug) \
155 $(use_enable debug llvm-assertions) \
156 $(use_enable !debug optimize) \
157 $(use_enable !debug optimize-cxx) \
158 $(use_enable !debug optimize-llvm) \
159 $(use_enable !debug optimize-tests) \
160 $(use_enable libcxx libcpp) \
161 --disable-manage-submodules \
162 --disable-verify-install \
163 || die
164 }
165
166 src_compile() {
167 emake VERBOSE=1
168
169 if use emacs; then
170 cd src/etc/emacs || die
171 elisp-compile *.el
172 elisp-make-autoload-file "${PN}-mode-autoloads.el" .
173 fi
174 }
175
176 src_install() {
177 default
178
179 if use emacs; then
180 local sf="${T}/${SITEFILE}"
181 local my_elisp_pn=${PN}-mode
182
183 insinto "/usr/share/${P}/emacs/site-lisp/${my_elisp_pn}"
184 doins -r src/etc/emacs/*.el src/etc/emacs/*.elc
185
186 cp "${FILESDIR}/${SITEFILE}" "${sf}" || die
187 sed -i -e "s:@SITELISP@:${EPREFIX}${SITELISP}/${my_elisp_pn}:g" "${sf}" || die
188 insinto "/usr/share/${P}/emacs/site-lisp/site-gentoo.d/"
189 doins "${sf}"
190 fi
191
192 if use vim-syntax; then
193 insinto /usr/share/${P}/vim/vimfiles
194 doins -r src/etc/vim/*
195 fi
196
197 if use zsh-completion; then
198 insinto "/usr/share/${P}/zsh/site-functions"
199 doins src/etc/zsh/_rust
200 fi
201
202 mv "${D}/usr/bin/rustc" "${D}/usr/bin/rustc-${PV}" || die
203 mv "${D}/usr/bin/rustdoc" "${D}/usr/bin/rustdoc-${PV}" || die
204
205 cat <<-EOF > "${T}"/50${P}
206 LDPATH="/usr/lib/${P}"
207 MANPATH="/usr/share/${P}/man"
208 EOF
209 doenvd "${T}"/50${P}
210 }
211
212 pkg_postinst() {
213 eselect rust update --if-unset
214
215 elog "Rust uses slots now, use 'eselect rust list'"
216 elog "and 'eselect rust set' to list and set rust version."
217 elog "For more information see 'eselect rust help'"
218 elog "and http://wiki.gentoo.org/wiki/Project:Eselect/User_guide"
219 }
220
221 pkg_postrm() {
222 eselect rust unset --if-invalid
223 }
224
225
226
227 1.1 dev-lang/rust/rust-999.ebuild
228
229 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/rust/rust-999.ebuild?rev=1.1&view=markup
230 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/rust/rust-999.ebuild?rev=1.1&content-type=text/plain
231
232 Index: rust-999.ebuild
233 ===================================================================
234 # Copyright 1999-2014 Gentoo Foundation
235 # Distributed under the terms of the GNU General Public License v2
236 # $Header: /var/cvsroot/gentoo-x86/dev-lang/rust/rust-999.ebuild,v 1.1 2014/08/29 14:12:27 jauhien Exp $
237
238 EAPI="5"
239
240 PYTHON_COMPAT=( python{2_6,2_7} )
241
242 inherit elisp-common eutils python-any-r1
243
244 MY_P=${PN}-nightly
245
246 DESCRIPTION="Systems programming language from Mozilla"
247 HOMEPAGE="http://www.rust-lang.org/"
248 MY_SRC_URI="http://static.rust-lang.org/dist/${MY_P}.tar.gz"
249
250 LICENSE="|| ( MIT Apache-2.0 ) BSD-1 BSD-2 BSD-4 UoI-NCSA"
251 SLOT="nightly"
252 KEYWORDS=""
253
254 IUSE="clang debug emacs libcxx vim-syntax zsh-completion"
255 REQUIRED_USE="libcxx? ( clang )"
256
257 RDEPEND="vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )
258 zsh-completion? ( app-shells/zsh )"
259 DEPEND="${RDEPEND}
260 ${PYTHON_DEPS}
261 app-admin/eselect-rust
262 >=dev-lang/perl-5.0
263 net-misc/wget
264 clang? ( sys-devel/clang )
265 emacs? ( virtual/emacs )
266 libcxx? ( sys-libs/libcxx )
267 !dev-lang/rust:0"
268
269 S="${WORKDIR}/${MY_P}"
270
271 SITEFILE="50${PN}-mode-gentoo.el"
272
273 src_unpack() {
274 wget "${MY_SRC_URI}" || die
275 unpack ./"${PN}-nightly.tar.gz"
276
277 use amd64 && BUILD_TRIPLE=x86_64-unknown-linux-gnu
278 use x86 && BUILD_TRIPLE=i686-unknown-linux-gnu
279 export CFG_SRC_DIR="${S}" && \
280 cd ${S} && \
281 mkdir -p "${S}/dl" && \
282 mkdir -p "${S}/${BUILD_TRIPLE}/stage0/bin" && \
283 python2 "${S}/src/etc/get-snapshot.py" ${BUILD_TRIPLE} || die
284 }
285
286 src_prepare() {
287 epatch "${FILESDIR}/${PN}-0.12.0-no-ldconfig.patch" "${FILESDIR}/${PN}-9999-libdir.patch"
288 }
289
290 src_configure() {
291 "${ECONF_SOURCE:-.}"/configure \
292 --prefix="${EPREFIX}/usr" \
293 --libdir="${EPREFIX}/usr/lib/${P}" \
294 --mandir="${EPREFIX}/usr/share/${P}/man" \
295 $(use_enable clang) \
296 $(use_enable debug) \
297 $(use_enable debug llvm-assertions) \
298 $(use_enable !debug optimize) \
299 $(use_enable !debug optimize-cxx) \
300 $(use_enable !debug optimize-llvm) \
301 $(use_enable !debug optimize-tests) \
302 $(use_enable libcxx libcpp) \
303 --disable-manage-submodules \
304 --disable-verify-install \
305 || die
306 }
307
308 src_compile() {
309 emake VERBOSE=1
310
311 if use emacs; then
312 cd src/etc/emacs || die
313 elisp-compile *.el
314 elisp-make-autoload-file "${PN}-mode-autoloads.el" .
315 fi
316 }
317
318 src_install() {
319 default
320
321 if use emacs; then
322 local sf="${T}/${SITEFILE}"
323 local my_elisp_pn=${PN}-mode
324
325 insinto "/usr/share/${P}/emacs/site-lisp/${my_elisp_pn}"
326 doins -r src/etc/emacs/*.el src/etc/emacs/*.elc
327
328 cp "${FILESDIR}/${SITEFILE}" "${sf}" || die
329 sed -i -e "s:@SITELISP@:${EPREFIX}${SITELISP}/${my_elisp_pn}:g" "${sf}" || die
330 insinto "/usr/share/${P}/emacs/site-lisp/site-gentoo.d/"
331 doins "${sf}"
332 fi
333
334 if use vim-syntax; then
335 insinto /usr/share/${P}/vim/vimfiles
336 doins -r src/etc/vim/*
337 fi
338
339 if use zsh-completion; then
340 insinto "/usr/share/${P}/zsh/site-functions"
341 doins src/etc/zsh/_rust
342 fi
343
344 mv "${D}/usr/bin/rustc" "${D}/usr/bin/rustc-${PV}" || die
345 mv "${D}/usr/bin/rustdoc" "${D}/usr/bin/rustdoc-${PV}" || die
346
347 cat <<-EOF > "${T}"/50${P}
348 LDPATH="/usr/lib/${P}"
349 MANPATH="/usr/share/${P}/man"
350 EOF
351 doenvd "${T}"/50${P}
352 }
353
354 pkg_postinst() {
355 eselect rust update --if-unset
356
357 elog "Rust uses slots now, use 'eselect rust list'"
358 elog "and 'eselect rust set' to list and set rust version."
359 elog "For more information see 'eselect rust help'"
360 elog "and http://wiki.gentoo.org/wiki/Project:Eselect/User_guide"
361 }
362
363 pkg_postrm() {
364 eselect rust unset --if-invalid
365 }
366
367
368
369 1.1 dev-lang/rust/rust-0.11.0-r1.ebuild
370
371 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/rust/rust-0.11.0-r1.ebuild?rev=1.1&view=markup
372 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/rust/rust-0.11.0-r1.ebuild?rev=1.1&content-type=text/plain
373
374 Index: rust-0.11.0-r1.ebuild
375 ===================================================================
376 # Copyright 1999-2014 Gentoo Foundation
377 # Distributed under the terms of the GNU General Public License v2
378 # $Header: /var/cvsroot/gentoo-x86/dev-lang/rust/rust-0.11.0-r1.ebuild,v 1.1 2014/08/29 14:12:27 jauhien Exp $
379
380 EAPI="5"
381
382 PYTHON_COMPAT=( python{2_6,2_7} )
383
384 inherit elisp-common eutils python-any-r1
385
386 DESCRIPTION="Systems programming language from Mozilla"
387 HOMEPAGE="http://www.rust-lang.org/"
388
389 ARCH_SRC_URI="amd64? ( http://static.rust-lang.org/dist/${P}-x86_64-unknown-linux-gnu.tar.gz )
390 x86? ( http://static.rust-lang.org/dist/${P}-i686-unknown-linux-gnu.tar.gz )"
391
392 SRC_URI="http://static.rust-lang.org/dist/${P}.tar.gz ${ARCH_SRC_URI}"
393
394 LICENSE="|| ( MIT Apache-2.0 ) BSD-1 BSD-2 BSD-4 UoI-NCSA"
395 SLOT="0.11"
396 KEYWORDS="~amd64 ~x86"
397
398 IUSE="clang debug emacs libcxx vim-syntax zsh-completion"
399 REQUIRED_USE="libcxx? ( clang )"
400
401 RDEPEND="vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )
402 zsh-completion? ( app-shells/zsh )"
403 DEPEND="${RDEPEND}
404 ${PYTHON_DEPS}
405 app-admin/eselect-rust
406 >=dev-lang/perl-5.0
407 clang? ( sys-devel/clang )
408 emacs? ( virtual/emacs )
409 libcxx? ( sys-libs/libcxx )
410 !dev-lang/rust:0"
411
412 SITEFILE="50${PN}-mode-gentoo.el"
413
414 src_prepare() {
415 epatch "${FILESDIR}/${P}-stage0.patch" "${FILESDIR}/${P}-libdir.patch"
416 }
417
418 src_configure() {
419 use amd64 && ARCH_POSTFIX="x86_64"
420 use x86 && ARCH_POSTFIX="i686"
421 LOCAL_RUST_PATH="${WORKDIR}/${P}-${ARCH_POSTFIX}-unknown-linux-gnu"
422
423 "${ECONF_SOURCE:-.}"/configure \
424 --prefix="${EPREFIX}/usr" \
425 --libdir="${EPREFIX}/usr/lib/${P}" \
426 --mandir="${EPREFIX}/usr/share/${P}/man" \
427 $(use_enable clang) \
428 $(use_enable debug) \
429 $(use_enable debug llvm-assertions) \
430 $(use_enable !debug optimize) \
431 $(use_enable !debug optimize-cxx) \
432 $(use_enable !debug optimize-llvm) \
433 $(use_enable !debug optimize-tests) \
434 $(use_enable libcxx libcpp) \
435 --enable-local-rust \
436 --local-rust-root="${LOCAL_RUST_PATH}" \
437 --disable-manage-submodules \
438 --disable-verify-install \
439 || die
440 }
441
442 src_compile() {
443 emake VERBOSE=1
444
445 if use emacs; then
446 cd src/etc/emacs || die
447 elisp-compile *.el
448 elisp-make-autoload-file "${PN}-mode-autoloads.el" .
449 fi
450 }
451
452 src_install() {
453 default
454
455 if use emacs; then
456 local sf="${T}/${SITEFILE}"
457 local my_elisp_pn=${PN}-mode
458
459 insinto "/usr/share/${P}/emacs/site-lisp/${my_elisp_pn}"
460 doins -r src/etc/emacs/*.el src/etc/emacs/*.elc
461
462 cp "${FILESDIR}/${SITEFILE}" "${sf}" || die
463 sed -i -e "s:@SITELISP@:${EPREFIX}${SITELISP}/${my_elisp_pn}:g" "${sf}" || die
464 insinto "/usr/share/${P}/emacs/site-lisp/site-gentoo.d/"
465 doins "${sf}"
466 fi
467
468 if use vim-syntax; then
469 insinto /usr/share/${P}/vim/vimfiles
470 doins -r src/etc/vim/*
471 fi
472
473 if use zsh-completion; then
474 insinto "/usr/share/${P}/zsh/site-functions"
475 doins src/etc/zsh/_rust
476 fi
477
478 mv "${D}/usr/bin/rustc" "${D}/usr/bin/rustc-${PV}" || die
479 mv "${D}/usr/bin/rustdoc" "${D}/usr/bin/rustdoc-${PV}" || die
480
481 cat <<-EOF > "${T}"/50${P}
482 LDPATH="/usr/lib/${P}"
483 MANPATH="/usr/share/${P}/man"
484 EOF
485 doenvd "${T}"/50${P}
486 }
487
488 pkg_postinst() {
489 eselect rust update --if-unset
490
491 elog "Rust uses slots now, use 'eselect rust list'"
492 elog "and 'eselect rust set' to list and set rust version."
493 elog "For more information see 'eselect rust help'"
494 elog "and http://wiki.gentoo.org/wiki/Project:Eselect/User_guide"
495 }
496
497 pkg_postrm() {
498 eselect rust unset --if-invalid
499 }