From ef758290f0f79018ae521ef97d8ddc28885e941d Mon Sep 17 00:00:00 2001 From: Tony Vroon Date: Tue, 19 Sep 2017 16:20:00 +0100 Subject: www-client/phantomjs: Version bump to 2.1.1 Package-Manager: Portage-2.3.8, Repoman-2.3.1 --- www-client/phantomjs/Manifest | 4 ++ www-client/phantomjs/metadata.xml | 5 +- www-client/phantomjs/phantomjs-2.1.1.ebuild | 99 +++++++++++++++++++++++++++++ 3 files changed, 107 insertions(+), 1 deletion(-) create mode 100644 www-client/phantomjs/phantomjs-2.1.1.ebuild (limited to 'www-client/phantomjs') diff --git a/www-client/phantomjs/Manifest b/www-client/phantomjs/Manifest index 9463346672a5..fe4aa4b20c2a 100644 --- a/www-client/phantomjs/Manifest +++ b/www-client/phantomjs/Manifest @@ -1,2 +1,6 @@ +DIST gentoo-phantomjs-patchset-0.01.tar.bz2 7537 SHA256 9715d61865b092721b7498be01b75b9d6541673f03d9aa7a29406262a5e20804 SHA512 3e85fe068da41fa620ad89f9b0450fa7aa405778c2011d4b0f046edd9c921702125adf01075cd90d70cd21d9704081a67be18c1f9eece4070a26407a6a56a5df WHIRLPOOL 7b0bceb762bfdab4f9d5f1bd6fa96c23c7b71ea153ed656333e12ea34069f9f86840a755cf19568d2243890f11d4cef486f2366d40792afa7e9ed25fdd0317e2 DIST phantomjs-1.9.8-source.zip 40965044 SHA256 37e53b2907bf37d2b6a43f08d38bb4a15596bba337822179e647efd60c2261bf SHA512 3692268a2706b097484ade500a2b24ce33d243b8ebbdf5ae8dea4b5e37adea5a84c11528e2862b9da71deb53cd14a985f1878d190a91c440632dd22cbfaf78fb WHIRLPOOL 71b4b24858b4c7916865bc89417399f08bcfdde30bfcfccacccb4dce86e014a46b9e313d93a34ca2d82001ce926281c7ff1c97cef8a91856acb57e96f3556af4 DIST phantomjs-2.0.0-source.zip 110092872 SHA256 cc81249eaa059cc138414390cade9cb6509b9d6fa0df16f4f43de70b174b3bfe SHA512 c8262353ee4daa842ef891b41e006baccf1815a99cf3262aeba457cfc37bbef6cb2ca234e69bd33a5446014fe802b3e35591e2eb0d49d8483c1f75bacf9d6f42 WHIRLPOOL b26c70d92d3c06a6688f27ae0376c0af226f4a6c6e345d87041fda9a7095fdb9665d11fc250cd4a721da47825a7080e66558d3b033332b08f6300a8ab0525d22 +DIST phantomjs-2.1.1.tar.gz 1880406 SHA256 bd1e63e9cd48d5a9c8ff1affc254eeae14704304437710729f133cb80cf98cf1 SHA512 07b769133957c5194c9afdaa347bd9a019ebe47653f98adf17a35d3dd12714d2f8e3773ced91d7d99f31cb18d7f73167022d5b0a3906d9aac0732ef96341f5ec WHIRLPOOL e5ff3d9f5397e8e825ffb370f8cba3143b759ce122d2ff92efa401c4bde8f3fa60ed5bccaaf5566c5ccaab31a972367c28b5b24e6d6f403ba3f205e72fdb7e24 +DIST qtbase-opensource-src-5.5.1.tar.xz 46389212 SHA256 dfa4e8a4d7e4c6b69285e7e8833eeecd819987e1bdbe5baa6b6facd4420de916 SHA512 4d31de136870025dfb7544f255798884af1ad4f3060b0c00a0467c98af1f7de368eb298d4c52ba6d1ad27e36060b30c0314ce7ba0744b15642420ec89587a575 WHIRLPOOL 8975a54a720105d1b12b4f50072b98157f6a91020ecd7bad12ab4a92b7ac4663713a82e87f033cc6ad49602a5f9468c6d3ee23120be6c15d63e55ea0b5a343c4 +DIST qtwebkit-opensource-src-5.7.1.tar.xz 35298736 SHA256 a46cf7c89339645f94a5777e8ae5baccf75c5fc87ab52c9dafc25da3327b5f03 SHA512 538928ada8fd25c01f0b78efac79e004904e6e4ec110108c492877e334acd5d9253653d3b207e535d1e08d092af2833a7566cebb2bf8b90069944634bf24f60a WHIRLPOOL d2dce72777a6babb1c35025ff6d882b7f48895dca4425b9e29b099e45282e8538548a653f0757998d6a619d706544fad0363199d8979ccca94762ba39b6516bd diff --git a/www-client/phantomjs/metadata.xml b/www-client/phantomjs/metadata.xml index 5a295c9e9e77..748968f236d5 100644 --- a/www-client/phantomjs/metadata.xml +++ b/www-client/phantomjs/metadata.xml @@ -1,7 +1,10 @@ - + + chainsaw@gentoo.org + Tony Vroon + phantomjs ariya/phantomjs diff --git a/www-client/phantomjs/phantomjs-2.1.1.ebuild b/www-client/phantomjs/phantomjs-2.1.1.ebuild new file mode 100644 index 000000000000..cf2bef6794e1 --- /dev/null +++ b/www-client/phantomjs/phantomjs-2.1.1.ebuild @@ -0,0 +1,99 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python{2_7,3_{4,5,6}} pypy{,3} ) +QTB_PV="5.5.1" +QTB_P="qtbase-opensource-src-${QTB_PV}" +QTW_PV="5.7.1" +QTW_P="qtwebkit-opensource-src-${QTW_PV}" + +DESCRIPTION="A headless WebKit scriptable with a JavaScript API" +HOMEPAGE="http://phantomjs.org/" +SRC_URI="https://github.com/ariya/phantomjs/archive/${PV}.tar.gz -> ${P}.tar.gz + https://download.qt.io/archive/qt/${QTB_PV%.*}/${QTB_PV}/submodules/${QTB_P}.tar.xz + https://download.qt.io/community_releases/${QTW_PV%.*}/${QTW_PV}/${QTW_P}.tar.xz + mirror://gentoo/gentoo-${PN}-patchset-0.01.tar.bz2" + +inherit eutils toolchain-funcs pax-utils multiprocessing + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="examples fontconfig libressl truetype" +RESTRICT="mirror" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +EPATCH_SUFFIX="patch" +PATCHES=( "${WORKDIR}/${PN}-patchset" ) + +RDEPEND="dev-libs/icu:= + fontconfig? ( media-libs/fontconfig ) + !libressl? ( dev-libs/openssl:0 ) + libressl? ( dev-libs/libressl ) + truetype? ( media-libs/freetype ) + dev-db/sqlite:3" +DEPEND="${RDEPEND} + net-misc/openssh[-bindist] + app-arch/unzip + dev-lang/ruby + virtual/pkgconfig" + +src_prepare() { + ebegin "Moving third-party libraries into position for build" + mv -T "${WORKDIR}/${QTB_P}" "${S}/src/qt/qtbase/" || die "QT base ${QTB_PV} failed" + mv -T "${WORKDIR}/${QTW_P}" "${S}/src/qt/qtwebkit/" || die "QT webkit ${QTW_PV} failed" + eend "$?" + + ebegin "Instilling C/CXX/LDFLAGS respect in main source" + # Respect CC, CXX, {C,CXX,LD}FLAGS in .qmake.cache + sed -i \ + -e "/^SYSTEM_VARIABLES=/i \ + CC='$(tc-getCC)'\n\ + CXX='$(tc-getCXX)'\n\ + CFLAGS='${CFLAGS}'\n\ + CXXFLAGS='${CXXFLAGS}'\n\ + LDFLAGS='${LDFLAGS}'\n\ + QMakeVar set QMAKE_CFLAGS_RELEASE\n\ + QMakeVar set QMAKE_CFLAGS_DEBUG\n\ + QMakeVar set QMAKE_CXXFLAGS_RELEASE\n\ + QMakeVar set QMAKE_CXXFLAGS_DEBUG\n\ + QMakeVar set QMAKE_LFLAGS_RELEASE\n\ + QMakeVar set QMAKE_LFLAGS_DEBUG\n"\ + src/qt/qtbase/configure \ + || die + eend $? + + ebegin "Instilling C/CXX/LDFLAGS respect in test suite" + # Respect CC, CXX, LINK and *FLAGS in config.tests + find src/qt/qtbase/config.tests/unix -name '*.test' -type f -exec \ + sed -i -e "/bin\/qmake/ s: \"\$SRCDIR/: \ + 'QMAKE_CC=$(tc-getCC)' 'QMAKE_CXX=$(tc-getCXX)' 'QMAKE_LINK=$(tc-getCXX)' \ + 'QMAKE_CFLAGS+=${CFLAGS}' 'QMAKE_CXXFLAGS+=${CXXFLAGS}' 'QMAKE_LFLAGS+=${LDFLAGS}'&:" \ + {} + || die + eend $? + + default +} + +src_compile() { + ./build.py \ + --confirm \ + --jobs $(makeopts_jobs) \ + || die +} + +src_test() { + ./bin/phantomjs test/run-tests.js || die +} + +src_install() { + pax-mark m bin/phantomjs || die + dobin bin/phantomjs + dodoc ChangeLog README.md + if use examples ; then + docinto examples + dodoc examples/* + fi +} -- cgit v1.2.3-65-gdbad