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