summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Orlitzky <mjo@gentoo.org>2016-02-22 21:13:18 -0500
committerMichael Orlitzky <mjo@gentoo.org>2016-02-22 21:18:10 -0500
commit478531c6053a110779bd4bbc8adcd165c047a339 (patch)
treeff6a0f420980578a2306ea63b0b32219fd336d2b /dev-php
parentapp-portage/grs: version bump to 0.5 (diff)
downloadgentoo-478531c6053a110779bd4bbc8adcd165c047a339.tar.gz
gentoo-478531c6053a110779bd4bbc8adcd165c047a339.tar.bz2
gentoo-478531c6053a110779bd4bbc8adcd165c047a339.zip
dev-php/PEAR-PHP_CodeSniffer: add version 2.5.1.
This new version avoids the php-pear-r1 eclass to fix an install artifact that was being left behind. Gentoo-Bug: 568716 Package-Manager: portage-2.2.26
Diffstat (limited to 'dev-php')
-rw-r--r--dev-php/PEAR-PHP_CodeSniffer/Manifest1
-rw-r--r--dev-php/PEAR-PHP_CodeSniffer/PEAR-PHP_CodeSniffer-2.5.1.ebuild47
2 files changed, 48 insertions, 0 deletions
diff --git a/dev-php/PEAR-PHP_CodeSniffer/Manifest b/dev-php/PEAR-PHP_CodeSniffer/Manifest
index ff10dcccedd7..718652af6e74 100644
--- a/dev-php/PEAR-PHP_CodeSniffer/Manifest
+++ b/dev-php/PEAR-PHP_CodeSniffer/Manifest
@@ -1,3 +1,4 @@
+DIST PEAR-PHP_CodeSniffer-2.5.1.tar.gz 294006 SHA256 bd38bddea81eb9b13413fb09c382a10bbd3c3d8bf82539ac4cc3f1e6a334e5ca SHA512 20221e45da087bbd4e34817086e67ec87016d24a0f14bafbcd7b2a82d4ead9ecf18f2053685e7eee33b5cb4ae2a6d19588b2ca35908b01b75fa79589bbf46671 WHIRLPOOL 0e3b6fe239a6a6e653bf0478edc3eadd05fad456e69785d6f893890cd0a00c066f3eb186c5081142579e0df1a21d7e89f089c93ba4d9810fa235532c318f6a6a
DIST PHP_CodeSniffer-1.3.5.tgz 345113 SHA256 deb28c23ae83962aaefaeb022b55de4045c83ab962a430f603464564f4e8fb5e SHA512 2502636bf9273fee02d8b7ed26ef80754672f1d07418b5337c6e814ed783ed73ab2f1fc14d6c9192d15ef4260b8bb54e68ce6d028cc7167da88a8b4b9bcf5a28 WHIRLPOOL 7dba786a1cfb1f66587a26c0961c68f63226b2d8e1a5a22126691635ab3314e387d94985f6f30b06c4e009b9014726fd2d594a8edf2830010e30f4cc44633998
DIST PHP_CodeSniffer-1.4.7.tgz 406387 SHA256 c3f44b80d7853f521f333486c3c1d6cda5caea6b1f14b0679c41b1c7169bf550 SHA512 5cef6054190f65f8ec8750b00bf1c5c4e14ee6c3174cc98202722b84834b0367c2c7657fdc9e33f4311278f1d37738ab8f9579b730a1db30c0196ad53dbfa285 WHIRLPOOL b63c369ac1b6126f7abff969a4d9061b39cce9856c9b2a729bd5e73c5b9cbe27c150679a7649775d90fc8a008a693f201bf984b4c63b4410377b357c16cd2829
DIST PHP_CodeSniffer-1.5.0RC4.tgz 404735 SHA256 02677d8ceb82a88332fb9748fcd16e588c58a1e7584d53713a37d29a0214a7ce SHA512 495b69ddfa73ebc7b78966a81f3e529d33729170e383bb2ec241e6c711fc1b7d80f46221a015b7b5e8ef0524e76ee667a98de604333a095c4a2045784202e8cc WHIRLPOOL ab0960bcc7c38ffdfd70a8beb34cab188e0f013b23c121165760e9796db4528354bd1feb6da4c080e974039910afe036333c0907ccbfdac0405f5a8514e36bc1
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.ebuild
new file mode 100644
index 000000000000..8710e75a87ea
--- /dev/null
+++ b/dev-php/PEAR-PHP_CodeSniffer/PEAR-PHP_CodeSniffer-2.5.1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+# Can go if we ever drop the "PEAR-" prefix.
+MY_PN="${PN#PEAR-}"
+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"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+DEPEND="test? ( >=dev-php/phpunit-4 )"
+RDEPEND="dev-lang/php:*[cli,tokenizer,xmlwriter]"
+
+# Can go if we ever drop the "PEAR-" prefix.
+S="${WORKDIR}/${MY_P}"
+
+DOCS=( CONTRIBUTING.md README.md )
+src_install() {
+ insinto "/usr/share/${PN}"
+ doins -r CodeSniffer CodeSniffer.php
+
+ # These load code via relative paths, so they have to be symlinked
+ # and not dobin'd.
+ exeinto "/usr/share/${PN}/scripts"
+ for script in phpcbf phpcs; do
+ doexe "scripts/${script}"
+ dosym "/usr/share/${PN}/scripts/${script}" "/usr/bin/${script}"
+ done
+
+ 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"
+}