summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-php')
-rw-r--r--dev-php/PEAR-PHP_CodeSniffer/Manifest2
-rw-r--r--dev-php/PEAR-PHP_CodeSniffer/PEAR-PHP_CodeSniffer-2.5.1-r1.ebuild (renamed from dev-php/PEAR-PHP_CodeSniffer/PEAR-PHP_CodeSniffer-2.5.1.ebuild)13
2 files changed, 9 insertions, 6 deletions
diff --git a/dev-php/PEAR-PHP_CodeSniffer/Manifest b/dev-php/PEAR-PHP_CodeSniffer/Manifest
index acbed6f661cd..4c0e201fe928 100644
--- a/dev-php/PEAR-PHP_CodeSniffer/Manifest
+++ b/dev-php/PEAR-PHP_CodeSniffer/Manifest
@@ -1,2 +1,2 @@
-DIST PEAR-PHP_CodeSniffer-2.5.1.tar.gz 294006 SHA256 bd38bddea81eb9b13413fb09c382a10bbd3c3d8bf82539ac4cc3f1e6a334e5ca SHA512 20221e45da087bbd4e34817086e67ec87016d24a0f14bafbcd7b2a82d4ead9ecf18f2053685e7eee33b5cb4ae2a6d19588b2ca35908b01b75fa79589bbf46671 WHIRLPOOL 0e3b6fe239a6a6e653bf0478edc3eadd05fad456e69785d6f893890cd0a00c066f3eb186c5081142579e0df1a21d7e89f089c93ba4d9810fa235532c318f6a6a
+DIST PHP_CodeSniffer-2.5.1.tgz 484780 SHA256 9de1a12f2d184bd1846a6f756f7507b16722538c88c9dd66912915f498a3f330 SHA512 285cfa1c39ffa6d53317df1d9a4f78f718e0a8c8aded016b07982e83e5bed7713a8f8f8d0da988eb716cf9006f2261d32cc5ecb31c56e07d1be830e85213b002 WHIRLPOOL 74355c23de5ae70bb91ac226d68b61936fefd47487c20cb6d07a92a3060b27a220812a5b5af28d32cdf9be90890ad3c77591cf75ff5f47eef3e0f6fa444337af
DIST PHP_CodeSniffer-2.6.2.tgz 497234 SHA256 f5c71941e254742130e22cd5ef48d3b06b486efbd1b3dbc7f2fa77acdeac650d SHA512 8e74ca2035f25647c836c6cacb6da6c1a3d0d280077cc6b31f5abf01843546c7370a96cba4f3a1b56fe8bac6954e10ce6570352ae67b14f717bab6a30bd2c865 WHIRLPOOL 558653b7ca61d65cdb20dc5e91b3b53f4de57e00aa399a58e798a497b5b1659241f946390817333621ed7e4737f6eda90088085b57e43832af24f7fd4a273a76
diff --git a/dev-php/PEAR-PHP_CodeSniffer/PEAR-PHP_CodeSniffer-2.5.1.ebuild b/dev-php/PEAR-PHP_CodeSniffer/PEAR-PHP_CodeSniffer-2.5.1-r1.ebuild
index 8710e75a87ea..2dfa8b7a92af 100644
--- a/dev-php/PEAR-PHP_CodeSniffer/PEAR-PHP_CodeSniffer-2.5.1.ebuild
+++ b/dev-php/PEAR-PHP_CodeSniffer/PEAR-PHP_CodeSniffer-2.5.1-r1.ebuild
@@ -10,7 +10,10 @@ MY_P="${MY_PN}-${PV}"
DESCRIPTION="Detect violations of PHP code standards"
HOMEPAGE="https://github.com/squizlabs/PHP_CodeSniffer"
-SRC_URI="https://github.com/squizlabs/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+# The test suite isn't part of the Github tarball at the moment. Keep an
+# eye on https://github.com/squizlabs/PHP_CodeSniffer/issues/548
+SRC_URI="http://download.pear.php.net/package/${MY_P}.tgz"
LICENSE="BSD"
SLOT="0"
@@ -25,6 +28,7 @@ S="${WORKDIR}/${MY_P}"
DOCS=( CONTRIBUTING.md README.md )
src_install() {
+ # The PEAR eclass would install everything into the wrong location.
insinto "/usr/share/${PN}"
doins -r CodeSniffer CodeSniffer.php
@@ -39,9 +43,8 @@ src_install() {
einstalldocs
}
-# The test suite isn't part of the tarball at the moment, keep an eye on
-# https://github.com/squizlabs/PHP_CodeSniffer/issues/548
-RESTRICT=test
src_test() {
- phpunit || die "test suite failed"
+ # The test suite will fail if date.timezone isn't set in php.ini.
+ phpunit -d date.timezone=UTC tests/AllTests.php \
+ || die "test suite failed"
}