Gentoo Archives: gentoo-commits

From: Tony Vroon <chainsaw@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-client/phantomjs/
Date: Mon, 05 Feb 2018 09:42:10
Message-Id: 1517823722.e0c46dce61069b7f7dfdce18e3fabe6fb9384d2e.chainsaw@gentoo
1 commit: e0c46dce61069b7f7dfdce18e3fabe6fb9384d2e
2 Author: Tony Vroon <chainsaw <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 5 09:41:47 2018 +0000
4 Commit: Tony Vroon <chainsaw <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 5 09:42:02 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e0c46dce
7
8 www-client/phantomjs: ICU 59/60 compatibility
9
10 Scavenged patches originally by Ervin Peters in bug #621532
11 address a build issue with ICU 59 and newer.
12
13 Package-Manager: Portage-2.3.19, Repoman-2.3.6
14
15 www-client/phantomjs/Manifest | 1 +
16 www-client/phantomjs/phantomjs-2.1.1-r1.ebuild | 99 ++++++++++++++++++++++++++
17 2 files changed, 100 insertions(+)
18
19 diff --git a/www-client/phantomjs/Manifest b/www-client/phantomjs/Manifest
20 index 3409760e9ed..b8f6ea3a384 100644
21 --- a/www-client/phantomjs/Manifest
22 +++ b/www-client/phantomjs/Manifest
23 @@ -1,4 +1,5 @@
24 DIST gentoo-phantomjs-patchset-0.01.tar.bz2 7537 BLAKE2B 4a0fe19ae338ebb1846e2f04c3a6ea2f790d3835044d089304f7eba1d1f3bf0af41148d87b6f4a32103a5613cb1b470a8572189653bb3c38a64fb0c12e475feb SHA512 3e85fe068da41fa620ad89f9b0450fa7aa405778c2011d4b0f046edd9c921702125adf01075cd90d70cd21d9704081a67be18c1f9eece4070a26407a6a56a5df
25 +DIST gentoo-phantomjs-patchset-0.02.tar.bz2 8017 BLAKE2B 0bde29dab19ced08afeab0484e0d88f9fee35306ddba0aeda3cef158ad0f818a7f93f6d1462766399231513d1279dc1071bde4e82d82c67e156eaeb0c52d6f87 SHA512 88e8acb47842b108c4f01bc778c25d95011462b9d6732e6cca20372824a93321731d1976b19736a87d6e51737dffa0c76a15983d4b0739e97c7dc55ea065e791
26 DIST phantomjs-1.9.8-source.zip 40965044 BLAKE2B f0ba4e7684539daf19b3f4c012ca680cbce8858ec1639714d14726e8234e4392d7239cd9f797471bdf3fdcf46ee81b006548891f645f5d71783a28a749c32616 SHA512 3692268a2706b097484ade500a2b24ce33d243b8ebbdf5ae8dea4b5e37adea5a84c11528e2862b9da71deb53cd14a985f1878d190a91c440632dd22cbfaf78fb
27 DIST phantomjs-2.0.0-source.zip 110092872 BLAKE2B cbd27e1803801cfd8316effcf532f68fe03ce3ebee2b972c8ad2c909522e362b28d0054e73272d0eb0a1cb68a68a1942f2d04072b3e0524a8fa0fe84092ff6a9 SHA512 c8262353ee4daa842ef891b41e006baccf1815a99cf3262aeba457cfc37bbef6cb2ca234e69bd33a5446014fe802b3e35591e2eb0d49d8483c1f75bacf9d6f42
28 DIST phantomjs-2.1.1.tar.gz 1880406 BLAKE2B e54e8a1d42cdbf6fb98c90283a0ebcb4145350bc34d76b8a0d01163fcca15b7e6bbf7043e2d17bbf21c5d01e7fd0e76a4386f9c01dfc8727998f8d0f17da9291 SHA512 07b769133957c5194c9afdaa347bd9a019ebe47653f98adf17a35d3dd12714d2f8e3773ced91d7d99f31cb18d7f73167022d5b0a3906d9aac0732ef96341f5ec
29
30 diff --git a/www-client/phantomjs/phantomjs-2.1.1-r1.ebuild b/www-client/phantomjs/phantomjs-2.1.1-r1.ebuild
31 new file mode 100644
32 index 00000000000..c9a611bdeb3
33 --- /dev/null
34 +++ b/www-client/phantomjs/phantomjs-2.1.1-r1.ebuild
35 @@ -0,0 +1,99 @@
36 +# Copyright 1999-2018 Gentoo Foundation
37 +# Distributed under the terms of the GNU General Public License v2
38 +
39 +EAPI=6
40 +
41 +PYTHON_COMPAT=( python{2_7,3_{4,5,6}} pypy{,3} )
42 +QTB_PV="5.5.1"
43 +QTB_P="qtbase-opensource-src-${QTB_PV}"
44 +QTW_PV="5.7.1"
45 +QTW_P="qtwebkit-opensource-src-${QTW_PV}"
46 +
47 +DESCRIPTION="A headless WebKit scriptable with a JavaScript API"
48 +HOMEPAGE="http://phantomjs.org/"
49 +SRC_URI="https://github.com/ariya/phantomjs/archive/${PV}.tar.gz -> ${P}.tar.gz
50 + https://download.qt.io/archive/qt/${QTB_PV%.*}/${QTB_PV}/submodules/${QTB_P}.tar.xz
51 + https://download.qt.io/community_releases/${QTW_PV%.*}/${QTW_PV}/${QTW_P}.tar.xz
52 + mirror://gentoo/gentoo-${PN}-patchset-0.02.tar.bz2"
53 +
54 +inherit eutils toolchain-funcs pax-utils multiprocessing
55 +
56 +LICENSE="BSD"
57 +SLOT="0"
58 +KEYWORDS="~amd64 ~x86"
59 +IUSE="examples fontconfig libressl truetype"
60 +RESTRICT="mirror"
61 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
62 +
63 +EPATCH_SUFFIX="patch"
64 +PATCHES=( "${WORKDIR}/${PN}-patchset" )
65 +
66 +RDEPEND="dev-libs/icu:=
67 + fontconfig? ( media-libs/fontconfig )
68 + !libressl? ( dev-libs/openssl:0 )
69 + libressl? ( dev-libs/libressl )
70 + truetype? ( media-libs/freetype )
71 + dev-db/sqlite:3"
72 +DEPEND="${RDEPEND}
73 + net-misc/openssh[-bindist]
74 + app-arch/unzip
75 + dev-lang/ruby
76 + virtual/pkgconfig"
77 +
78 +src_prepare() {
79 + ebegin "Moving third-party libraries into position for build"
80 + mv -T "${WORKDIR}/${QTB_P}" "${S}/src/qt/qtbase/" || die "QT base ${QTB_PV} failed"
81 + mv -T "${WORKDIR}/${QTW_P}" "${S}/src/qt/qtwebkit/" || die "QT webkit ${QTW_PV} failed"
82 + eend "$?"
83 +
84 + ebegin "Instilling C/CXX/LDFLAGS respect in main source"
85 + # Respect CC, CXX, {C,CXX,LD}FLAGS in .qmake.cache
86 + sed -i \
87 + -e "/^SYSTEM_VARIABLES=/i \
88 + CC='$(tc-getCC)'\n\
89 + CXX='$(tc-getCXX)'\n\
90 + CFLAGS='${CFLAGS}'\n\
91 + CXXFLAGS='${CXXFLAGS}'\n\
92 + LDFLAGS='${LDFLAGS}'\n\
93 + QMakeVar set QMAKE_CFLAGS_RELEASE\n\
94 + QMakeVar set QMAKE_CFLAGS_DEBUG\n\
95 + QMakeVar set QMAKE_CXXFLAGS_RELEASE\n\
96 + QMakeVar set QMAKE_CXXFLAGS_DEBUG\n\
97 + QMakeVar set QMAKE_LFLAGS_RELEASE\n\
98 + QMakeVar set QMAKE_LFLAGS_DEBUG\n"\
99 + src/qt/qtbase/configure \
100 + || die
101 + eend $?
102 +
103 + ebegin "Instilling C/CXX/LDFLAGS respect in test suite"
104 + # Respect CC, CXX, LINK and *FLAGS in config.tests
105 + find src/qt/qtbase/config.tests/unix -name '*.test' -type f -exec \
106 + sed -i -e "/bin\/qmake/ s: \"\$SRCDIR/: \
107 + 'QMAKE_CC=$(tc-getCC)' 'QMAKE_CXX=$(tc-getCXX)' 'QMAKE_LINK=$(tc-getCXX)' \
108 + 'QMAKE_CFLAGS+=${CFLAGS}' 'QMAKE_CXXFLAGS+=${CXXFLAGS}' 'QMAKE_LFLAGS+=${LDFLAGS}'&:" \
109 + {} + || die
110 + eend $?
111 +
112 + default
113 +}
114 +
115 +src_compile() {
116 + ./build.py \
117 + --confirm \
118 + --jobs $(makeopts_jobs) \
119 + || die
120 +}
121 +
122 +src_test() {
123 + ./bin/phantomjs test/run-tests.js || die
124 +}
125 +
126 +src_install() {
127 + pax-mark m bin/phantomjs || die
128 + dobin bin/phantomjs
129 + dodoc ChangeLog README.md
130 + if use examples ; then
131 + docinto examples
132 + dodoc examples/*
133 + fi
134 +}