1 |
commit: 9ac97b036d17d01aecebf00b71c9762fc861a725 |
2 |
Author: Brian Evans <grknight <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun May 28 14:31:51 2017 +0000 |
4 |
Commit: Brian Evans <grknight <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun May 28 14:31:51 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9ac97b03 |
7 |
|
8 |
dev-php/phpDocumentor: Move 2.7.0 to new eclass |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.2 |
11 |
|
12 |
dev-php/phpDocumentor/phpDocumentor-2.7.0.ebuild | 29 +++++++++++++++++------- |
13 |
1 file changed, 21 insertions(+), 8 deletions(-) |
14 |
|
15 |
diff --git a/dev-php/phpDocumentor/phpDocumentor-2.7.0.ebuild b/dev-php/phpDocumentor/phpDocumentor-2.7.0.ebuild |
16 |
index d86ffa0d17f..5ce8467627e 100644 |
17 |
--- a/dev-php/phpDocumentor/phpDocumentor-2.7.0.ebuild |
18 |
+++ b/dev-php/phpDocumentor/phpDocumentor-2.7.0.ebuild |
19 |
@@ -1,14 +1,15 @@ |
20 |
-# Copyright 1999-2014 Gentoo Foundation |
21 |
+# Copyright 1999-2017 Gentoo Foundation |
22 |
# Distributed under the terms of the GNU General Public License v2 |
23 |
|
24 |
-EAPI=5 |
25 |
+EAPI=6 |
26 |
|
27 |
-PHP_PEAR_URI="pear.phpdoc.org" |
28 |
+PHP_PEAR_DOMAIN="pear.phpdoc.org" |
29 |
+PHP_PEAR_CHANNEL="${FILESDIR}/channel.xml" |
30 |
|
31 |
-inherit php-pear-r1 |
32 |
+inherit php-pear-r2 |
33 |
|
34 |
DESCRIPTION="The phpDocumentor package provides automatic documenting of php api directly from the source" |
35 |
- |
36 |
+SRC_URI="http://${PHP_PEAR_URI}/get/${PEAR_P}.tgz" |
37 |
LICENSE="MIT" |
38 |
SLOT="0" |
39 |
|
40 |
@@ -18,11 +19,23 @@ IUSE="doc" |
41 |
# block old version that provides the same binary |
42 |
DEPEND="!dev-php/PEAR-PhpDocumentor" |
43 |
RDEPEND="media-gfx/graphviz |
44 |
- dev-lang/php[iconv,intl,xmlreader,xslt]" |
45 |
+ dev-lang/php:*[iconv,intl,xmlreader,xslt]" |
46 |
|
47 |
-src_install() { |
48 |
- php-pear-r1_src_install |
49 |
+src_prepare() { |
50 |
+ sed -i -e "s~@php_dir@~${EPREFIX}/usr/share/php~" \ |
51 |
+ "${S}/bin/phpdoc" || die |
52 |
+ eapply_user |
53 |
+} |
54 |
|
55 |
+src_install() { |
56 |
+ exeinto /usr/bin |
57 |
+ doexe bin/phpdoc |
58 |
+ insinto /usr/share/php/${PN} |
59 |
+ doins -r vendor src/* phpdoc.dist.xml bin/phpdoc.php |
60 |
+ insinto /usr/share/php/data/${PN} |
61 |
+ doins -r ansible data features box.json composer.json composer.lock phpmd.xml.dist wercker.yml |
62 |
# install manual, tutorial, reference material |
63 |
use doc && dodoc -r docs/* |
64 |
+ php-pear-r2_install_packagexml |
65 |
+ einstalldocs |
66 |
} |