Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-apache/mod_spdy: mod_spdy-9999.ebuild metadata.xml mod_spdy-0.9.3.3.ebuild ChangeLog
Date: Tue, 28 May 2013 00:21:31
Message-Id: 20130528002125.981242171E@flycatcher.gentoo.org
1 vapier 13/05/28 00:21:25
2
3 Added: mod_spdy-9999.ebuild metadata.xml
4 mod_spdy-0.9.3.3.ebuild ChangeLog
5 Log:
6 Initial ebuild #412451 by candrews.
7
8 (Portage version: 2.2.0_alpha170/cvs/Linux x86_64, signed Manifest commit with key FB7C4156)
9
10 Revision Changes Path
11 1.1 www-apache/mod_spdy/mod_spdy-9999.ebuild
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apache/mod_spdy/mod_spdy-9999.ebuild?rev=1.1&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apache/mod_spdy/mod_spdy-9999.ebuild?rev=1.1&content-type=text/plain
15
16 Index: mod_spdy-9999.ebuild
17 ===================================================================
18 # Copyright 1999-2013 Gentoo Foundation
19 # Distributed under the terms of the GNU General Public License v2
20 # $Header: /var/cvsroot/gentoo-x86/www-apache/mod_spdy/mod_spdy-9999.ebuild,v 1.1 2013/05/28 00:21:25 vapier Exp $
21
22 EAPI="4"
23
24 inherit apache-module eutils
25
26 if [[ ${PV} == 9999 ]] ; then
27 ESVN_REPO_URI="http://mod-spdy.googlecode.com/svn/trunk/src"
28 ESVN_RESTRICT="export"
29 EGIT_REPO_URI="https://chromium.googlesource.com/chromium/tools/depot_tools.git"
30 EGIT_SOURCEDIR="${WORKDIR}/depot_tools"
31 inherit subversion git-2
32 else
33 SRC_URI="mirror://gentoo/${P}.tar.xz"
34 KEYWORDS="~amd64 ~x86"
35 fi
36
37 DESCRIPTION="Apache module for rewriting web pages to reduce latency and bandwidth"
38 HOMEPAGE="http://code.google.com/p/modpagespeed"
39
40 LICENSE="Apache-2.0"
41 SLOT="0"
42 IUSE="debug test"
43
44 RDEPEND="sys-libs/zlib[minizip]"
45 DEPEND="${RDEPEND}"
46 if [[ ${PV} == 9999 ]] ; then
47 DEPEND+=" net-misc/rsync"
48 fi
49
50 need_apache2_2
51
52 e() { echo "$@"; "$@" || die; }
53
54 EGCLIENT="${WORKDIR}/depot_tools/gclient"
55 egclient() { set -- "${EGCLIENT}" "$@"; e "$@"; }
56
57 src_unpack() {
58 if [[ ${PN} == "9999" ]] ; then
59 git-2_src_unpack
60
61 subversion_src_unpack
62 mkdir -p "${ESVN_STORE_DIR}/${PN}" || die
63 cd "${ESVN_STORE_DIR}/${PN}" || die
64
65 egclient config ${ESVN_REPO_URI}
66 egclient sync --force --nohooks --delete_unversioned_trees
67 e rsync -a --exclude=".svn/" ./ "${S}/"
68 else
69 default
70 fi
71 }
72
73 src_prepare() {
74 epatch "${FILESDIR}"/${PN}-0.9.3.3-execinfo.patch
75
76 # Make sure the system zlib is used.
77 epatch "${FILESDIR}"/${PN}-0.9.3.3-system-zlib.patch
78 find src/third_party/zlib/ -name '*.[ch]' -delete
79 }
80
81 src_configure() {
82 tc-export AR CC CXX RANLIB
83 tc-export_build_env BUILD_AR BUILD_CC BUILD_CXX
84
85 local myconf=(
86 -Duse_system_zlib=1
87 -Duse_system_ssl=1
88 -Dwerror=
89 )
90 #egclient runhooks "${myconf[@]}"
91 e python src/build/gyp_chromium "${myconf[@]}"
92 }
93
94 echo_tests() { echo base_unittests spdy_{apache,common}_test; }
95 src_compile() {
96 emake -C src \
97 V=1 \
98 BUILDTYPE=$(usex debug Debug Release) \
99 mod_spdy \
100 $(use test && echo_tests)
101 }
102
103 src_test() {
104 cd src/out/Release
105 local t
106 for t in $(echo_tests) ; do
107 e ./${t}
108 done
109 }
110
111 src_install() {
112 ln -sf src/out/*/libmod_spdy.so ${PN}.so || die
113 APACHE2_MOD_FILE="${PWD}/${PN}.so"
114 APACHE2_MOD_DEFINE="SPDY"
115 apache-module_src_install
116
117 # Workaround #471442
118 cd "${S}/src"
119 local conf="${T}/80_${PN}.conf"
120 cat <<-EOF > "${conf}"
121 <IfDefine SPDY>
122 $(sed 's:@@APACHE_MODULEDIR@@:modules:' install/common/spdy.load.template)
123
124 $(<install/common/spdy.conf.template)
125 </IfDefine>
126 EOF
127 insinto "${APACHE_MODULES_CONFDIR}"
128 doins "${conf}"
129 }
130
131
132
133 1.1 www-apache/mod_spdy/metadata.xml
134
135 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apache/mod_spdy/metadata.xml?rev=1.1&view=markup
136 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apache/mod_spdy/metadata.xml?rev=1.1&content-type=text/plain
137
138 Index: metadata.xml
139 ===================================================================
140 <?xml version="1.0" encoding="UTF-8"?>
141 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
142 <pkgmetadata>
143 <maintainer>
144 <email>vapier@g.o</email>
145 </maintainer>
146 </pkgmetadata>
147
148
149
150 1.1 www-apache/mod_spdy/mod_spdy-0.9.3.3.ebuild
151
152 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apache/mod_spdy/mod_spdy-0.9.3.3.ebuild?rev=1.1&view=markup
153 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apache/mod_spdy/mod_spdy-0.9.3.3.ebuild?rev=1.1&content-type=text/plain
154
155 Index: mod_spdy-0.9.3.3.ebuild
156 ===================================================================
157 # Copyright 1999-2013 Gentoo Foundation
158 # Distributed under the terms of the GNU General Public License v2
159 # $Header: /var/cvsroot/gentoo-x86/www-apache/mod_spdy/mod_spdy-0.9.3.3.ebuild,v 1.1 2013/05/28 00:21:25 vapier Exp $
160
161 EAPI="4"
162
163 inherit apache-module eutils
164
165 if [[ ${PV} == 9999 ]] ; then
166 ESVN_REPO_URI="http://mod-spdy.googlecode.com/svn/trunk/src"
167 ESVN_RESTRICT="export"
168 EGIT_REPO_URI="https://chromium.googlesource.com/chromium/tools/depot_tools.git"
169 EGIT_SOURCEDIR="${WORKDIR}/depot_tools"
170 inherit subversion git-2
171 else
172 SRC_URI="mirror://gentoo/${P}.tar.xz"
173 KEYWORDS="~amd64 ~x86"
174 fi
175
176 DESCRIPTION="Apache module for rewriting web pages to reduce latency and bandwidth"
177 HOMEPAGE="http://code.google.com/p/modpagespeed"
178
179 LICENSE="Apache-2.0"
180 SLOT="0"
181 IUSE="debug test"
182
183 RDEPEND="sys-libs/zlib[minizip]"
184 DEPEND="${RDEPEND}"
185 if [[ ${PV} == 9999 ]] ; then
186 DEPEND+=" net-misc/rsync"
187 fi
188
189 need_apache2_2
190
191 e() { echo "$@"; "$@" || die; }
192
193 EGCLIENT="${WORKDIR}/depot_tools/gclient"
194 egclient() { set -- "${EGCLIENT}" "$@"; e "$@"; }
195
196 src_unpack() {
197 if [[ ${PN} == "9999" ]] ; then
198 git-2_src_unpack
199
200 subversion_src_unpack
201 mkdir -p "${ESVN_STORE_DIR}/${PN}" || die
202 cd "${ESVN_STORE_DIR}/${PN}" || die
203
204 egclient config ${ESVN_REPO_URI}
205 egclient sync --force --nohooks --delete_unversioned_trees
206 e rsync -a --exclude=".svn/" ./ "${S}/"
207 else
208 default
209 fi
210 }
211
212 src_prepare() {
213 epatch "${FILESDIR}"/${PN}-0.9.3.3-execinfo.patch
214
215 # Make sure the system zlib is used.
216 epatch "${FILESDIR}"/${PN}-0.9.3.3-system-zlib.patch
217 find src/third_party/zlib/ -name '*.[ch]' -delete
218 }
219
220 src_configure() {
221 tc-export AR CC CXX RANLIB
222 tc-export_build_env BUILD_AR BUILD_CC BUILD_CXX
223
224 local myconf=(
225 -Duse_system_zlib=1
226 -Duse_system_ssl=1
227 -Dwerror=
228 )
229 #egclient runhooks "${myconf[@]}"
230 e python src/build/gyp_chromium "${myconf[@]}"
231 }
232
233 echo_tests() { echo base_unittests spdy_{apache,common}_test; }
234 src_compile() {
235 emake -C src \
236 V=1 \
237 BUILDTYPE=$(usex debug Debug Release) \
238 mod_spdy \
239 $(use test && echo_tests)
240 }
241
242 src_test() {
243 cd src/out/Release
244 local t
245 for t in $(echo_tests) ; do
246 e ./${t}
247 done
248 }
249
250 src_install() {
251 ln -sf src/out/*/libmod_spdy.so ${PN}.so || die
252 APACHE2_MOD_FILE="${PWD}/${PN}.so"
253 APACHE2_MOD_DEFINE="SPDY"
254 apache-module_src_install
255
256 # Workaround #471442
257 cd "${S}/src"
258 local conf="${T}/80_${PN}.conf"
259 cat <<-EOF > "${conf}"
260 <IfDefine SPDY>
261 $(sed 's:@@APACHE_MODULEDIR@@:modules:' install/common/spdy.load.template)
262
263 $(<install/common/spdy.conf.template)
264 </IfDefine>
265 EOF
266 insinto "${APACHE_MODULES_CONFDIR}"
267 doins "${conf}"
268 }
269
270
271
272 1.1 www-apache/mod_spdy/ChangeLog
273
274 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apache/mod_spdy/ChangeLog?rev=1.1&view=markup
275 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-apache/mod_spdy/ChangeLog?rev=1.1&content-type=text/plain
276
277 Index: ChangeLog
278 ===================================================================
279 # ChangeLog for www-apache/mod_spdy
280 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
281 # $Header: /var/cvsroot/gentoo-x86/www-apache/mod_spdy/ChangeLog,v 1.1 2013/05/28 00:21:25 vapier Exp $
282
283 *mod_spdy-0.9.3.3 (28 May 2013)
284 *mod_spdy-9999 (28 May 2013)
285
286 28 May 2013; Mike Frysinger <vapier@g.o> +files/make-snapshot.sh,
287 +files/mod_spdy-0.9.3.3-execinfo.patch,
288 +files/mod_spdy-0.9.3.3-system-zlib.patch, +metadata.xml,
289 +mod_spdy-0.9.3.3.ebuild, +mod_spdy-9999.ebuild:
290 Initial ebuild #412451 by candrews.