1 |
commit: 5f834a9b43cfabc1b2606496aa35b231f394291a |
2 |
Author: Brian Evans <grknight <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jan 23 18:46:03 2019 +0000 |
4 |
Commit: Brian Evans <grknight <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jan 23 18:46:55 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5f834a9b |
7 |
|
8 |
Revert "dev-ruby/poltergeist,www-client/phantomjs: Remove last rite packages" |
9 |
|
10 |
This reverts commit c75c33a70d5cea66528a0613f1cd2cae65275939. |
11 |
|
12 |
Signed-off-by: Brian Evans <grknight <AT> gentoo.org> |
13 |
|
14 |
dev-ruby/poltergeist/Manifest | 1 + |
15 |
dev-ruby/poltergeist/metadata.xml | 11 +++ |
16 |
dev-ruby/poltergeist/poltergeist-1.14.0.ebuild | 46 ++++++++++++ |
17 |
profiles/package.mask | 8 +++ |
18 |
www-client/phantomjs/Manifest | 5 ++ |
19 |
www-client/phantomjs/metadata.xml | 12 ++++ |
20 |
www-client/phantomjs/phantomjs-2.1.1-r1.ebuild | 99 ++++++++++++++++++++++++++ |
21 |
www-client/phantomjs/phantomjs-2.1.1.ebuild | 99 ++++++++++++++++++++++++++ |
22 |
8 files changed, 281 insertions(+) |
23 |
|
24 |
diff --git a/dev-ruby/poltergeist/Manifest b/dev-ruby/poltergeist/Manifest |
25 |
new file mode 100644 |
26 |
index 00000000000..6362d579983 |
27 |
--- /dev/null |
28 |
+++ b/dev-ruby/poltergeist/Manifest |
29 |
@@ -0,0 +1 @@ |
30 |
+DIST poltergeist-1.14.0.tar.gz 185946 BLAKE2B 0f5d95437ad5c2509264ef0230624ac257e8901e98bd4494576c3dc6895fc38c64572b287eb9842c8af2ddbaf0b3c48ecb0a1fb4a2cb72711abba40646dcaeec SHA512 82ab8aec7e5e091fa2924765e077d8b9816319833d438d9246f8ef3d0045d158de6bce1d14e929cc5cb8d0970ea380d44a51511b17623479f3cd64853580ce71 |
31 |
|
32 |
diff --git a/dev-ruby/poltergeist/metadata.xml b/dev-ruby/poltergeist/metadata.xml |
33 |
new file mode 100644 |
34 |
index 00000000000..1ec3a890fb3 |
35 |
--- /dev/null |
36 |
+++ b/dev-ruby/poltergeist/metadata.xml |
37 |
@@ -0,0 +1,11 @@ |
38 |
+<?xml version="1.0" encoding="UTF-8"?> |
39 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
40 |
+<pkgmetadata> |
41 |
+ <maintainer type="project"> |
42 |
+ <email>ruby@g.o</email> |
43 |
+ <name>Gentoo Ruby Project</name> |
44 |
+ </maintainer> |
45 |
+ <upstream> |
46 |
+ <remote-id type="github">jonleighton/poltergeist</remote-id> |
47 |
+ </upstream> |
48 |
+</pkgmetadata> |
49 |
|
50 |
diff --git a/dev-ruby/poltergeist/poltergeist-1.14.0.ebuild b/dev-ruby/poltergeist/poltergeist-1.14.0.ebuild |
51 |
new file mode 100644 |
52 |
index 00000000000..4dfa4cf7439 |
53 |
--- /dev/null |
54 |
+++ b/dev-ruby/poltergeist/poltergeist-1.14.0.ebuild |
55 |
@@ -0,0 +1,46 @@ |
56 |
+# Copyright 1999-2017 Gentoo Foundation |
57 |
+# Distributed under the terms of the GNU General Public License v2 |
58 |
+ |
59 |
+EAPI=5 |
60 |
+USE_RUBY="ruby21 ruby22 ruby23" |
61 |
+ |
62 |
+# There are tests but they require several unpackaged dependencies. |
63 |
+RUBY_FAKEGEM_RECIPE_TEST="rspec3" |
64 |
+ |
65 |
+RUBY_FAKEGEM_TASK_DOC="" |
66 |
+RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md" |
67 |
+ |
68 |
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" |
69 |
+ |
70 |
+inherit ruby-fakegem |
71 |
+ |
72 |
+DESCRIPTION="A PhantomJS driver for Capybara" |
73 |
+HOMEPAGE="https://github.com/jonleighton/poltergeist" |
74 |
+SRC_URI="https://github.com/jonleighton/poltergeist/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
75 |
+ |
76 |
+LICENSE="MIT" |
77 |
+SLOT="0" |
78 |
+KEYWORDS="~amd64" |
79 |
+IUSE="" |
80 |
+ |
81 |
+RDEPEND+=" www-client/phantomjs" |
82 |
+ |
83 |
+ruby_add_rdepend ">=dev-ruby/cliver-0.3.1 |
84 |
+ >=dev-ruby/capybara-2.1 |
85 |
+ >=dev-ruby/websocket-driver-0.2.0" |
86 |
+ |
87 |
+ruby_add_bdepend "test? ( dev-ruby/sinatra:0 )" |
88 |
+ |
89 |
+all_ruby_prepare() { |
90 |
+ # Fix cliver versioning to accept all 0.x versions |
91 |
+ sed -i -e 's/0.3.1/0.3/' ${RUBY_FAKEGEM_GEMSPEC} || die |
92 |
+ |
93 |
+ sed -i -e '/bundler/ s:^:#:' spec/spec_helper.rb || die |
94 |
+ sed -i -e '2igem "sinatra", "~>1.0"; gem "rack", "~>1.5"' spec/spec_helper.rb || die |
95 |
+ |
96 |
+ # Remove integration tests for now since they require additional dependencies. |
97 |
+ rm -rf spec/integration |
98 |
+ |
99 |
+ # Avoid a spec failing only in our ebuild test environment |
100 |
+ sed -i -e '/can pause indefinitely/,/^ end/ s:^:#:' spec/unit/driver_spec.rb || die |
101 |
+} |
102 |
|
103 |
diff --git a/profiles/package.mask b/profiles/package.mask |
104 |
index ee3815b16a8..65fac9ba71e 100644 |
105 |
--- a/profiles/package.mask |
106 |
+++ b/profiles/package.mask |
107 |
@@ -331,6 +331,14 @@ sys-devel/automake:1.8 |
108 |
# upstream. |
109 |
>=app-text/jabref-bin-4.0 |
110 |
|
111 |
+# Hans de Graaff <graaff@g.o> (05 Jun 2017) |
112 |
+# Bundles obsolete and vulnerable webkit version. |
113 |
+# Upstream has stopped development and recommends using |
114 |
+# headless mode in >=www-client/chromium-59. |
115 |
+# Masked for removal in 90 days. Bug #589994. |
116 |
+www-client/phantomjs |
117 |
+dev-ruby/poltergeist |
118 |
+ |
119 |
# Michał Górny <mgorny@g.o> (22 May 2017) |
120 |
# for Maciej S. Szmigiero <mail@××××××××××××××××.name> |
121 |
# Any version above 5.100.138 breaks b43 driver in various ways. |
122 |
|
123 |
diff --git a/www-client/phantomjs/Manifest b/www-client/phantomjs/Manifest |
124 |
new file mode 100644 |
125 |
index 00000000000..014f959a009 |
126 |
--- /dev/null |
127 |
+++ b/www-client/phantomjs/Manifest |
128 |
@@ -0,0 +1,5 @@ |
129 |
+DIST gentoo-phantomjs-patchset-0.01.tar.bz2 7537 BLAKE2B 4a0fe19ae338ebb1846e2f04c3a6ea2f790d3835044d089304f7eba1d1f3bf0af41148d87b6f4a32103a5613cb1b470a8572189653bb3c38a64fb0c12e475feb SHA512 3e85fe068da41fa620ad89f9b0450fa7aa405778c2011d4b0f046edd9c921702125adf01075cd90d70cd21d9704081a67be18c1f9eece4070a26407a6a56a5df |
130 |
+DIST gentoo-phantomjs-patchset-0.02.tar.bz2 8017 BLAKE2B 0bde29dab19ced08afeab0484e0d88f9fee35306ddba0aeda3cef158ad0f818a7f93f6d1462766399231513d1279dc1071bde4e82d82c67e156eaeb0c52d6f87 SHA512 88e8acb47842b108c4f01bc778c25d95011462b9d6732e6cca20372824a93321731d1976b19736a87d6e51737dffa0c76a15983d4b0739e97c7dc55ea065e791 |
131 |
+DIST phantomjs-2.1.1.tar.gz 1880406 BLAKE2B e54e8a1d42cdbf6fb98c90283a0ebcb4145350bc34d76b8a0d01163fcca15b7e6bbf7043e2d17bbf21c5d01e7fd0e76a4386f9c01dfc8727998f8d0f17da9291 SHA512 07b769133957c5194c9afdaa347bd9a019ebe47653f98adf17a35d3dd12714d2f8e3773ced91d7d99f31cb18d7f73167022d5b0a3906d9aac0732ef96341f5ec |
132 |
+DIST qtbase-opensource-src-5.5.1.tar.xz 46389212 BLAKE2B 2fd956a2d8cb64e31bff107497191bc601048fe173fe3361a5baf3f5987c9dea035c9c1829595531c5d09eb5168acbabc10a361adea943e597daa781008212dd SHA512 4d31de136870025dfb7544f255798884af1ad4f3060b0c00a0467c98af1f7de368eb298d4c52ba6d1ad27e36060b30c0314ce7ba0744b15642420ec89587a575 |
133 |
+DIST qtwebkit-opensource-src-5.7.1.tar.xz 35298736 BLAKE2B 74819c28ab00b09d090a77f10d5338e04381432130e0420cf006b8dba75da2426b047cf449a708343eae76e06a9230d962e724dc5d34f8c799947de2e5079581 SHA512 538928ada8fd25c01f0b78efac79e004904e6e4ec110108c492877e334acd5d9253653d3b207e535d1e08d092af2833a7566cebb2bf8b90069944634bf24f60a |
134 |
|
135 |
diff --git a/www-client/phantomjs/metadata.xml b/www-client/phantomjs/metadata.xml |
136 |
new file mode 100644 |
137 |
index 00000000000..748968f236d |
138 |
--- /dev/null |
139 |
+++ b/www-client/phantomjs/metadata.xml |
140 |
@@ -0,0 +1,12 @@ |
141 |
+<?xml version="1.0" encoding="UTF-8"?> |
142 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
143 |
+<pkgmetadata> |
144 |
+ <maintainer type="person"> |
145 |
+ <email>chainsaw@g.o</email> |
146 |
+ <name>Tony Vroon</name> |
147 |
+ </maintainer> |
148 |
+ <upstream> |
149 |
+ <remote-id type="google-code">phantomjs</remote-id> |
150 |
+ <remote-id type="bitbucket">ariya/phantomjs</remote-id> |
151 |
+ </upstream> |
152 |
+</pkgmetadata> |
153 |
|
154 |
diff --git a/www-client/phantomjs/phantomjs-2.1.1-r1.ebuild b/www-client/phantomjs/phantomjs-2.1.1-r1.ebuild |
155 |
new file mode 100644 |
156 |
index 00000000000..c9a611bdeb3 |
157 |
--- /dev/null |
158 |
+++ b/www-client/phantomjs/phantomjs-2.1.1-r1.ebuild |
159 |
@@ -0,0 +1,99 @@ |
160 |
+# Copyright 1999-2018 Gentoo Foundation |
161 |
+# Distributed under the terms of the GNU General Public License v2 |
162 |
+ |
163 |
+EAPI=6 |
164 |
+ |
165 |
+PYTHON_COMPAT=( python{2_7,3_{4,5,6}} pypy{,3} ) |
166 |
+QTB_PV="5.5.1" |
167 |
+QTB_P="qtbase-opensource-src-${QTB_PV}" |
168 |
+QTW_PV="5.7.1" |
169 |
+QTW_P="qtwebkit-opensource-src-${QTW_PV}" |
170 |
+ |
171 |
+DESCRIPTION="A headless WebKit scriptable with a JavaScript API" |
172 |
+HOMEPAGE="http://phantomjs.org/" |
173 |
+SRC_URI="https://github.com/ariya/phantomjs/archive/${PV}.tar.gz -> ${P}.tar.gz |
174 |
+ https://download.qt.io/archive/qt/${QTB_PV%.*}/${QTB_PV}/submodules/${QTB_P}.tar.xz |
175 |
+ https://download.qt.io/community_releases/${QTW_PV%.*}/${QTW_PV}/${QTW_P}.tar.xz |
176 |
+ mirror://gentoo/gentoo-${PN}-patchset-0.02.tar.bz2" |
177 |
+ |
178 |
+inherit eutils toolchain-funcs pax-utils multiprocessing |
179 |
+ |
180 |
+LICENSE="BSD" |
181 |
+SLOT="0" |
182 |
+KEYWORDS="~amd64 ~x86" |
183 |
+IUSE="examples fontconfig libressl truetype" |
184 |
+RESTRICT="mirror" |
185 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
186 |
+ |
187 |
+EPATCH_SUFFIX="patch" |
188 |
+PATCHES=( "${WORKDIR}/${PN}-patchset" ) |
189 |
+ |
190 |
+RDEPEND="dev-libs/icu:= |
191 |
+ fontconfig? ( media-libs/fontconfig ) |
192 |
+ !libressl? ( dev-libs/openssl:0 ) |
193 |
+ libressl? ( dev-libs/libressl ) |
194 |
+ truetype? ( media-libs/freetype ) |
195 |
+ dev-db/sqlite:3" |
196 |
+DEPEND="${RDEPEND} |
197 |
+ net-misc/openssh[-bindist] |
198 |
+ app-arch/unzip |
199 |
+ dev-lang/ruby |
200 |
+ virtual/pkgconfig" |
201 |
+ |
202 |
+src_prepare() { |
203 |
+ ebegin "Moving third-party libraries into position for build" |
204 |
+ mv -T "${WORKDIR}/${QTB_P}" "${S}/src/qt/qtbase/" || die "QT base ${QTB_PV} failed" |
205 |
+ mv -T "${WORKDIR}/${QTW_P}" "${S}/src/qt/qtwebkit/" || die "QT webkit ${QTW_PV} failed" |
206 |
+ eend "$?" |
207 |
+ |
208 |
+ ebegin "Instilling C/CXX/LDFLAGS respect in main source" |
209 |
+ # Respect CC, CXX, {C,CXX,LD}FLAGS in .qmake.cache |
210 |
+ sed -i \ |
211 |
+ -e "/^SYSTEM_VARIABLES=/i \ |
212 |
+ CC='$(tc-getCC)'\n\ |
213 |
+ CXX='$(tc-getCXX)'\n\ |
214 |
+ CFLAGS='${CFLAGS}'\n\ |
215 |
+ CXXFLAGS='${CXXFLAGS}'\n\ |
216 |
+ LDFLAGS='${LDFLAGS}'\n\ |
217 |
+ QMakeVar set QMAKE_CFLAGS_RELEASE\n\ |
218 |
+ QMakeVar set QMAKE_CFLAGS_DEBUG\n\ |
219 |
+ QMakeVar set QMAKE_CXXFLAGS_RELEASE\n\ |
220 |
+ QMakeVar set QMAKE_CXXFLAGS_DEBUG\n\ |
221 |
+ QMakeVar set QMAKE_LFLAGS_RELEASE\n\ |
222 |
+ QMakeVar set QMAKE_LFLAGS_DEBUG\n"\ |
223 |
+ src/qt/qtbase/configure \ |
224 |
+ || die |
225 |
+ eend $? |
226 |
+ |
227 |
+ ebegin "Instilling C/CXX/LDFLAGS respect in test suite" |
228 |
+ # Respect CC, CXX, LINK and *FLAGS in config.tests |
229 |
+ find src/qt/qtbase/config.tests/unix -name '*.test' -type f -exec \ |
230 |
+ sed -i -e "/bin\/qmake/ s: \"\$SRCDIR/: \ |
231 |
+ 'QMAKE_CC=$(tc-getCC)' 'QMAKE_CXX=$(tc-getCXX)' 'QMAKE_LINK=$(tc-getCXX)' \ |
232 |
+ 'QMAKE_CFLAGS+=${CFLAGS}' 'QMAKE_CXXFLAGS+=${CXXFLAGS}' 'QMAKE_LFLAGS+=${LDFLAGS}'&:" \ |
233 |
+ {} + || die |
234 |
+ eend $? |
235 |
+ |
236 |
+ default |
237 |
+} |
238 |
+ |
239 |
+src_compile() { |
240 |
+ ./build.py \ |
241 |
+ --confirm \ |
242 |
+ --jobs $(makeopts_jobs) \ |
243 |
+ || die |
244 |
+} |
245 |
+ |
246 |
+src_test() { |
247 |
+ ./bin/phantomjs test/run-tests.js || die |
248 |
+} |
249 |
+ |
250 |
+src_install() { |
251 |
+ pax-mark m bin/phantomjs || die |
252 |
+ dobin bin/phantomjs |
253 |
+ dodoc ChangeLog README.md |
254 |
+ if use examples ; then |
255 |
+ docinto examples |
256 |
+ dodoc examples/* |
257 |
+ fi |
258 |
+} |
259 |
|
260 |
diff --git a/www-client/phantomjs/phantomjs-2.1.1.ebuild b/www-client/phantomjs/phantomjs-2.1.1.ebuild |
261 |
new file mode 100644 |
262 |
index 00000000000..cf2bef6794e |
263 |
--- /dev/null |
264 |
+++ b/www-client/phantomjs/phantomjs-2.1.1.ebuild |
265 |
@@ -0,0 +1,99 @@ |
266 |
+# Copyright 1999-2017 Gentoo Foundation |
267 |
+# Distributed under the terms of the GNU General Public License v2 |
268 |
+ |
269 |
+EAPI=6 |
270 |
+ |
271 |
+PYTHON_COMPAT=( python{2_7,3_{4,5,6}} pypy{,3} ) |
272 |
+QTB_PV="5.5.1" |
273 |
+QTB_P="qtbase-opensource-src-${QTB_PV}" |
274 |
+QTW_PV="5.7.1" |
275 |
+QTW_P="qtwebkit-opensource-src-${QTW_PV}" |
276 |
+ |
277 |
+DESCRIPTION="A headless WebKit scriptable with a JavaScript API" |
278 |
+HOMEPAGE="http://phantomjs.org/" |
279 |
+SRC_URI="https://github.com/ariya/phantomjs/archive/${PV}.tar.gz -> ${P}.tar.gz |
280 |
+ https://download.qt.io/archive/qt/${QTB_PV%.*}/${QTB_PV}/submodules/${QTB_P}.tar.xz |
281 |
+ https://download.qt.io/community_releases/${QTW_PV%.*}/${QTW_PV}/${QTW_P}.tar.xz |
282 |
+ mirror://gentoo/gentoo-${PN}-patchset-0.01.tar.bz2" |
283 |
+ |
284 |
+inherit eutils toolchain-funcs pax-utils multiprocessing |
285 |
+ |
286 |
+LICENSE="BSD" |
287 |
+SLOT="0" |
288 |
+KEYWORDS="~amd64 ~x86" |
289 |
+IUSE="examples fontconfig libressl truetype" |
290 |
+RESTRICT="mirror" |
291 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
292 |
+ |
293 |
+EPATCH_SUFFIX="patch" |
294 |
+PATCHES=( "${WORKDIR}/${PN}-patchset" ) |
295 |
+ |
296 |
+RDEPEND="dev-libs/icu:= |
297 |
+ fontconfig? ( media-libs/fontconfig ) |
298 |
+ !libressl? ( dev-libs/openssl:0 ) |
299 |
+ libressl? ( dev-libs/libressl ) |
300 |
+ truetype? ( media-libs/freetype ) |
301 |
+ dev-db/sqlite:3" |
302 |
+DEPEND="${RDEPEND} |
303 |
+ net-misc/openssh[-bindist] |
304 |
+ app-arch/unzip |
305 |
+ dev-lang/ruby |
306 |
+ virtual/pkgconfig" |
307 |
+ |
308 |
+src_prepare() { |
309 |
+ ebegin "Moving third-party libraries into position for build" |
310 |
+ mv -T "${WORKDIR}/${QTB_P}" "${S}/src/qt/qtbase/" || die "QT base ${QTB_PV} failed" |
311 |
+ mv -T "${WORKDIR}/${QTW_P}" "${S}/src/qt/qtwebkit/" || die "QT webkit ${QTW_PV} failed" |
312 |
+ eend "$?" |
313 |
+ |
314 |
+ ebegin "Instilling C/CXX/LDFLAGS respect in main source" |
315 |
+ # Respect CC, CXX, {C,CXX,LD}FLAGS in .qmake.cache |
316 |
+ sed -i \ |
317 |
+ -e "/^SYSTEM_VARIABLES=/i \ |
318 |
+ CC='$(tc-getCC)'\n\ |
319 |
+ CXX='$(tc-getCXX)'\n\ |
320 |
+ CFLAGS='${CFLAGS}'\n\ |
321 |
+ CXXFLAGS='${CXXFLAGS}'\n\ |
322 |
+ LDFLAGS='${LDFLAGS}'\n\ |
323 |
+ QMakeVar set QMAKE_CFLAGS_RELEASE\n\ |
324 |
+ QMakeVar set QMAKE_CFLAGS_DEBUG\n\ |
325 |
+ QMakeVar set QMAKE_CXXFLAGS_RELEASE\n\ |
326 |
+ QMakeVar set QMAKE_CXXFLAGS_DEBUG\n\ |
327 |
+ QMakeVar set QMAKE_LFLAGS_RELEASE\n\ |
328 |
+ QMakeVar set QMAKE_LFLAGS_DEBUG\n"\ |
329 |
+ src/qt/qtbase/configure \ |
330 |
+ || die |
331 |
+ eend $? |
332 |
+ |
333 |
+ ebegin "Instilling C/CXX/LDFLAGS respect in test suite" |
334 |
+ # Respect CC, CXX, LINK and *FLAGS in config.tests |
335 |
+ find src/qt/qtbase/config.tests/unix -name '*.test' -type f -exec \ |
336 |
+ sed -i -e "/bin\/qmake/ s: \"\$SRCDIR/: \ |
337 |
+ 'QMAKE_CC=$(tc-getCC)' 'QMAKE_CXX=$(tc-getCXX)' 'QMAKE_LINK=$(tc-getCXX)' \ |
338 |
+ 'QMAKE_CFLAGS+=${CFLAGS}' 'QMAKE_CXXFLAGS+=${CXXFLAGS}' 'QMAKE_LFLAGS+=${LDFLAGS}'&:" \ |
339 |
+ {} + || die |
340 |
+ eend $? |
341 |
+ |
342 |
+ default |
343 |
+} |
344 |
+ |
345 |
+src_compile() { |
346 |
+ ./build.py \ |
347 |
+ --confirm \ |
348 |
+ --jobs $(makeopts_jobs) \ |
349 |
+ || die |
350 |
+} |
351 |
+ |
352 |
+src_test() { |
353 |
+ ./bin/phantomjs test/run-tests.js || die |
354 |
+} |
355 |
+ |
356 |
+src_install() { |
357 |
+ pax-mark m bin/phantomjs || die |
358 |
+ dobin bin/phantomjs |
359 |
+ dodoc ChangeLog README.md |
360 |
+ if use examples ; then |
361 |
+ docinto examples |
362 |
+ dodoc examples/* |
363 |
+ fi |
364 |
+} |