1 |
commit: abda111ae4d1b6d2dba3b5e3963a09222f309265 |
2 |
Author: Brian Evans <grknight <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Dec 27 16:22:06 2016 +0000 |
4 |
Commit: Brian Evans <grknight <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Dec 27 16:22:06 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=abda111a |
7 |
|
8 |
dev-php/PEAR-PEAR_PackageFileManager_Plugins: New package |
9 |
|
10 |
Required dependency for dev-php/PEAR-PEAR_PackageFileManager |
11 |
|
12 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
13 |
|
14 |
.../PEAR-PEAR_PackageFileManager_Plugins/Manifest | 1 + |
15 |
...AR-PEAR_PackageFileManager_Plugins-1.0.4.ebuild | 40 ++++++++++++++++++++++ |
16 |
.../metadata.xml | 8 +++++ |
17 |
3 files changed, 49 insertions(+) |
18 |
|
19 |
diff --git a/dev-php/PEAR-PEAR_PackageFileManager_Plugins/Manifest b/dev-php/PEAR-PEAR_PackageFileManager_Plugins/Manifest |
20 |
new file mode 100644 |
21 |
index 00000000..ed6c6df |
22 |
--- /dev/null |
23 |
+++ b/dev-php/PEAR-PEAR_PackageFileManager_Plugins/Manifest |
24 |
@@ -0,0 +1 @@ |
25 |
+DIST PEAR_PackageFileManager_Plugins-1.0.4.tgz 20967 SHA256 58ac5018bb5edf0b76df35474ba38ea1e98f2d9e30ea530fa1ee8c756f1aac03 SHA512 7461ba3dc6f51263383136041d217e2d0d7607c5ef9f8766e08466118f2c869a037622750dd7bdcbbf2a114efde096b3192bbf5229f62ea42adfe83d36451fa0 WHIRLPOOL 623240224078018eab1dc86b24ed2c9f31af2723cb63cf3504df9b66b68bb79dff7466dbea4f7266f6fb56f60af33037fba3607bfe2a5ad26103d8c1a4d82d34 |
26 |
|
27 |
diff --git a/dev-php/PEAR-PEAR_PackageFileManager_Plugins/PEAR-PEAR_PackageFileManager_Plugins-1.0.4.ebuild b/dev-php/PEAR-PEAR_PackageFileManager_Plugins/PEAR-PEAR_PackageFileManager_Plugins-1.0.4.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000..96cb66c |
30 |
--- /dev/null |
31 |
+++ b/dev-php/PEAR-PEAR_PackageFileManager_Plugins/PEAR-PEAR_PackageFileManager_Plugins-1.0.4.ebuild |
32 |
@@ -0,0 +1,40 @@ |
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="Various methods to check files to update an existing package.xml file" |
45 |
+LICENSE="BSD-2" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~amd64 ~x86" |
48 |
+IUSE="" |
49 |
+ |
50 |
+RDEPEND=">=dev-php/PEAR-PEAR-1.10.1 |
51 |
+ >=dev-php/PEAR-XML_Serializer-0.19.0 |
52 |
+ >=dev-lang/php-5.3:*[xml,simplexml]" |
53 |
+ |
54 |
+S="${WORKDIR}/${MY_P}" |
55 |
+ |
56 |
+src_install() { |
57 |
+ insinto /usr/share/php |
58 |
+ doins -r PEAR |
59 |
+} |
60 |
+ |
61 |
+pkg_postinst() { |
62 |
+ # Register the package from the package.xml file |
63 |
+ # Operation is not critical so die is not required |
64 |
+ if [[ -f "${WORKDIR}/package.xml" ]] ; then |
65 |
+ "${EROOT}usr/bin/peardev" install -nrO --force "${WORKDIR}/package.xml" 2> /dev/null |
66 |
+ fi |
67 |
+} |
68 |
+ |
69 |
+pkg_postrm() { |
70 |
+ # Uninstall known dependency |
71 |
+ "${EROOT}usr/bin/peardev" uninstall -nrO "pear.php.net/${MY_PN}" |
72 |
+} |
73 |
|
74 |
diff --git a/dev-php/PEAR-PEAR_PackageFileManager_Plugins/metadata.xml b/dev-php/PEAR-PEAR_PackageFileManager_Plugins/metadata.xml |
75 |
new file mode 100644 |
76 |
index 00000000..aca4293 |
77 |
--- /dev/null |
78 |
+++ b/dev-php/PEAR-PEAR_PackageFileManager_Plugins/metadata.xml |
79 |
@@ -0,0 +1,8 @@ |
80 |
+<?xml version="1.0" encoding="UTF-8"?> |
81 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
82 |
+<pkgmetadata> |
83 |
+<maintainer type="project"> |
84 |
+ <email>php-bugs@g.o</email> |
85 |
+ <name>PHP</name> |
86 |
+</maintainer> |
87 |
+</pkgmetadata> |