1 |
williamh 12/10/29 15:57:40 |
2 |
|
3 |
Modified: ChangeLog go-9999.ebuild |
4 |
Added: go-1.0.3.ebuild |
5 |
Log: |
6 |
version bump and sync live ebuild |
7 |
|
8 |
(Portage version: 2.2.0_alpha142/cvs/Linux i686, signed Manifest commit with key 0x30C46538) |
9 |
|
10 |
Revision Changes Path |
11 |
1.7 dev-lang/go/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/go/ChangeLog?rev=1.7&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/go/ChangeLog?rev=1.7&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/go/ChangeLog?r1=1.6&r2=1.7 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-lang/go/ChangeLog,v |
20 |
retrieving revision 1.6 |
21 |
retrieving revision 1.7 |
22 |
diff -u -r1.6 -r1.7 |
23 |
--- ChangeLog 14 Sep 2012 18:29:06 -0000 1.6 |
24 |
+++ ChangeLog 29 Oct 2012 15:57:40 -0000 1.7 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for dev-lang/go |
27 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/go/ChangeLog,v 1.6 2012/09/14 18:29:06 maekke Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/go/ChangeLog,v 1.7 2012/10/29 15:57:40 williamh Exp $ |
30 |
+ |
31 |
+*go-1.0.3 (29 Oct 2012) |
32 |
+ |
33 |
+ 29 Oct 2012; William Hubbs <williamh@g.o> +go-1.0.3.ebuild, |
34 |
+ +files/go-1.0.3-hardened.patch, go-9999.ebuild: |
35 |
+ version bump and sync live ebuild |
36 |
|
37 |
14 Sep 2012; Markus Meier <maekke@g.o> go-1.0.2.ebuild: |
38 |
add ~arm, bug #416133 |
39 |
|
40 |
|
41 |
|
42 |
1.8 dev-lang/go/go-9999.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/go/go-9999.ebuild?rev=1.8&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/go/go-9999.ebuild?rev=1.8&content-type=text/plain |
46 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/go/go-9999.ebuild?r1=1.7&r2=1.8 |
47 |
|
48 |
Index: go-9999.ebuild |
49 |
=================================================================== |
50 |
RCS file: /var/cvsroot/gentoo-x86/dev-lang/go/go-9999.ebuild,v |
51 |
retrieving revision 1.7 |
52 |
retrieving revision 1.8 |
53 |
diff -u -r1.7 -r1.8 |
54 |
--- go-9999.ebuild 1 Sep 2012 17:34:11 -0000 1.7 |
55 |
+++ go-9999.ebuild 29 Oct 2012 15:57:40 -0000 1.8 |
56 |
@@ -1,21 +1,20 @@ |
57 |
# Copyright 1999-2012 Gentoo Foundation |
58 |
# Distributed under the terms of the GNU General Public License v2 |
59 |
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/go/go-9999.ebuild,v 1.7 2012/09/01 17:34:11 williamh Exp $ |
60 |
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/go/go-9999.ebuild,v 1.8 2012/10/29 15:57:40 williamh Exp $ |
61 |
|
62 |
EAPI=4 |
63 |
|
64 |
export CTARGET=${CTARGET:-${CHOST}} |
65 |
|
66 |
+inherit bash-completion-r1 elisp-common eutils |
67 |
+ |
68 |
if [[ ${PV} = 9999 ]]; then |
69 |
EHG_REPO_URI="https://go.googlecode.com/hg" |
70 |
inherit mercurial |
71 |
-fi |
72 |
-inherit bash-completion-r1 elisp-common eutils |
73 |
- |
74 |
-if [[ ${PV} != 9999 ]]; then |
75 |
+else |
76 |
SRC_URI="http://go.googlecode.com/files/go${PV}.src.tar.gz" |
77 |
# Upstream only supports go on amd64, arm and x86 architectures. |
78 |
- KEYWORDS="-* ~amd64 ~x86" |
79 |
+ KEYWORDS="-* ~amd64 ~arm ~x86" |
80 |
fi |
81 |
|
82 |
DESCRIPTION="A concurrent garbage collected and typesafe programming language" |
83 |
@@ -25,13 +24,11 @@ |
84 |
SLOT="0" |
85 |
IUSE="bash-completion emacs vim-syntax zsh-completion" |
86 |
|
87 |
-DEPEND="sys-apps/ed |
88 |
- ${COMMON_DEPEND}" |
89 |
+DEPEND="sys-apps/ed" |
90 |
RDEPEND="bash-completion? ( app-shells/bash-completion ) |
91 |
emacs? ( virtual/emacs ) |
92 |
vim-syntax? ( || ( app-editors/vim app-editors/gvim ) ) |
93 |
- zsh-completion? ( app-shells/zsh-completion ) |
94 |
- ${COMMON_DEPEND}" |
95 |
+ zsh-completion? ( app-shells/zsh-completion )" |
96 |
|
97 |
# The go language stores binary data for packages in *.a files. |
98 |
# These are _NOT_ libraries, and should not be stripped. |
99 |
@@ -43,6 +40,9 @@ |
100 |
|
101 |
src_prepare() |
102 |
{ |
103 |
+ if [[ ${PV} != 9999 ]]; then |
104 |
+ epatch "${FILESDIR}"/${P}-hardened.patch |
105 |
+ fi |
106 |
epatch_user |
107 |
} |
108 |
|
109 |
@@ -84,7 +84,7 @@ |
110 |
# Once this is fixed, we can consider using the doc use flag to control |
111 |
# installing the doc and src directories. |
112 |
# [1] http://code.google.com/p/go/issues/detail?id=2775 |
113 |
- doins -r doc lib pkg src |
114 |
+ doins -r doc include lib pkg src |
115 |
|
116 |
if use bash-completion; then |
117 |
dobashcomp misc/bash/go |
118 |
@@ -123,7 +123,7 @@ |
119 |
# linker are also checked - so we need to fix them too. |
120 |
ebegin "fixing timestamps to avoid unnecessary rebuilds" |
121 |
tref="usr/lib/go/pkg/*/runtime.a" |
122 |
- find "${ROOT}"usr/lib/go/pkg -type f \ |
123 |
+ find "${ROOT}"usr/lib/go -type f \ |
124 |
-exec touch -r "${ROOT}"${tref} {} \; |
125 |
eend $? |
126 |
} |
127 |
|
128 |
|
129 |
|
130 |
1.1 dev-lang/go/go-1.0.3.ebuild |
131 |
|
132 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/go/go-1.0.3.ebuild?rev=1.1&view=markup |
133 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/go/go-1.0.3.ebuild?rev=1.1&content-type=text/plain |
134 |
|
135 |
Index: go-1.0.3.ebuild |
136 |
=================================================================== |
137 |
# Copyright 1999-2012 Gentoo Foundation |
138 |
# Distributed under the terms of the GNU General Public License v2 |
139 |
# $Header: /var/cvsroot/gentoo-x86/dev-lang/go/go-1.0.3.ebuild,v 1.1 2012/10/29 15:57:40 williamh Exp $ |
140 |
|
141 |
EAPI=4 |
142 |
|
143 |
export CTARGET=${CTARGET:-${CHOST}} |
144 |
|
145 |
inherit bash-completion-r1 elisp-common eutils |
146 |
|
147 |
if [[ ${PV} = 9999 ]]; then |
148 |
EHG_REPO_URI="https://go.googlecode.com/hg" |
149 |
inherit mercurial |
150 |
else |
151 |
SRC_URI="http://go.googlecode.com/files/go${PV}.src.tar.gz" |
152 |
# Upstream only supports go on amd64, arm and x86 architectures. |
153 |
KEYWORDS="-* ~amd64 ~arm ~x86" |
154 |
fi |
155 |
|
156 |
DESCRIPTION="A concurrent garbage collected and typesafe programming language" |
157 |
HOMEPAGE="http://www.golang.org" |
158 |
|
159 |
LICENSE="BSD" |
160 |
SLOT="0" |
161 |
IUSE="bash-completion emacs vim-syntax zsh-completion" |
162 |
|
163 |
DEPEND="sys-apps/ed" |
164 |
RDEPEND="bash-completion? ( app-shells/bash-completion ) |
165 |
emacs? ( virtual/emacs ) |
166 |
vim-syntax? ( || ( app-editors/vim app-editors/gvim ) ) |
167 |
zsh-completion? ( app-shells/zsh-completion )" |
168 |
|
169 |
# The go language stores binary data for packages in *.a files. |
170 |
# These are _NOT_ libraries, and should not be stripped. |
171 |
STRIP_MASK="/usr/lib/go/pkg/linux*/*.a" |
172 |
|
173 |
if [[ ${PV} != 9999 ]]; then |
174 |
S="${WORKDIR}"/go |
175 |
fi |
176 |
|
177 |
src_prepare() |
178 |
{ |
179 |
if [[ ${PV} != 9999 ]]; then |
180 |
epatch "${FILESDIR}"/${P}-hardened.patch |
181 |
fi |
182 |
epatch_user |
183 |
} |
184 |
|
185 |
src_compile() |
186 |
{ |
187 |
export GOROOT_FINAL=/usr/lib/go |
188 |
export GOROOT="$(pwd)" |
189 |
export GOBIN="${GOROOT}/bin" |
190 |
if [[ $CTARGET = armv5* ]] |
191 |
then |
192 |
export GOARM=5 |
193 |
fi |
194 |
|
195 |
cd src |
196 |
./make.bash || die "build failed" |
197 |
cd .. |
198 |
|
199 |
if use emacs; then |
200 |
elisp-compile misc/emacs/*.el |
201 |
fi |
202 |
} |
203 |
|
204 |
src_test() |
205 |
{ |
206 |
cd src |
207 |
PATH="${GOBIN}:${PATH}" \ |
208 |
./run.bash --no-rebuild --banner || die "tests failed" |
209 |
} |
210 |
|
211 |
src_install() |
212 |
{ |
213 |
dobin bin/* |
214 |
dodoc AUTHORS CONTRIBUTORS PATENTS README |
215 |
|
216 |
dodir /usr/lib/go |
217 |
insinto /usr/lib/go |
218 |
|
219 |
# There is a known issue which requires the source tree to be installed [1]. |
220 |
# Once this is fixed, we can consider using the doc use flag to control |
221 |
# installing the doc and src directories. |
222 |
# [1] http://code.google.com/p/go/issues/detail?id=2775 |
223 |
doins -r doc include lib pkg src |
224 |
|
225 |
if use bash-completion; then |
226 |
dobashcomp misc/bash/go |
227 |
fi |
228 |
|
229 |
if use emacs; then |
230 |
elisp-install ${PN} misc/emacs/*.el misc/emacs/*.elc |
231 |
fi |
232 |
|
233 |
if use vim-syntax; then |
234 |
insinto /usr/share/vim/vimfiles |
235 |
doins -r misc/vim/ftdetect |
236 |
doins -r misc/vim/ftplugin |
237 |
doins -r misc/vim/syntax |
238 |
doins -r misc/vim/plugin |
239 |
doins -r misc/vim/indent |
240 |
fi |
241 |
|
242 |
if use zsh-completion; then |
243 |
insinto /usr/share/zsh/site-functions |
244 |
doins misc/zsh/go |
245 |
fi |
246 |
|
247 |
fperms -R +x /usr/lib/go/pkg/tool |
248 |
} |
249 |
|
250 |
pkg_postinst() |
251 |
{ |
252 |
if use emacs; then |
253 |
elisp-site-regen |
254 |
fi |
255 |
|
256 |
# If the go tool sees a package file timestamped older than a dependancy it |
257 |
# will rebuild that file. So, in order to stop go from rebuilding lots of |
258 |
# packages for every build we need to fix the timestamps. The compiler and |
259 |
# linker are also checked - so we need to fix them too. |
260 |
ebegin "fixing timestamps to avoid unnecessary rebuilds" |
261 |
tref="usr/lib/go/pkg/*/runtime.a" |
262 |
find "${ROOT}"usr/lib/go -type f \ |
263 |
-exec touch -r "${ROOT}"${tref} {} \; |
264 |
eend $? |
265 |
} |
266 |
|
267 |
pkg_postrm() |
268 |
{ |
269 |
if use emacs; then |
270 |
elisp-site-regen |
271 |
fi |
272 |
} |