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.ebuild ChangeLog
Date: Thu, 31 Jul 2014 14:29:17
Message-Id: 20140731142910.7BB9F2004F@flycatcher.gentoo.org
1 jauhien 14/07/31 14:29:09
2
3 Modified: ChangeLog
4 Added: rust-9999.ebuild
5 Log:
6 add live version, thanks to Heather Cynede for patch
7
8 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 0xB2EFA1D4)
9
10 Revision Changes Path
11 1.3 dev-lang/rust/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/rust/ChangeLog?rev=1.3&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/rust/ChangeLog?rev=1.3&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/rust/ChangeLog?r1=1.2&r2=1.3
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-lang/rust/ChangeLog,v
20 retrieving revision 1.2
21 retrieving revision 1.3
22 diff -u -r1.2 -r1.3
23 --- ChangeLog 31 Jul 2014 09:52:41 -0000 1.2
24 +++ ChangeLog 31 Jul 2014 14:29:09 -0000 1.3
25 @@ -1,6 +1,12 @@
26 # ChangeLog for dev-lang/rust
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/rust/ChangeLog,v 1.2 2014/07/31 09:52:41 jauhien Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/rust/ChangeLog,v 1.3 2014/07/31 14:29:09 jauhien Exp $
30 +
31 +*rust-9999 (31 Jul 2014)
32 +
33 + 31 Jul 2014; Jauhien Piatlicki <jauhien@g.o>
34 + +files/rust-0.12.0-no-ldconfig.patch, +rust-9999.ebuild:
35 + add live version, thanks to Heather Cynede for patch
36
37 *rust-0.11.0 (31 Jul 2014)
38
39
40
41
42 1.1 dev-lang/rust/rust-9999.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/rust/rust-9999.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/rust/rust-9999.ebuild?rev=1.1&content-type=text/plain
46
47 Index: rust-9999.ebuild
48 ===================================================================
49 # Copyright 1999-2014 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/dev-lang/rust/rust-9999.ebuild,v 1.1 2014/07/31 14:29:09 jauhien Exp $
52
53 EAPI="5"
54
55 PYTHON_COMPAT=( python{2_6,2_7} )
56
57 inherit elisp-common eutils git-r3 python-any-r1
58
59 DESCRIPTION="Systems programming language from Mozilla"
60 HOMEPAGE="http://www.rust-lang.org/"
61 EGIT_REPO_URI="git://github.com/rust-lang/rust.git"
62
63 LICENSE="|| ( MIT Apache-2.0 ) BSD-1 BSD-2 BSD-4 UoI-NCSA"
64 SLOT="0"
65 KEYWORDS=""
66
67 IUSE="clang debug emacs libcxx vim-syntax zsh-completion"
68 REQUIRED_USE="libcxx? ( clang )"
69
70 RDEPEND="vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )
71 zsh-completion? ( app-shells/zsh )"
72 DEPEND="${RDEPEND}
73 ${PYTHON_DEPS}
74 >=dev-lang/perl-5.0
75 clang? ( sys-devel/clang )
76 emacs? ( virtual/emacs )
77 libcxx? ( sys-libs/libcxx )"
78
79 SITEFILE="50${PN}-mode-gentoo.el"
80
81 src_unpack() {
82 git-r3_src_unpack
83
84 use amd64 && BUILD_TRIPLE=x86_64-unknown-linux-gnu
85 use x86 && BUILD_TRIPLE=i686-unknown-linux-gnu
86 export CFG_SRC_DIR="${S}" && \
87 cd ${S} && \
88 mkdir -p "${S}/dl" && \
89 mkdir -p "${S}/${BUILD_TRIPLE}/stage0/bin" && \
90 python2 "${S}/src/etc/get-snapshot.py" ${BUILD_TRIPLE} || die
91 }
92
93 src_prepare() {
94 epatch "${FILESDIR}/${PN}-0.12.0-no-ldconfig.patch"
95 }
96
97 src_configure() {
98 "${ECONF_SOURCE:-.}"/configure \
99 --prefix="${EPREFIX}/usr/" \
100 $(use_enable clang) \
101 $(use_enable debug) \
102 $(use_enable debug llvm-assertions) \
103 $(use_enable !debug optimize) \
104 $(use_enable !debug optimize-cxx) \
105 $(use_enable !debug optimize-llvm) \
106 $(use_enable !debug optimize-tests) \
107 $(use_enable libcxx libcpp) \
108 --disable-manage-submodules \
109 || die
110 }
111
112 src_compile() {
113 default
114
115 if use emacs; then
116 cd src/etc/emacs || die
117 elisp-compile *.el
118 elisp-make-autoload-file "${PN}-mode-autoloads.el" .
119 fi
120 }
121
122 src_install() {
123 default
124
125 if use emacs; then
126 elisp-install ${PN}-mode src/etc/emacs/*.el src/etc/emacs/*.elc
127 elisp-site-file-install "${FILESDIR}/${SITEFILE}"
128 fi
129
130 if use vim-syntax; then
131 insinto /usr/share/vim/vimfiles
132 doins -r src/etc/vim/*
133 fi
134
135 if use zsh-completion; then
136 insinto "/usr/share/zsh/site-functions"
137 doins src/etc/zsh/_rust
138 fi
139 }
140
141 pkg_postinst() {
142 use emacs && elisp-site-regen
143 }
144
145 pkg_postrm() {
146 use emacs && elisp-site-regen
147 }