1 |
commit: e9c143f01440a4717c2e881f275856330b21e6f8 |
2 |
Author: Brian Evans <grknight <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jun 2 13:47:14 2020 +0000 |
4 |
Commit: Brian Evans <grknight <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jun 2 13:47:14 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e9c143f0 |
7 |
|
8 |
dev-php/PEAR-XML_Util: Version bump for 1.4.5 |
9 |
|
10 |
Signed-off-by: Brian Evans <grknight <AT> gentoo.org> |
11 |
|
12 |
dev-php/PEAR-XML_Util/Manifest | 1 + |
13 |
dev-php/PEAR-XML_Util/PEAR-XML_Util-1.4.5.ebuild | 50 ++++++++++++++++++++++++ |
14 |
2 files changed, 51 insertions(+) |
15 |
|
16 |
diff --git a/dev-php/PEAR-XML_Util/Manifest b/dev-php/PEAR-XML_Util/Manifest |
17 |
index c31c0844035..56eb6f0f1be 100644 |
18 |
--- a/dev-php/PEAR-XML_Util/Manifest |
19 |
+++ b/dev-php/PEAR-XML_Util/Manifest |
20 |
@@ -1,3 +1,4 @@ |
21 |
DIST XML_Util-1.4.2.tgz 18993 BLAKE2B b2667aed3b3ec75dd8fca1625c6fa3d03a7662c24ce0fce69cb983f42fc3f45bc0bf27bdee7353c1d29fe0eabc181f2cbd415883575f5d6cf7163097c10f6d9c SHA512 e0a328f92cdcd09277238e14d68b73cba319ab9b4e9c50ab102b43f73c889599f5933415dc228bd1feb56a48c1527e0e9a86999ee2209b2d84131691aee74cbe |
22 |
DIST XML_Util-1.4.3.tgz 18842 BLAKE2B 1cd0065b84e07a8cbc7f4d44c10362d40e71254b4964b3aa3d4d11cad5cb7e5bce780f926c69cc4fc871ac3c28d8239a428c145389950b4d6f6e626b6215dfc9 SHA512 c21a7cef90743e124c4bc8e0453b634de8f6a6b0aac060acc1a17f481a2eb8757d322b05c69151280b7651cea927b2c64b7d49b9fd815dcdc606d0472d967310 |
23 |
DIST XML_Util-1.4.4.tgz 19069 BLAKE2B bd809d8a3250e5d08793f6d6ae50ebdbd0e95e46b667edf7176ac125b902cee8334bc6abe85704a945a508cba6a2146e5bbcb6039a40316ea8d2b1b30590d139 SHA512 3c2ae4492e76729da561398a43416cd540284297b497d2c1526515c00ba2918b9d520b580e21111cf9f9e133d473289cc9c896bc28ddd0c64a849ee66f897e42 |
24 |
+DIST XML_Util-1.4.5.tgz 19191 BLAKE2B 2097e91bc6ed46e4af5713fe6e3f764b401f14ff1e06c0f96af68476db5e8cf2b463c0a9bed3eecd5e22c24108394fe1f622e4986888af131ee9a3c260f8c652 SHA512 dd373c15ea8057e1a31953a10d75a4821bb9ad63d55ec5ccdbe17c114895ac9b9a57871d50f9f83bca7e3920b461417aa09063cb06051834996d4a8aebfa84c9 |
25 |
|
26 |
diff --git a/dev-php/PEAR-XML_Util/PEAR-XML_Util-1.4.5.ebuild b/dev-php/PEAR-XML_Util/PEAR-XML_Util-1.4.5.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..90d887a6d2d |
29 |
--- /dev/null |
30 |
+++ b/dev-php/PEAR-XML_Util/PEAR-XML_Util-1.4.5.ebuild |
31 |
@@ -0,0 +1,50 @@ |
32 |
+# Copyright 1999-2020 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI="7" |
36 |
+ |
37 |
+MY_PN="${PN/PEAR-/}" |
38 |
+MY_P="${MY_PN}-${PV}" |
39 |
+ |
40 |
+DESCRIPTION="XML utility class" |
41 |
+HOMEPAGE="https://pear.php.net/package/XML_Util" |
42 |
+SRC_URI="https://pear.php.net/get/${MY_P}.tgz" |
43 |
+LICENSE="BSD" |
44 |
+SLOT="0" |
45 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86" |
46 |
+IUSE="examples" |
47 |
+ |
48 |
+# PCRE is needed for a few calls to preg_replace and preg_match. |
49 |
+RDEPEND="dev-lang/php:*[pcre(+)]" |
50 |
+PDEPEND="dev-php/PEAR-PEAR" |
51 |
+DEPEND="" |
52 |
+ |
53 |
+S="${WORKDIR}/${MY_P}" |
54 |
+ |
55 |
+src_install() { |
56 |
+ insinto /usr/share/php |
57 |
+ doins -r XML |
58 |
+ |
59 |
+ use examples && dodoc -r examples |
60 |
+ insinto /usr/share/php/.packagexml |
61 |
+ if [[ -f "${WORKDIR}/package.xml" ]] ; then |
62 |
+ newins "${WORKDIR}/package.xml" "${MY_P}.xml" |
63 |
+ fi |
64 |
+} |
65 |
+ |
66 |
+pkg_postinst() { |
67 |
+ # Register the package from the package{,2}.xml file |
68 |
+ # It is not critical to complete so only warn on failure |
69 |
+ # Can only be done on reinstall/upgrade as this is a PEAR dep |
70 |
+ if [[ -n "${REPLACING_VERSIONS}" && -f "${EROOT}/usr/share/php/.packagexml/${MY_P}.xml" ]] ; then |
71 |
+ "${EROOT}/usr/bin/peardev" install -nrO --force \ |
72 |
+ "${EROOT}/usr/share/php/.packagexml/${MY_P}.xml" 2> /dev/null \ |
73 |
+ || ewarn "Failed to insert package into local PEAR database" |
74 |
+ fi |
75 |
+} |
76 |
+ |
77 |
+pkg_postrm() { |
78 |
+ # Uninstall known dependency |
79 |
+ [[ -n "${REPLACING_VERSIONS}" ]] && \ |
80 |
+ "${EROOT}/usr/bin/peardev" uninstall -nrO "pear.php.net/XML_Util" |
81 |
+} |