diff options
author | 2015-07-12 12:29:24 +0200 | |
---|---|---|
committer | 2015-07-12 12:29:24 +0200 | |
commit | 5057ec161bd82cc02b2e7142f60bde71bc1d9b6a (patch) | |
tree | b1df5f12fc5e54ceb32b2c0a0775f6068380c9ab | |
parent | Add watchman 3.3 release (diff) | |
download | ennui-5057ec161bd82cc02b2e7142f60bde71bc1d9b6a.tar.gz ennui-5057ec161bd82cc02b2e7142f60bde71bc1d9b6a.tar.bz2 ennui-5057ec161bd82cc02b2e7142f60bde71bc1d9b6a.zip |
Add (what I hope will be a) gstreamer-less phantomjs ebuild
-rw-r--r-- | www-client/phantomjs/Manifest | 4 | ||||
-rw-r--r-- | www-client/phantomjs/files/phantomjs-python3-udis86-itab.patch | 12 | ||||
-rw-r--r-- | www-client/phantomjs/metadata.xml | 10 | ||||
-rw-r--r-- | www-client/phantomjs/phantomjs-2.0.0-r1.ebuild | 79 |
4 files changed, 105 insertions, 0 deletions
diff --git a/www-client/phantomjs/Manifest b/www-client/phantomjs/Manifest new file mode 100644 index 0000000..a909f7a --- /dev/null +++ b/www-client/phantomjs/Manifest @@ -0,0 +1,4 @@ +AUX phantomjs-python3-udis86-itab.patch 664 SHA256 b3edca652f11adb16978b88012e9d40ff8d962a2b29798e443f0d28035082571 SHA512 39f5803fe063953edb6fe848c2b12b3c2ba87224304ff49ad6798c8b3a9c7b99049ec24176efa54cf97c092fbfcce7c7676ef20e0ad16db1b86f69d158d972f2 WHIRLPOOL c5be2f40b8fb7a75c8a074097e50ed22df8d2d47a1c0508b8d6adb06b160f39d91c007f47c365971500f5007951f6925a02a12b0173df522635b2da3978b4651 +DIST phantomjs-2.0.0-source.zip 110092872 SHA256 cc81249eaa059cc138414390cade9cb6509b9d6fa0df16f4f43de70b174b3bfe SHA512 c8262353ee4daa842ef891b41e006baccf1815a99cf3262aeba457cfc37bbef6cb2ca234e69bd33a5446014fe802b3e35591e2eb0d49d8483c1f75bacf9d6f42 WHIRLPOOL b26c70d92d3c06a6688f27ae0376c0af226f4a6c6e345d87041fda9a7095fdb9665d11fc250cd4a721da47825a7080e66558d3b033332b08f6300a8ab0525d22 +EBUILD phantomjs-2.0.0-r1.ebuild 2071 SHA256 2814cba09323c4ab889165e620d3341fcbc0864547338e7fa6746e28b3c6a292 SHA512 16c9c434e58ce1c08e46c89c91532d5f3a291084a0aaaee8eb918b155efa5b56840dc0dca471a2dc9e33579bbabeda8c5a6341c41e632ba32d998a1287fbaa50 WHIRLPOOL 204092e88d9dc68ed7bda7fad76b5d6df36cb7cb94391a757b18b1e02f4a6c34f91bb5a4b23ed94aef67aec61d90b080c868e0d5d607941d7cfd613da837e3fa +MISC metadata.xml 293 SHA256 293013ecff442a645d960affa33c703f5433a536ce3e9ace63e5ee2f2b33721d SHA512 d4ef5bf7f31d7088ddc0c760b27e3d9f0a2a95e156a1690e5e8e7fc5b950ac1c3c6d144928efee2cfb48a123a20a6a9f67a0fb270fc7f31105de8b753864eb90 WHIRLPOOL 32c978888a05449f67046b57911ac7f154a617767bc30a4b64e623f31a1bfa46a79e1897d8fbae9494ff626fb579e2530b68f033aa0da7852564b6754b30b448 diff --git a/www-client/phantomjs/files/phantomjs-python3-udis86-itab.patch b/www-client/phantomjs/files/phantomjs-python3-udis86-itab.patch new file mode 100644 index 0000000..7c67e6b --- /dev/null +++ b/www-client/phantomjs/files/phantomjs-python3-udis86-itab.patch @@ -0,0 +1,12 @@ +--- a/phantomjs-2.0.0/src/qt/qtwebkit/Source/JavaScriptCore/disassembler/udis86/itab.py 2015-01-24 11:19:52.000000000 +0900 ++++ b/phantomjs-2.0.0/src/qt/qtwebkit/Source/JavaScriptCore/disassembler/udis86/itab.py 2015-03-17 16:20:04.580191055 +0900 +@@ -314,8 +314,7 @@ + self.ItabH.write( "\n" ) + + self.ItabH.write("\n/* itab entry operand definitions */\n"); +- operands = self.OperandDict.keys() +- operands.sort() ++ operands = sorted(self.OperandDict) + for o in operands: + self.ItabH.write("#define O_%-7s { %-12s %-8s }\n" % + (o, self.OperandDict[o][0] + ",", self.OperandDict[o][1])); diff --git a/www-client/phantomjs/metadata.xml b/www-client/phantomjs/metadata.xml new file mode 100644 index 0000000..cd80b9a --- /dev/null +++ b/www-client/phantomjs/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>maintainer-needed@gentoo.org</email> + </maintainer> + <upstream> + <remote-id type="google-code">phantomjs</remote-id> + </upstream> +</pkgmetadata> diff --git a/www-client/phantomjs/phantomjs-2.0.0-r1.ebuild b/www-client/phantomjs/phantomjs-2.0.0-r1.ebuild new file mode 100644 index 0000000..d240964 --- /dev/null +++ b/www-client/phantomjs/phantomjs-2.0.0-r1.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-client/phantomjs/phantomjs-2.0.0.ebuild,v 1.3 2015/05/31 06:15:53 graaff Exp $ + +EAPI=5 + +USE_RUBY="ruby19 ruby20 ruby21 ruby22" + +inherit eutils toolchain-funcs pax-utils multiprocessing ruby-single + +DESCRIPTION="A headless WebKit scriptable with a JavaScript API" +HOMEPAGE="http://phantomjs.org/" +SRC_URI="https://bitbucket.org/ariya/phantomjs/downloads/${P}-source.zip" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="examples" + +RDEPEND="dev-libs/icu:= + dev-libs/openssl + media-libs/fontconfig + media-libs/freetype + media-libs/libpng:0= + virtual/jpeg:0" +DEPEND="${RDEPEND} + ${RUBY_DEPS} + app-arch/unzip + virtual/pkgconfig" + +src_prepare() { + epatch "${FILESDIR}/phantomjs-python3-udis86-itab.patch" + + # 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 + + # 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 +} + +src_compile() { + ./build.sh \ + --confirm \ + --jobs $(makeopts_jobs) \ + --qt-config "$($(tc-getPKG_CONFIG) --cflags-only-I freetype2)" \ + || 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 +} |