diff options
author | Brian Evans <grknight@gentoo.org> | 2020-06-02 09:47:14 -0400 |
---|---|---|
committer | Brian Evans <grknight@gentoo.org> | 2020-06-02 09:47:14 -0400 |
commit | e9c143f01440a4717c2e881f275856330b21e6f8 (patch) | |
tree | 80de6b2b6bfaf85581958a43f8b19622d2b99ead /dev-php/PEAR-XML_Util | |
parent | app-backup/bacula: Fix installation of bpipe-fd.so (diff) | |
download | gentoo-e9c143f01440a4717c2e881f275856330b21e6f8.tar.gz gentoo-e9c143f01440a4717c2e881f275856330b21e6f8.tar.bz2 gentoo-e9c143f01440a4717c2e881f275856330b21e6f8.zip |
dev-php/PEAR-XML_Util: Version bump for 1.4.5
Signed-off-by: Brian Evans <grknight@gentoo.org>
Diffstat (limited to 'dev-php/PEAR-XML_Util')
-rw-r--r-- | dev-php/PEAR-XML_Util/Manifest | 1 | ||||
-rw-r--r-- | dev-php/PEAR-XML_Util/PEAR-XML_Util-1.4.5.ebuild | 50 |
2 files changed, 51 insertions, 0 deletions
diff --git a/dev-php/PEAR-XML_Util/Manifest b/dev-php/PEAR-XML_Util/Manifest index c31c08440352..56eb6f0f1be5 100644 --- a/dev-php/PEAR-XML_Util/Manifest +++ b/dev-php/PEAR-XML_Util/Manifest @@ -1,3 +1,4 @@ DIST XML_Util-1.4.2.tgz 18993 BLAKE2B b2667aed3b3ec75dd8fca1625c6fa3d03a7662c24ce0fce69cb983f42fc3f45bc0bf27bdee7353c1d29fe0eabc181f2cbd415883575f5d6cf7163097c10f6d9c SHA512 e0a328f92cdcd09277238e14d68b73cba319ab9b4e9c50ab102b43f73c889599f5933415dc228bd1feb56a48c1527e0e9a86999ee2209b2d84131691aee74cbe DIST XML_Util-1.4.3.tgz 18842 BLAKE2B 1cd0065b84e07a8cbc7f4d44c10362d40e71254b4964b3aa3d4d11cad5cb7e5bce780f926c69cc4fc871ac3c28d8239a428c145389950b4d6f6e626b6215dfc9 SHA512 c21a7cef90743e124c4bc8e0453b634de8f6a6b0aac060acc1a17f481a2eb8757d322b05c69151280b7651cea927b2c64b7d49b9fd815dcdc606d0472d967310 DIST XML_Util-1.4.4.tgz 19069 BLAKE2B bd809d8a3250e5d08793f6d6ae50ebdbd0e95e46b667edf7176ac125b902cee8334bc6abe85704a945a508cba6a2146e5bbcb6039a40316ea8d2b1b30590d139 SHA512 3c2ae4492e76729da561398a43416cd540284297b497d2c1526515c00ba2918b9d520b580e21111cf9f9e133d473289cc9c896bc28ddd0c64a849ee66f897e42 +DIST XML_Util-1.4.5.tgz 19191 BLAKE2B 2097e91bc6ed46e4af5713fe6e3f764b401f14ff1e06c0f96af68476db5e8cf2b463c0a9bed3eecd5e22c24108394fe1f622e4986888af131ee9a3c260f8c652 SHA512 dd373c15ea8057e1a31953a10d75a4821bb9ad63d55ec5ccdbe17c114895ac9b9a57871d50f9f83bca7e3920b461417aa09063cb06051834996d4a8aebfa84c9 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 new file mode 100644 index 000000000000..90d887a6d2d0 --- /dev/null +++ b/dev-php/PEAR-XML_Util/PEAR-XML_Util-1.4.5.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +MY_PN="${PN/PEAR-/}" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="XML utility class" +HOMEPAGE="https://pear.php.net/package/XML_Util" +SRC_URI="https://pear.php.net/get/${MY_P}.tgz" +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86" +IUSE="examples" + +# PCRE is needed for a few calls to preg_replace and preg_match. +RDEPEND="dev-lang/php:*[pcre(+)]" +PDEPEND="dev-php/PEAR-PEAR" +DEPEND="" + +S="${WORKDIR}/${MY_P}" + +src_install() { + insinto /usr/share/php + doins -r XML + + use examples && dodoc -r examples + insinto /usr/share/php/.packagexml + if [[ -f "${WORKDIR}/package.xml" ]] ; then + newins "${WORKDIR}/package.xml" "${MY_P}.xml" + fi +} + +pkg_postinst() { + # Register the package from the package{,2}.xml file + # It is not critical to complete so only warn on failure + # Can only be done on reinstall/upgrade as this is a PEAR dep + if [[ -n "${REPLACING_VERSIONS}" && -f "${EROOT}/usr/share/php/.packagexml/${MY_P}.xml" ]] ; then + "${EROOT}/usr/bin/peardev" install -nrO --force \ + "${EROOT}/usr/share/php/.packagexml/${MY_P}.xml" 2> /dev/null \ + || ewarn "Failed to insert package into local PEAR database" + fi +} + +pkg_postrm() { + # Uninstall known dependency + [[ -n "${REPLACING_VERSIONS}" ]] && \ + "${EROOT}/usr/bin/peardev" uninstall -nrO "pear.php.net/XML_Util" +} |