diff options
author | Michael Orlitzky <mjo@gentoo.org> | 2017-03-19 20:22:46 -0400 |
---|---|---|
committer | Michael Orlitzky <mjo@gentoo.org> | 2017-03-19 20:22:46 -0400 |
commit | 82c76d97b8c70c987430783b7baaa464848c6421 (patch) | |
tree | c73811baf923beeb7c2370d5f8466bdcd8e94b52 /dev-php/PEAR-File_Find/PEAR-File_Find-1.3.3.ebuild | |
parent | kde-apps/kldap: Drop USE=ssl (diff) | |
download | gentoo-82c76d97b8c70c987430783b7baaa464848c6421.tar.gz gentoo-82c76d97b8c70c987430783b7baaa464848c6421.tar.bz2 gentoo-82c76d97b8c70c987430783b7baaa464848c6421.zip |
dev-php/PEAR-File_Find: new version 1.3.3 sans the php-pear-r1 eclass.
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'dev-php/PEAR-File_Find/PEAR-File_Find-1.3.3.ebuild')
-rw-r--r-- | dev-php/PEAR-File_Find/PEAR-File_Find-1.3.3.ebuild | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/dev-php/PEAR-File_Find/PEAR-File_Find-1.3.3.ebuild b/dev-php/PEAR-File_Find/PEAR-File_Find-1.3.3.ebuild new file mode 100644 index 000000000000..3bfd60ffb677 --- /dev/null +++ b/dev-php/PEAR-File_Find/PEAR-File_Find-1.3.3.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +MY_PN="${PN/PEAR-/}" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="A class that facillitates the search of filesystems" +HOMEPAGE="http://pear.php.net/package/${MY_PN}" +SRC_URI="http://download.pear.php.net/package/${MY_P}.tgz" +LICENSE="PHP-3.01" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="test" + +# Really only needs PEAR-Exception at runtime. +RDEPEND="dev-lang/php:* + dev-php/PEAR-PEAR" +DEPEND="test? ( dev-php/PEAR-PEAR )" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + eapply_user + + # Without this sed, the test suite will try (and fail) to mess + # around in /tmp. + sed -i "s~'/tmp'~'${T}'~" tests/setup.php \ + || die 'failed to fix temporary directory in tests/setup.php' +} + +src_install() { + insinto /usr/share/php + doins -r File +} + +src_test() { + # Requires the "pear" executable from dev-php/PEAR-PEAR. + pear run-tests tests || die + + # The command succeeds regardless of whether or not the test suite + # passed, but this file is only written when there was a failure. + [[ -f run-tests.log ]] && die "test suite failed" +} |