1 |
commit: 270420453e28871eadad83ee45e5dbab67127c97 |
2 |
Author: Brian Evans <grknight <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Dec 27 16:32:03 2016 +0000 |
4 |
Commit: Brian Evans <grknight <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Dec 27 16:32:03 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=27042045 |
7 |
|
8 |
dev-php/PEAR-PEAR_PackageFileManager2: New package |
9 |
|
10 |
Required dependency for PEAR-PEAR_PackageFileManager |
11 |
|
12 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
13 |
|
14 |
dev-php/PEAR-PEAR_PackageFileManager2/Manifest | 1 + |
15 |
.../PEAR-PEAR_PackageFileManager2-1.0.4.ebuild | 46 ++++++++++++++++++++++ |
16 |
dev-php/PEAR-PEAR_PackageFileManager2/metadata.xml | 8 ++++ |
17 |
3 files changed, 55 insertions(+) |
18 |
|
19 |
diff --git a/dev-php/PEAR-PEAR_PackageFileManager2/Manifest b/dev-php/PEAR-PEAR_PackageFileManager2/Manifest |
20 |
new file mode 100644 |
21 |
index 00000000..d8d75c6 |
22 |
--- /dev/null |
23 |
+++ b/dev-php/PEAR-PEAR_PackageFileManager2/Manifest |
24 |
@@ -0,0 +1 @@ |
25 |
+DIST PEAR_PackageFileManager2-1.0.4.tgz 43365 SHA256 44731f87677e476821c04313e8c1ffd41d330ce33ebce99112ded919af029601 SHA512 2748ebb21158521a74246ea410f9a30ae6d4b41e88aba543888238c5fc53060e6cf5c537cb95f595147690a2cbdfaaa34a6b3280924ee153cd3d47f2deb3a636 WHIRLPOOL 5824cde7c149df8dd4b8c82e7a45be47efea6e94e2df41546dc950e32bdce93195bf091656c45ef964d37730838b091366cbfdec000509c662538349c700468d |
26 |
|
27 |
diff --git a/dev-php/PEAR-PEAR_PackageFileManager2/PEAR-PEAR_PackageFileManager2-1.0.4.ebuild b/dev-php/PEAR-PEAR_PackageFileManager2/PEAR-PEAR_PackageFileManager2-1.0.4.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000..60d1907 |
30 |
--- /dev/null |
31 |
+++ b/dev-php/PEAR-PEAR_PackageFileManager2/PEAR-PEAR_PackageFileManager2-1.0.4.ebuild |
32 |
@@ -0,0 +1,46 @@ |
33 |
+# Copyright 1999-2016 Gentoo Foundation |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+# $Id$ |
36 |
+ |
37 |
+EAPI=6 |
38 |
+ |
39 |
+MY_PN="${PN/PEAR-/}" |
40 |
+MY_P="${MY_PN}-${PV}" |
41 |
+ |
42 |
+HOMEPAGE="http://pear.php.net/package/${MY_PN}" |
43 |
+SRC_URI="http://pear.php.net/get/${MY_P}.tgz" |
44 |
+DESCRIPTION="Updates an existing package.xml file with a new filelist and changelog" |
45 |
+LICENSE="PHP-3.01" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~amd64 ~x86" |
48 |
+IUSE="minimal" |
49 |
+ |
50 |
+RDEPEND=">=dev-lang/php-5.3:* |
51 |
+ >=dev-php/PEAR-PEAR-1.10.1 |
52 |
+ dev-php/PEAR-PEAR_PackageFileManager_Plugins |
53 |
+ !minimal? ( >=dev-php/PEAR-PHP_CompatInfo-1.4.0 )" |
54 |
+ |
55 |
+S="${WORKDIR}/${MY_P}" |
56 |
+ |
57 |
+src_prepare() { |
58 |
+ default_src_prepare |
59 |
+ sed -i -e '/role="doc"/d' -e '/role="test"/d' "${WORKDIR}/package.xml" || die |
60 |
+} |
61 |
+ |
62 |
+src_install() { |
63 |
+ insinto /usr/share/php |
64 |
+ doins -r PEAR |
65 |
+} |
66 |
+ |
67 |
+pkg_postinst() { |
68 |
+ # Register the package from the package.xml file |
69 |
+ # Operation is not critical so die is not required |
70 |
+ if [[ -f "${WORKDIR}/package.xml" ]] ; then |
71 |
+ "${EROOT}usr/bin/peardev" install -nrO --force "${WORKDIR}/package.xml" 2> /dev/null |
72 |
+ fi |
73 |
+} |
74 |
+ |
75 |
+pkg_postrm() { |
76 |
+ # Uninstall known dependency |
77 |
+ "${EROOT}usr/bin/peardev" uninstall -nrO "pear.php.net/${MY_PN}" |
78 |
+} |
79 |
|
80 |
diff --git a/dev-php/PEAR-PEAR_PackageFileManager2/metadata.xml b/dev-php/PEAR-PEAR_PackageFileManager2/metadata.xml |
81 |
new file mode 100644 |
82 |
index 00000000..aca4293 |
83 |
--- /dev/null |
84 |
+++ b/dev-php/PEAR-PEAR_PackageFileManager2/metadata.xml |
85 |
@@ -0,0 +1,8 @@ |
86 |
+<?xml version="1.0" encoding="UTF-8"?> |
87 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
88 |
+<pkgmetadata> |
89 |
+<maintainer type="project"> |
90 |
+ <email>php-bugs@g.o</email> |
91 |
+ <name>PHP</name> |
92 |
+</maintainer> |
93 |
+</pkgmetadata> |