diff options
author | Brian Evans <grknight@gentoo.org> | 2016-12-27 09:22:01 -0500 |
---|---|---|
committer | Brian Evans <grknight@gentoo.org> | 2016-12-27 09:22:01 -0500 |
commit | 8922665fdf5267076cf641f6c4ccb9b6e7d335e8 (patch) | |
tree | 92fd6a14deae4cd3c2c67995c5e565e448bd0b70 /dev-php/PEAR-Text_CAPTCHA | |
parent | profiles: mask dev-cpp/luabind and rdeps (diff) | |
download | gentoo-8922665fdf5267076cf641f6c4ccb9b6e7d335e8.tar.gz gentoo-8922665fdf5267076cf641f6c4ccb9b6e7d335e8.tar.bz2 gentoo-8922665fdf5267076cf641f6c4ccb9b6e7d335e8.zip |
dev-php/PEAR-Text_CAPTCHA: Version bump
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'dev-php/PEAR-Text_CAPTCHA')
-rw-r--r-- | dev-php/PEAR-Text_CAPTCHA/Manifest | 1 | ||||
-rw-r--r-- | dev-php/PEAR-Text_CAPTCHA/PEAR-Text_CAPTCHA-1.0.2.ebuild | 48 |
2 files changed, 49 insertions, 0 deletions
diff --git a/dev-php/PEAR-Text_CAPTCHA/Manifest b/dev-php/PEAR-Text_CAPTCHA/Manifest index e3849bee67e0..62a12af1021f 100644 --- a/dev-php/PEAR-Text_CAPTCHA/Manifest +++ b/dev-php/PEAR-Text_CAPTCHA/Manifest @@ -1 +1,2 @@ DIST Text_CAPTCHA-0.5.0.tgz 196145 SHA256 76b8e3fc39b80d8e0c11da7f4f03cfeb0cde61aeee01d8a9328347dbb86cad45 SHA512 e56da70309f6baf79b8856ee912c24f768745347f0dbb021af4cde9290ffb328a2cf7cbce7bf480a5977755b9a129f8f2fae8ccaa85310e9b716c348fe1efaef WHIRLPOOL f06b0b134514ef1cfc9f8aed28c61a73f729154d36089c4837afb70766e8b111a86f5457c0096919312f324580d2154fb2020504510426b5de8effaa910f97fa +DIST Text_CAPTCHA-1.0.2.tgz 197084 SHA256 8e0c809f1dfaa54cd32b5f67406ca0c1e3ecd65db906dbb9f469f3a9096e077e SHA512 334cee581d9750f69e2fcf6fea948334926960dce6a374dc4e1edf1609d97393c4a08fff867e50e3fceff60b350ab6239bb44c14b78d6c63c8b11be097a8bc43 WHIRLPOOL a209929c87705be6458384837b6eeb25adf892e9bd127cf59043c65a9cea22c917e8bcf8d057e696ce5cbf3a485d27813b90d208079bf6f02ef88403485a0366 diff --git a/dev-php/PEAR-Text_CAPTCHA/PEAR-Text_CAPTCHA-1.0.2.ebuild b/dev-php/PEAR-Text_CAPTCHA/PEAR-Text_CAPTCHA-1.0.2.ebuild new file mode 100644 index 000000000000..921b68da32fc --- /dev/null +++ b/dev-php/PEAR-Text_CAPTCHA/PEAR-Text_CAPTCHA-1.0.2.ebuild @@ -0,0 +1,48 @@ +# 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="Generation of CAPTCHAs" +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="minimal" + +RDEPEND="dev-php/PEAR-PEAR >=dev-lang/php-5.3:*[gd,truetype] >=dev-php/PEAR-Text_Password-1.1.1 + !minimal? ( dev-php/PEAR-Numbers_Words + dev-php/PEAR-Text_Figlet + >=dev-php/PEAR-Image_Text-0.7.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() { + local DOCS=( README ) + insinto /usr/share/php + doins -r Text + einstalldocs +} + +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}" +} |