1 |
zmedico 15/06/03 07:05:58 |
2 |
|
3 |
Modified: go-tools-9999.ebuild ChangeLog |
4 |
Added: go-tools-1.4.2_p20150520-r1.ebuild |
5 |
Log: |
6 |
Add favicon to the godoc web interface (bug 551030). |
7 |
|
8 |
(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key FDE8EF85AE5719A3) |
9 |
|
10 |
Revision Changes Path |
11 |
1.6 dev-go/go-tools/go-tools-9999.ebuild |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-go/go-tools/go-tools-9999.ebuild?rev=1.6&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-go/go-tools/go-tools-9999.ebuild?rev=1.6&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-go/go-tools/go-tools-9999.ebuild?r1=1.5&r2=1.6 |
16 |
|
17 |
Index: go-tools-9999.ebuild |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-go/go-tools/go-tools-9999.ebuild,v |
20 |
retrieving revision 1.5 |
21 |
retrieving revision 1.6 |
22 |
diff -u -r1.5 -r1.6 |
23 |
--- go-tools-9999.ebuild 28 May 2015 07:11:30 -0000 1.5 |
24 |
+++ go-tools-9999.ebuild 3 Jun 2015 07:05:58 -0000 1.6 |
25 |
@@ -1,6 +1,6 @@ |
26 |
# Copyright 1999-2015 Gentoo Foundation |
27 |
# Distributed under the terms of the GNU General Public License v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/dev-go/go-tools/go-tools-9999.ebuild,v 1.5 2015/05/28 07:11:30 zmedico Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/dev-go/go-tools/go-tools-9999.ebuild,v 1.6 2015/06/03 07:05:58 zmedico Exp $ |
30 |
|
31 |
EAPI=5 |
32 |
inherit git-r3 |
33 |
@@ -11,6 +11,7 @@ |
34 |
GO_PN=golang.org/x/${MY_PN} |
35 |
HOMEPAGE="https://godoc.org/${GO_PN}" |
36 |
EGIT_REPO_URI="https://go.googlesource.com/${MY_PN}" |
37 |
+SRC_URI="http://golang.org/favicon.ico -> go-favicon.ico" |
38 |
LICENSE="BSD" |
39 |
SLOT="0" |
40 |
IUSE="" |
41 |
@@ -21,6 +22,11 @@ |
42 |
EGIT_CHECKOUT_DIR="${S}" |
43 |
STRIP_MASK="*.a" |
44 |
|
45 |
+src_unpack() { |
46 |
+ git-r3_src_unpack |
47 |
+ cp "${DISTDIR}"/go-favicon.ico "${S}"/godoc/static/favicon.ico || die |
48 |
+} |
49 |
+ |
50 |
src_prepare() { |
51 |
# disable broken tests |
52 |
sed -e 's:TestWeb(:_\0:' -i cmd/godoc/godoc_test.go || die |
53 |
@@ -41,6 +47,11 @@ |
54 |
-e 's:TestStdKen(:_\0:' -i go/types/stdlib_test.go || die |
55 |
sed -e 's:TestRepoRootForImportPath(:_\0:' -i go/vcs/vcs_test.go || die |
56 |
sed -e 's:TestStdlib(:_\0:' -i refactor/lexical/lexical_test.go || die |
57 |
+ |
58 |
+ # Add favicon to the godoc web interface (bug 551030) |
59 |
+ sed -e 's:"example.html",:\0\n\t"favicon.ico",:' -i godoc/static/makestatic.go || die |
60 |
+ sed -e 's:<link type="text/css":<link rel="icon" type="image/png" href="/lib/godoc/favicon.ico">\n\0:' -i \ |
61 |
+ godoc/static/godoc.html || die |
62 |
} |
63 |
|
64 |
src_compile() { |
65 |
@@ -49,6 +60,12 @@ |
66 |
cp -sR "${EPREFIX}"/usr/lib/go "${GOROOT}" || die |
67 |
rm -rf "${GOROOT}/src/${GO_PN}" \ |
68 |
"${GOROOT}/pkg/linux_${ARCH}/${GO_PN}" || die |
69 |
+ |
70 |
+ # Generate static.go with favicon included |
71 |
+ pushd godoc/static >/dev/null |
72 |
+ GOROOT="${GOROOT}" GOPATH=${WORKDIR} go run makestatic.go || die |
73 |
+ popd >/dev/null |
74 |
+ |
75 |
GOROOT="${GOROOT}" GOPATH=${WORKDIR} go install -v -x -work ${GO_PN}/... || die |
76 |
} |
77 |
|
78 |
|
79 |
|
80 |
|
81 |
1.8 dev-go/go-tools/ChangeLog |
82 |
|
83 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-go/go-tools/ChangeLog?rev=1.8&view=markup |
84 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-go/go-tools/ChangeLog?rev=1.8&content-type=text/plain |
85 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-go/go-tools/ChangeLog?r1=1.7&r2=1.8 |
86 |
|
87 |
Index: ChangeLog |
88 |
=================================================================== |
89 |
RCS file: /var/cvsroot/gentoo-x86/dev-go/go-tools/ChangeLog,v |
90 |
retrieving revision 1.7 |
91 |
retrieving revision 1.8 |
92 |
diff -u -r1.7 -r1.8 |
93 |
--- ChangeLog 28 May 2015 07:11:30 -0000 1.7 |
94 |
+++ ChangeLog 3 Jun 2015 07:05:58 -0000 1.8 |
95 |
@@ -1,6 +1,12 @@ |
96 |
# ChangeLog for dev-go/go-tools |
97 |
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 |
98 |
-# $Header: /var/cvsroot/gentoo-x86/dev-go/go-tools/ChangeLog,v 1.7 2015/05/28 07:11:30 zmedico Exp $ |
99 |
+# $Header: /var/cvsroot/gentoo-x86/dev-go/go-tools/ChangeLog,v 1.8 2015/06/03 07:05:58 zmedico Exp $ |
100 |
+ |
101 |
+*go-tools-1.4.2_p20150520-r1 (03 Jun 2015) |
102 |
+ |
103 |
+ 03 Jun 2015; Zac Medico <zmedico@g.o> |
104 |
+ +go-tools-1.4.2_p20150520-r1.ebuild, go-tools-9999.ebuild: |
105 |
+ Add favicon to the godoc web interface (bug 551030). |
106 |
|
107 |
28 May 2015; Zac Medico <zmedico@g.o> go-tools-1.4.2_p20150520.ebuild, |
108 |
go-tools-9999.ebuild: |
109 |
|
110 |
|
111 |
|
112 |
1.1 dev-go/go-tools/go-tools-1.4.2_p20150520-r1.ebuild |
113 |
|
114 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-go/go-tools/go-tools-1.4.2_p20150520-r1.ebuild?rev=1.1&view=markup |
115 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-go/go-tools/go-tools-1.4.2_p20150520-r1.ebuild?rev=1.1&content-type=text/plain |
116 |
|
117 |
Index: go-tools-1.4.2_p20150520-r1.ebuild |
118 |
=================================================================== |
119 |
# Copyright 1999-2015 Gentoo Foundation |
120 |
# Distributed under the terms of the GNU General Public License v2 |
121 |
# $Header: /var/cvsroot/gentoo-x86/dev-go/go-tools/go-tools-1.4.2_p20150520-r1.ebuild,v 1.1 2015/06/03 07:05:58 zmedico Exp $ |
122 |
|
123 |
EAPI=5 |
124 |
|
125 |
KEYWORDS="~amd64" |
126 |
DESCRIPTION="Go Tools" |
127 |
MY_PN=${PN##*-} |
128 |
GO_PN=golang.org/x/${MY_PN} |
129 |
HOMEPAGE="https://godoc.org/${GO_PN}" |
130 |
EGIT_COMMIT="3d1847243ea4f07666a91110f48e79e43396603d" |
131 |
SRC_URI="https://github.com/golang/${MY_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz |
132 |
http://golang.org/favicon.ico -> go-favicon.ico" |
133 |
LICENSE="BSD" |
134 |
SLOT="0" |
135 |
IUSE="" |
136 |
DEPEND=">=dev-lang/go-1.4 |
137 |
dev-go/go-net" |
138 |
RDEPEND="" |
139 |
S="${WORKDIR}/src/${GO_PN}" |
140 |
EGIT_CHECKOUT_DIR="${S}" |
141 |
STRIP_MASK="*.a" |
142 |
|
143 |
src_unpack() { |
144 |
default |
145 |
mkdir -p src/${GO_PN%/*} || die |
146 |
mv ${MY_PN}-${EGIT_COMMIT} src/${GO_PN} || die |
147 |
cp "${DISTDIR}"/go-favicon.ico "${S}"/godoc/static/favicon.ico || die |
148 |
} |
149 |
|
150 |
src_prepare() { |
151 |
# disable broken tests |
152 |
sed -e 's:TestWeb(:_\0:' -i cmd/godoc/godoc_test.go || die |
153 |
sed -e 's:TestVet(:_\0:' -i cmd/vet/vet_test.go || die |
154 |
sed -e 's:TestImport(:_\0:' -i go/gcimporter/gcimporter_test.go || die |
155 |
sed -e 's:TestImportStdLib(:_\0:' -i go/importer/import_test.go || die |
156 |
sed -e 's:TestStdlib(:_\0:' -i go/loader/stdlib_test.go || die |
157 |
sed -e 's:TestStdlib(:_\0:' -i go/ssa/stdlib_test.go || die |
158 |
sed -e 's:TestGorootTest(:_\0:' \ |
159 |
-e 's:TestFoo(:_\0:' \ |
160 |
-e 's:TestTestmainPackage(:_\0:' \ |
161 |
-i go/ssa/interp/interp_test.go || die |
162 |
sed -e 's:TestBar(:_\0:' \ |
163 |
-e 's:TestFoo(:_\0:' -i go/ssa/interp/testdata/a_test.go || die |
164 |
sed -e 's:TestCheck(:_\0:' -i go/types/check_test.go || die |
165 |
sed -e 's:TestStdlib(:_\0:' \ |
166 |
-e 's:TestStdFixed(:_\0:' \ |
167 |
-e 's:TestStdKen(:_\0:' -i go/types/stdlib_test.go || die |
168 |
sed -e 's:TestRepoRootForImportPath(:_\0:' -i go/vcs/vcs_test.go || die |
169 |
sed -e 's:TestStdlib(:_\0:' -i refactor/lexical/lexical_test.go || die |
170 |
|
171 |
# Add favicon to the godoc web interface (bug 551030) |
172 |
sed -e 's:"example.html",:\0\n\t"favicon.ico",:' -i godoc/static/makestatic.go || die |
173 |
sed -e 's:<link type="text/css":<link rel="icon" type="image/png" href="/lib/godoc/favicon.ico">\n\0:' -i \ |
174 |
godoc/static/godoc.html || die |
175 |
} |
176 |
|
177 |
src_compile() { |
178 |
# Create a writable GOROOT in order to avoid sandbox violations. |
179 |
GOROOT="${WORKDIR}/goroot" |
180 |
cp -sR "${EPREFIX}"/usr/lib/go "${GOROOT}" || die |
181 |
rm -rf "${GOROOT}/src/${GO_PN}" \ |
182 |
"${GOROOT}/pkg/linux_${ARCH}/${GO_PN}" || die |
183 |
|
184 |
# Generate static.go with favicon included |
185 |
pushd godoc/static >/dev/null |
186 |
GOROOT="${GOROOT}" GOPATH=${WORKDIR} go run makestatic.go || die |
187 |
popd >/dev/null |
188 |
|
189 |
GOROOT="${GOROOT}" GOPATH=${WORKDIR} go install -v -x -work ${GO_PN}/... || die |
190 |
} |
191 |
|
192 |
src_test() { |
193 |
GOROOT="${GOROOT}" GOPATH=${WORKDIR} \ |
194 |
go test -x -v ${GO_PN}/... || die $? |
195 |
} |
196 |
|
197 |
src_install() { |
198 |
local x |
199 |
exeinto /usr/lib/go/bin |
200 |
doexe "${WORKDIR}"/bin/* |
201 |
|
202 |
# godoc ends up in ${GOROOT}/bin |
203 |
dodir /usr/bin |
204 |
while read -r -d '' x; do |
205 |
doexe "${x}" |
206 |
ln "${ED}"usr/{lib/go/bin,bin}/${x##*/} || die |
207 |
done < <(find "${GOROOT}/bin" -type f -print0) |
208 |
|
209 |
# cover and vet end up in ${GOROOT}/pkg/tool/linux_amd64 |
210 |
exeinto /usr/lib/go/pkg/tool/linux_amd64 |
211 |
find "${GOROOT}/pkg/tool/linux_amd64" -type f -exec doexe {} \; |
212 |
|
213 |
insinto /usr/lib/go |
214 |
find "${WORKDIR}"/{pkg,src} -name '.git*' -exec rm -rf {} \; 2>/dev/null |
215 |
doins -r "${WORKDIR}"/{pkg,src} |
216 |
} |