blob: 040af982ea5c884a22c012216564a23cf44051e3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
DESCRIPTION="Easy parsing of URLs (PHP5 port of PEAR-Net_URL package)"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
IUSE=""
MY_PN="${PN/PEAR-/}"
MY_P="${MY_PN}-${PV}"
SRC_URI="http://pear.php.net/get/${MY_P}.tgz"
HOMEPAGE="http://pear.php.net/${MY_PN}"
RDEPEND="dev-lang/php:* dev-php/pear"
DEPEND=""
S="${WORKDIR}/${MY_P}"
DOCS=( docs/6470.php docs/example.php )
src_install() {
insinto /usr/share/php
doins -r Net/
einstalldocs
}
pkg_postinst() {
peardev install -nrO --force "${WORKDIR}/package.xml" 2> /dev/null
}
pkg_postrm() {
peardev uninstall -nrO --force pear.php.net/${MY_PN}
}
|