Initial ebuild by me.
authorMike Frysinger <vapier@gentoo.org>
Sun, 27 Nov 2011 00:15:43 +0000 (00:15 +0000)
committerMike Frysinger <vapier@gentoo.org>
Sun, 27 Nov 2011 00:15:43 +0000 (00:15 +0000)
Package-Manager: portage-2.2.0_alpha75/cvs/Linux x86_64

www-client/phantomjs/ChangeLog [new file with mode: 0644]
www-client/phantomjs/Manifest [new file with mode: 0644]
www-client/phantomjs/metadata.xml [new file with mode: 0644]
www-client/phantomjs/phantomjs-1.3.0.ebuild [new file with mode: 0644]

diff --git a/www-client/phantomjs/ChangeLog b/www-client/phantomjs/ChangeLog
new file mode 100644 (file)
index 0000000..7a50758
--- /dev/null
@@ -0,0 +1,10 @@
+# ChangeLog for www-client/phantomjs
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/www-client/phantomjs/ChangeLog,v 1.1 2011/11/27 00:15:43 vapier Exp $
+
+*phantomjs-1.3.0 (27 Nov 2011)
+
+  27 Nov 2011; Mike Frysinger <vapier@gentoo.org> +phantomjs-1.3.0.ebuild,
+  +metadata.xml:
+  Initial ebuild by me.
+
diff --git a/www-client/phantomjs/Manifest b/www-client/phantomjs/Manifest
new file mode 100644 (file)
index 0000000..e26778d
--- /dev/null
@@ -0,0 +1,14 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
+DIST phantomjs-1.3.0-source.tar.gz 409428 RMD160 a5519607938b784db6c7d40cee36955589b4aa58 SHA1 76902ad0956cf212cc9bb845f290690f53eca576 SHA256 1402aed67db7298f1dad54755e16c49e12201b5dbbb8bc895d966c4a648ee25f
+EBUILD phantomjs-1.3.0.ebuild 1375 RMD160 732ecc8366ab28da974168cae82e00271f4b3bfc SHA1 400bee0d12b1b51fbdb14593ff7033346ededd6f SHA256 30407cd55318d0c77c52cbc3448085039379478142a00c1abda70077c4865652
+MISC ChangeLog 362 RMD160 8566be435e5383093e46cfee9c7642a5669d0069 SHA1 3005f8eda6383cae8045f429a3f792e7b0155c38 SHA256 62b1b1f17e57855723711545ac3a4d5787700b927171d1d94d05cbbb5d977e1b
+MISC metadata.xml 240 RMD160 4cee390865db1215fa33ac65aebbbcda5b74fdf8 SHA1 3aaed09c95d44c0ca3763eace82e40b7823e3d18 SHA256 060d4d570194ff567e10d66246f85d4b9fee1efb17d111aeb9f03345f6e20efd
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.18 (GNU/Linux)
+
+iF4EAREIAAYFAk7RgUkACgkQaC/OocHi7Ja02wD/QSNk9vZ9X1JyT8ZgRQP5wwn3
+xTKQGW1iVwuxSbzFHaIA/1I/PeRNpXi5QMEwzhkqRzlClEVYJ5kvAzRUeYshpDYf
+=7NOA
+-----END PGP SIGNATURE-----
diff --git a/www-client/phantomjs/metadata.xml b/www-client/phantomjs/metadata.xml
new file mode 100644 (file)
index 0000000..0947421
--- /dev/null
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer>
+ <email>vapier@gentoo.org</email>
+ <description>do whatever</description>
+</maintainer>
+</pkgmetadata>
diff --git a/www-client/phantomjs/phantomjs-1.3.0.ebuild b/www-client/phantomjs/phantomjs-1.3.0.ebuild
new file mode 100644 (file)
index 0000000..34c2dde
--- /dev/null
@@ -0,0 +1,50 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-client/phantomjs/phantomjs-1.3.0.ebuild,v 1.1 2011/11/27 00:15:43 vapier Exp $
+
+EAPI="2"
+
+PYTHON_DEPEND="python? 2"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="3.*"
+
+inherit distutils qt4-r2
+
+DESCRIPTION="headless WebKit with JavaScript API"
+HOMEPAGE="http://www.phantomjs.org/"
+SRC_URI="http://phantomjs.googlecode.com/files/${P}-source.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="examples python"
+
+RDEPEND="x11-libs/qt-webkit
+       python? ( dev-python/PyQt4 )"
+DEPEND="${RDEPEND}"
+
+# Call all the parent eclasses without having to worry
+# about what funcs they actually export.
+maybe() { set -- $(declare -F $1); $1; }
+multi_eclass() {
+       maybe qt4-r2_$1
+       if use python ; then
+               [[ -d python ]] && cd python
+               maybe distutils_$1
+       fi
+}
+pkg_setup()     { multi_eclass ${FUNCNAME} ; }
+pkg_preinst()   { multi_eclass ${FUNCNAME} ; }
+pkg_postinst()  { multi_eclass ${FUNCNAME} ; }
+pkg_prerm()     { multi_eclass ${FUNCNAME} ; }
+pkg_postrm()    { multi_eclass ${FUNCNAME} ; }
+src_prepare()   { multi_eclass ${FUNCNAME} ; }
+src_configure() { multi_eclass ${FUNCNAME} ; }
+src_compile()   { multi_eclass ${FUNCNAME} ; }
+
+src_install() {
+       dobin bin/phantomjs || die
+       dodoc ChangeLog README.md
+
+       multi_eclass ${FUNCNAME}
+}