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-bin: rust-bin-1.1.0.ebuild ChangeLog rust-bin-1.0.0.ebuild
Date: Sat, 04 Jul 2015 15:05:30
Message-Id: 20150704150518.58B8874B@oystercatcher.gentoo.org
1 jauhien 15/07/04 15:05:18
2
3 Modified: ChangeLog
4 Added: rust-bin-1.1.0.ebuild
5 Removed: rust-bin-1.0.0.ebuild
6 Log:
7 version bump
8
9 (Portage version: 2.2.18/cvs/Linux i686, signed Manifest commit with key B2EFA1D4)
10
11 Revision Changes Path
12 1.10 dev-lang/rust-bin/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/rust-bin/ChangeLog?rev=1.10&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/rust-bin/ChangeLog?rev=1.10&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/rust-bin/ChangeLog?r1=1.9&r2=1.10
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/dev-lang/rust-bin/ChangeLog,v
21 retrieving revision 1.9
22 retrieving revision 1.10
23 diff -u -r1.9 -r1.10
24 --- ChangeLog 6 Jun 2015 15:42:44 -0000 1.9
25 +++ ChangeLog 4 Jul 2015 15:05:18 -0000 1.10
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.9 2015/06/06 15:42:44 jauhien Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/rust-bin/ChangeLog,v 1.10 2015/07/04 15:05:18 jauhien Exp $
31 +
32 +*rust-bin-1.1.0 (04 Jul 2015)
33 +
34 + 04 Jul 2015; Jauhien Piatlicki <jauhien@g.o> +rust-bin-1.1.0.ebuild,
35 + -rust-bin-1.0.0.ebuild:
36 + version bump
37
38 06 Jun 2015; Jauhien Piatlicki <jauhien@g.o> rust-bin-1.0.0.ebuild:
39 move to new SLOTs schema
40
41
42
43 1.1 dev-lang/rust-bin/rust-bin-1.1.0.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/rust-bin/rust-bin-1.1.0.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/rust-bin/rust-bin-1.1.0.ebuild?rev=1.1&content-type=text/plain
47
48 Index: rust-bin-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-bin/rust-bin-1.1.0.ebuild,v 1.1 2015/07/04 15:05:18 jauhien Exp $
53
54 EAPI=5
55
56 inherit eutils bash-completion-r1
57
58 MY_P="rustc-${PV}"
59
60 DESCRIPTION="Systems programming language from Mozilla"
61 HOMEPAGE="http://www.rust-lang.org/"
62 SRC_URI="amd64? ( http://static.rust-lang.org/dist/${MY_P}-x86_64-unknown-linux-gnu.tar.gz )
63 x86? ( http://static.rust-lang.org/dist/${MY_P}-i686-unknown-linux-gnu.tar.gz )"
64
65 LICENSE="|| ( MIT Apache-2.0 ) BSD-1 BSD-2 BSD-4 UoI-NCSA"
66 SLOT="stable"
67 KEYWORDS="~amd64 ~x86"
68 IUSE=""
69
70 DEPEND=">=app-eselect/eselect-rust-0.3_pre20150425
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}/${MY_P}-${postfix}" "${S}" || die
82 }
83
84 src_install() {
85 local components=rustc
86 ./install.sh \
87 --components="${components}" \
88 --disable-verify \
89 --prefix="${D}/opt/${P}" \
90 --mandir="${D}/usr/share/${P}/man" \
91 --disable-ldconfig \
92 || die
93
94 local rustc=rustc-bin-${PV}
95 local rustdoc=rustdoc-bin-${PV}
96 local rustgdb=rust-gdb-bin-${PV}
97
98 mv "${D}/opt/${P}/bin/rustc" "${D}/opt/${P}/bin/${rustc}" || die
99 mv "${D}/opt/${P}/bin/rustdoc" "${D}/opt/${P}/bin/${rustdoc}" || die
100 mv "${D}/opt/${P}/bin/rust-gdb" "${D}/opt/${P}/bin/${rustgdb}" || die
101
102 dosym "/opt/${P}/bin/${rustc}" "/usr/bin/${rustc}"
103 dosym "/opt/${P}/bin/${rustdoc}" "/usr/bin/${rustdoc}"
104 dosym "/opt/${P}/bin/${rustgdb}" "/usr/bin/${rustgdb}"
105
106 cat <<-EOF > "${T}"/50${P}
107 LDPATH="/opt/${P}/lib"
108 MANPATH="/usr/share/${P}/man"
109 EOF
110 doenvd "${T}"/50${P}
111
112 cat <<-EOF > "${T}/provider-${P}"
113 /usr/bin/rustdoc
114 /usr/bin/rust-gdb
115 EOF
116 dodir /etc/env.d/rust
117 insinto /etc/env.d/rust
118 doins "${T}/provider-${P}"
119 }
120
121 pkg_postinst() {
122 eselect rust update --if-unset
123
124 elog "Rust installs a helper script for calling GDB now,"
125 elog "for your convenience it is installed under /usr/bin/rust-gdb-bin-${PV},"
126
127 if has_version app-editors/emacs || has_version app-editors/emacs-vcs; then
128 elog "install app-emacs/rust-mode to get emacs support for rust."
129 fi
130
131 if has_version app-editors/gvim || has_version app-editors/vim; then
132 elog "install app-vim/rust-mode to get vim support for rust."
133 fi
134
135 if has_version 'app-shells/zsh'; then
136 elog "install app-shells/rust-zshcomp to get zsh completion for rust."
137 fi
138 }
139
140 pkg_postrm() {
141 eselect rust unset --if-invalid
142 }