dev-php/PEAR-File_Fortune: Revbump to add tests and for EAPI/eclass
authorBrian Evans <grknight@gentoo.org>
Fri, 16 Feb 2018 20:08:09 +0000 (15:08 -0500)
committerBrian Evans <grknight@gentoo.org>
Fri, 16 Feb 2018 22:00:00 +0000 (17:00 -0500)
Package-Manager: Portage-2.3.24, Repoman-2.3.6

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

similarity index 53%
rename from dev-php/PEAR-File_Fortune/PEAR-File_Fortune-1.0.0.ebuild
rename to dev-php/PEAR-File_Fortune/PEAR-File_Fortune-1.0.0-r1.ebuild
index 1e33656d0fea428fb62047d348c868c70d3a0842..ec5a405cb607acfa5905a3aeafc64acde33fe6ee 100644 (file)
@@ -1,16 +1,20 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
+EAPI=6
 
-inherit php-pear-r1
+inherit php-pear-r2
 
 DESCRIPTION="Interface for reading from and writing to fortune files"
 
 LICENSE="BSD"
 SLOT="0"
 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
-IUSE=""
+IUSE="test"
 
-DEPEND=">=dev-lang/php-5.1.4:*"
-RDEPEND="${DEPEND}"
+RDEPEND=">=dev-lang/php-5.1.4:*"
+DEPEND="test? ( ${RDEPEND} dev-php/phpunit )"
+
+src_test(){
+       phpunit tests || die
+}