Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-client/phantomjs: metadata.xml ChangeLog phantomjs-1.3.0.ebuild
Date: Sun, 27 Nov 2011 00:15:54
Message-Id: 20111127001543.A25D92004B@flycatcher.gentoo.org
1 vapier 11/11/27 00:15:43
2
3 Added: metadata.xml ChangeLog phantomjs-1.3.0.ebuild
4 Log:
5 Initial ebuild by me.
6
7 (Portage version: 2.2.0_alpha75/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.1 www-client/phantomjs/metadata.xml
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/phantomjs/metadata.xml?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/phantomjs/metadata.xml?rev=1.1&content-type=text/plain
14
15 Index: metadata.xml
16 ===================================================================
17 <?xml version="1.0" encoding="UTF-8"?>
18 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
19 <pkgmetadata>
20 <maintainer>
21 <email>vapier@g.o</email>
22 <description>do whatever</description>
23 </maintainer>
24 </pkgmetadata>
25
26
27
28 1.1 www-client/phantomjs/ChangeLog
29
30 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/phantomjs/ChangeLog?rev=1.1&view=markup
31 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/phantomjs/ChangeLog?rev=1.1&content-type=text/plain
32
33 Index: ChangeLog
34 ===================================================================
35 # ChangeLog for www-client/phantomjs
36 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
37 # $Header: /var/cvsroot/gentoo-x86/www-client/phantomjs/ChangeLog,v 1.1 2011/11/27 00:15:43 vapier Exp $
38
39 *phantomjs-1.3.0 (27 Nov 2011)
40
41 27 Nov 2011; Mike Frysinger <vapier@g.o> +phantomjs-1.3.0.ebuild,
42 +metadata.xml:
43 Initial ebuild by me.
44
45
46
47
48 1.1 www-client/phantomjs/phantomjs-1.3.0.ebuild
49
50 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/phantomjs/phantomjs-1.3.0.ebuild?rev=1.1&view=markup
51 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/phantomjs/phantomjs-1.3.0.ebuild?rev=1.1&content-type=text/plain
52
53 Index: phantomjs-1.3.0.ebuild
54 ===================================================================
55 # Copyright 1999-2011 Gentoo Foundation
56 # Distributed under the terms of the GNU General Public License v2
57 # $Header: /var/cvsroot/gentoo-x86/www-client/phantomjs/phantomjs-1.3.0.ebuild,v 1.1 2011/11/27 00:15:43 vapier Exp $
58
59 EAPI="2"
60
61 PYTHON_DEPEND="python? 2"
62 SUPPORT_PYTHON_ABIS="1"
63 RESTRICT_PYTHON_ABIS="3.*"
64
65 inherit distutils qt4-r2
66
67 DESCRIPTION="headless WebKit with JavaScript API"
68 HOMEPAGE="http://www.phantomjs.org/"
69 SRC_URI="http://phantomjs.googlecode.com/files/${P}-source.tar.gz"
70
71 LICENSE="GPL-3"
72 SLOT="0"
73 KEYWORDS="~amd64 ~x86"
74 IUSE="examples python"
75
76 RDEPEND="x11-libs/qt-webkit
77 python? ( dev-python/PyQt4 )"
78 DEPEND="${RDEPEND}"
79
80 # Call all the parent eclasses without having to worry
81 # about what funcs they actually export.
82 maybe() { set -- $(declare -F $1); $1; }
83 multi_eclass() {
84 maybe qt4-r2_$1
85 if use python ; then
86 [[ -d python ]] && cd python
87 maybe distutils_$1
88 fi
89 }
90 pkg_setup() { multi_eclass ${FUNCNAME} ; }
91 pkg_preinst() { multi_eclass ${FUNCNAME} ; }
92 pkg_postinst() { multi_eclass ${FUNCNAME} ; }
93 pkg_prerm() { multi_eclass ${FUNCNAME} ; }
94 pkg_postrm() { multi_eclass ${FUNCNAME} ; }
95 src_prepare() { multi_eclass ${FUNCNAME} ; }
96 src_configure() { multi_eclass ${FUNCNAME} ; }
97 src_compile() { multi_eclass ${FUNCNAME} ; }
98
99 src_install() {
100 dobin bin/phantomjs || die
101 dodoc ChangeLog README.md
102
103 multi_eclass ${FUNCNAME}
104 }