summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Evans <grknight@gentoo.org>2016-12-27 11:32:03 -0500
committerBrian Evans <grknight@gentoo.org>2016-12-27 11:32:03 -0500
commit270420453e28871eadad83ee45e5dbab67127c97 (patch)
tree5a7150b8a5ad14b22288457c1f6f9f407fd3b35e /dev-php/PEAR-PEAR_PackageFileManager2
parentdev-php/PEAR-PEAR_PackageFileManager_Plugins: New package (diff)
downloadgentoo-270420453e28871eadad83ee45e5dbab67127c97.tar.gz
gentoo-270420453e28871eadad83ee45e5dbab67127c97.tar.bz2
gentoo-270420453e28871eadad83ee45e5dbab67127c97.zip
dev-php/PEAR-PEAR_PackageFileManager2: New package
Required dependency for PEAR-PEAR_PackageFileManager Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'dev-php/PEAR-PEAR_PackageFileManager2')
-rw-r--r--dev-php/PEAR-PEAR_PackageFileManager2/Manifest1
-rw-r--r--dev-php/PEAR-PEAR_PackageFileManager2/PEAR-PEAR_PackageFileManager2-1.0.4.ebuild46
-rw-r--r--dev-php/PEAR-PEAR_PackageFileManager2/metadata.xml8
3 files changed, 55 insertions, 0 deletions
diff --git a/dev-php/PEAR-PEAR_PackageFileManager2/Manifest b/dev-php/PEAR-PEAR_PackageFileManager2/Manifest
new file mode 100644
index 000000000000..d8d75c62fd83
--- /dev/null
+++ b/dev-php/PEAR-PEAR_PackageFileManager2/Manifest
@@ -0,0 +1 @@
+DIST PEAR_PackageFileManager2-1.0.4.tgz 43365 SHA256 44731f87677e476821c04313e8c1ffd41d330ce33ebce99112ded919af029601 SHA512 2748ebb21158521a74246ea410f9a30ae6d4b41e88aba543888238c5fc53060e6cf5c537cb95f595147690a2cbdfaaa34a6b3280924ee153cd3d47f2deb3a636 WHIRLPOOL 5824cde7c149df8dd4b8c82e7a45be47efea6e94e2df41546dc950e32bdce93195bf091656c45ef964d37730838b091366cbfdec000509c662538349c700468d
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
new file mode 100644
index 000000000000..60d1907399da
--- /dev/null
+++ b/dev-php/PEAR-PEAR_PackageFileManager2/PEAR-PEAR_PackageFileManager2-1.0.4.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+MY_PN="${PN/PEAR-/}"
+MY_P="${MY_PN}-${PV}"
+
+HOMEPAGE="http://pear.php.net/package/${MY_PN}"
+SRC_URI="http://pear.php.net/get/${MY_P}.tgz"
+DESCRIPTION="Updates an existing package.xml file with a new filelist and changelog"
+LICENSE="PHP-3.01"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="minimal"
+
+RDEPEND=">=dev-lang/php-5.3:*
+ >=dev-php/PEAR-PEAR-1.10.1
+ dev-php/PEAR-PEAR_PackageFileManager_Plugins
+ !minimal? ( >=dev-php/PEAR-PHP_CompatInfo-1.4.0 )"
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ default_src_prepare
+ sed -i -e '/role="doc"/d' -e '/role="test"/d' "${WORKDIR}/package.xml" || die
+}
+
+src_install() {
+ insinto /usr/share/php
+ doins -r PEAR
+}
+
+pkg_postinst() {
+ # Register the package from the package.xml file
+ # Operation is not critical so die is not required
+ if [[ -f "${WORKDIR}/package.xml" ]] ; then
+ "${EROOT}usr/bin/peardev" install -nrO --force "${WORKDIR}/package.xml" 2> /dev/null
+ fi
+}
+
+pkg_postrm() {
+ # Uninstall known dependency
+ "${EROOT}usr/bin/peardev" uninstall -nrO "pear.php.net/${MY_PN}"
+}
diff --git a/dev-php/PEAR-PEAR_PackageFileManager2/metadata.xml b/dev-php/PEAR-PEAR_PackageFileManager2/metadata.xml
new file mode 100644
index 000000000000..aca42932b833
--- /dev/null
+++ b/dev-php/PEAR-PEAR_PackageFileManager2/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>php-bugs@gentoo.org</email>
+ <name>PHP</name>
+</maintainer>
+</pkgmetadata>