1 |
commit: 8ac95d647ffdb4d7f4f2a1108d7b4842520da24e |
2 |
Author: Brian Evans <grknight <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun May 28 00:13:39 2017 +0000 |
4 |
Commit: Brian Evans <grknight <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun May 28 00:13:39 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8ac95d64 |
7 |
|
8 |
dev-php/php-codebrowser: Revbump to convert to php-pear-r2 wrt bug 619046 |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.2 |
11 |
|
12 |
.../php-codebrowser-1.0.2-r1.ebuild | 44 ++++++++++++++++++++++ |
13 |
1 file changed, 44 insertions(+) |
14 |
|
15 |
diff --git a/dev-php/php-codebrowser/php-codebrowser-1.0.2-r1.ebuild b/dev-php/php-codebrowser/php-codebrowser-1.0.2-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 00000000000..2c85f0c8d57 |
18 |
--- /dev/null |
19 |
+++ b/dev-php/php-codebrowser/php-codebrowser-1.0.2-r1.ebuild |
20 |
@@ -0,0 +1,44 @@ |
21 |
+# Copyright 1999-2017 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=6 |
25 |
+ |
26 |
+PHP_PEAR_CHANNEL="${FILESDIR}/channel.xml" |
27 |
+PHP_PEAR_DOMAIN="pear.phpunit.de" |
28 |
+PHP_PEAR_PKG_NAME="PHP_CodeBrowser" |
29 |
+inherit php-pear-r2 |
30 |
+ |
31 |
+DESCRIPTION="Creates highlighted code by reading xml reports from codesniffer or phpunit" |
32 |
+LICENSE="BSD" |
33 |
+SLOT="0" |
34 |
+KEYWORDS="~amd64 ~x86" |
35 |
+IUSE="" |
36 |
+HOMEPAGE="http://pear.phpunit.de" |
37 |
+SRC_URI="http://${PHP_PEAR_URI}/get/${PEAR_P}.tgz" |
38 |
+ |
39 |
+RDEPEND="${RDEPEND} |
40 |
+ >=dev-php/PEAR-Console_CommandLine-1.1.3 |
41 |
+ >=dev-php/File_Iterator-1.3.0 |
42 |
+ >=dev-php/PEAR-Log-1.12.1" |
43 |
+ |
44 |
+src_prepare() { |
45 |
+ sed -i -e "s~@php_dir@~${EPREFIX}/usr/share/php~" \ |
46 |
+ -e "s~@data_dir@~${EPREFIX}/usr/share/php/data~" \ |
47 |
+ -e "s~@package_version@~${PV}~" \ |
48 |
+ "${S}/src/CLIController.php" || die |
49 |
+ sed -i -e "s~@php_dir@~${EPREFIX}/usr/share/php~" \ |
50 |
+ "${S}/bin/phpcb.php" || die |
51 |
+ eapply_user |
52 |
+} |
53 |
+ |
54 |
+src_install() { |
55 |
+ local DOCS=( CHANGELOG.markdown README.markdown ) |
56 |
+ insinto /usr/share/php/data/${PHP_PEAR_PKG_NAME} |
57 |
+ doins -r templates |
58 |
+ insinto /usr/share/php/${PHP_PEAR_PKG_NAME} |
59 |
+ doins -r src/* |
60 |
+ exeinto /usr/bin |
61 |
+ newexe bin/phpcb.php phpcb |
62 |
+ php-pear-r2_install_packagexml |
63 |
+ einstalldocs |
64 |
+} |