dev-php/PEAR-Crypt_HMAC2: Revbump for EAPI and eclass changes; enable tests
authorBrian Evans <grknight@gentoo.org>
Tue, 13 Feb 2018 19:32:22 +0000 (14:32 -0500)
committerBrian Evans <grknight@gentoo.org>
Tue, 13 Feb 2018 19:40:14 +0000 (14:40 -0500)
Package-Manager: Portage-2.3.24, Repoman-2.3.6

dev-php/PEAR-Crypt_HMAC2/PEAR-Crypt_HMAC2-1.0.0-r1.ebuild [moved from dev-php/PEAR-Crypt_HMAC2/PEAR-Crypt_HMAC2-1.0.0.ebuild with 69% similarity]

similarity index 69%
rename from dev-php/PEAR-Crypt_HMAC2/PEAR-Crypt_HMAC2-1.0.0.ebuild
rename to dev-php/PEAR-Crypt_HMAC2/PEAR-Crypt_HMAC2-1.0.0-r1.ebuild
index dd721a85f55e160128f4962634700bb8063f9767..2647980b40b1db2b5749e09d293a40fdd9007ada 100644 (file)
@@ -1,21 +1,20 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI="4"
+EAPI=6
 
-inherit php-pear-r1
+inherit php-pear-r2
 
 DESCRIPTION="Implementation of Hashed Message Authentication Code for PHP5"
 LICENSE="BSD"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
-IUSE=""
+IUSE="test"
+DEPEND="test? ( dev-php/PEAR-PEAR dev-php/phpunit )"
+HTML_DOCS=( docs/intro.xml )
 
-src_install() {
-       php-pear-r1_src_install
-
-       #Useless file that often conflicts with other packages
-       rm "${D}/usr/share/php/generate_package_xml.php"
+src_test() {
+       phpunit tests || die
 }
 
 pkg_postinst() {