summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Evans <grknight@gentoo.org>2018-04-23 10:27:02 -0400
committerBrian Evans <grknight@gentoo.org>2018-04-23 10:53:54 -0400
commita14ce1edcf9836a2d55a4c95ed059e4f3f4bf7ef (patch)
treeadb91429ae2ec1156a8dbd6153064ab1be953fcd /dev-php/PEAR-HTTP_Request2/PEAR-HTTP_Request2-2.3.0-r1.ebuild
parentdev-php/PEAR-HTTP: Revbump for EAPI changes and add tests (diff)
downloadgentoo-a14ce1edcf9836a2d55a4c95ed059e4f3f4bf7ef.tar.gz
gentoo-a14ce1edcf9836a2d55a4c95ed059e4f3f4bf7ef.tar.bz2
gentoo-a14ce1edcf9836a2d55a4c95ed059e4f3f4bf7ef.zip
dev-php/PEAR-HTTP_Request2: Fix data file path
Package-Manager: Portage-2.3.31, Repoman-2.3.9
Diffstat (limited to 'dev-php/PEAR-HTTP_Request2/PEAR-HTTP_Request2-2.3.0-r1.ebuild')
-rw-r--r--dev-php/PEAR-HTTP_Request2/PEAR-HTTP_Request2-2.3.0-r1.ebuild32
1 files changed, 32 insertions, 0 deletions
diff --git a/dev-php/PEAR-HTTP_Request2/PEAR-HTTP_Request2-2.3.0-r1.ebuild b/dev-php/PEAR-HTTP_Request2/PEAR-HTTP_Request2-2.3.0-r1.ebuild
new file mode 100644
index 000000000000..99f16b6faf11
--- /dev/null
+++ b/dev-php/PEAR-HTTP_Request2/PEAR-HTTP_Request2-2.3.0-r1.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit php-pear-r2
+
+DESCRIPTION="Provides an easy way to perform HTTP requests"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+IUSE="+curl +fileinfo +ssl test +zlib"
+
+RDEPEND="dev-lang/php:*[curl?,fileinfo?,ssl?,zlib?]
+>=dev-php/PEAR-Net_URL2-2.2.0"
+DEPEND="test? ( ${RDEPEND} dev-php/phpunit )"
+
+src_prepare() {
+ sed -i "s~@data_dir@~${EPREFIX}/usr/share/php/data~" HTTP/Request2/CookieJar.php || die
+ default
+}
+
+src_test() {
+ phpunit tests || die
+}
+
+src_install() {
+ php-pear-r2_src_install
+ insinto "/usr/share/php/data/${PHP_PEAR_PKG_NAME}"
+ doins data/*
+}