From a440db33767297581fefbace102036469863fdb6 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sun, 27 Nov 2011 00:15:43 +0000 Subject: [PATCH] Initial ebuild by me. Package-Manager: portage-2.2.0_alpha75/cvs/Linux x86_64 --- www-client/phantomjs/ChangeLog | 10 +++++ www-client/phantomjs/Manifest | 14 ++++++ www-client/phantomjs/metadata.xml | 8 ++++ www-client/phantomjs/phantomjs-1.3.0.ebuild | 50 +++++++++++++++++++++ 4 files changed, 82 insertions(+) create mode 100644 www-client/phantomjs/ChangeLog create mode 100644 www-client/phantomjs/Manifest create mode 100644 www-client/phantomjs/metadata.xml create mode 100644 www-client/phantomjs/phantomjs-1.3.0.ebuild diff --git a/www-client/phantomjs/ChangeLog b/www-client/phantomjs/ChangeLog new file mode 100644 index 000000000000..7a5075840ee6 --- /dev/null +++ b/www-client/phantomjs/ChangeLog @@ -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 +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 index 000000000000..e26778d75a2c --- /dev/null +++ b/www-client/phantomjs/Manifest @@ -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 index 000000000000..0947421cbd38 --- /dev/null +++ b/www-client/phantomjs/metadata.xml @@ -0,0 +1,8 @@ + + + + + vapier@gentoo.org + do whatever + + diff --git a/www-client/phantomjs/phantomjs-1.3.0.ebuild b/www-client/phantomjs/phantomjs-1.3.0.ebuild new file mode 100644 index 000000000000..34c2dde5bd10 --- /dev/null +++ b/www-client/phantomjs/phantomjs-1.3.0.ebuild @@ -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} +} -- 2.26.2