From d20f220823a60f0eb2bffeb8d8583ea76bce3917 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Fri, 5 Aug 2016 16:45:13 -0400 Subject: dev-php/PEAR-PHP_CodeSniffer: rename to dev-php/PHP_CodeSniffer. Gentoo-Bug: 575422 --- dev-php/PEAR-PHP_CodeSniffer/Manifest | 2 - .../PEAR-PHP_CodeSniffer-2.5.1-r1.ebuild | 50 ---------------------- .../PEAR-PHP_CodeSniffer-2.6.2-r1.ebuild | 48 --------------------- dev-php/PEAR-PHP_CodeSniffer/metadata.xml | 8 ---- dev-php/PHP_CodeSniffer/Manifest | 1 + .../PHP_CodeSniffer-2.6.2-r2.ebuild | 43 +++++++++++++++++++ dev-php/PHP_CodeSniffer/metadata.xml | 8 ++++ 7 files changed, 52 insertions(+), 108 deletions(-) delete mode 100644 dev-php/PEAR-PHP_CodeSniffer/Manifest delete mode 100644 dev-php/PEAR-PHP_CodeSniffer/PEAR-PHP_CodeSniffer-2.5.1-r1.ebuild delete mode 100644 dev-php/PEAR-PHP_CodeSniffer/PEAR-PHP_CodeSniffer-2.6.2-r1.ebuild delete mode 100644 dev-php/PEAR-PHP_CodeSniffer/metadata.xml create mode 100644 dev-php/PHP_CodeSniffer/Manifest create mode 100644 dev-php/PHP_CodeSniffer/PHP_CodeSniffer-2.6.2-r2.ebuild create mode 100644 dev-php/PHP_CodeSniffer/metadata.xml (limited to 'dev-php') diff --git a/dev-php/PEAR-PHP_CodeSniffer/Manifest b/dev-php/PEAR-PHP_CodeSniffer/Manifest deleted file mode 100644 index 4c0e201fe928..000000000000 --- a/dev-php/PEAR-PHP_CodeSniffer/Manifest +++ /dev/null @@ -1,2 +0,0 @@ -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-r1.ebuild b/dev-php/PEAR-PHP_CodeSniffer/PEAR-PHP_CodeSniffer-2.5.1-r1.ebuild deleted file mode 100644 index 2dfa8b7a92af..000000000000 --- a/dev-php/PEAR-PHP_CodeSniffer/PEAR-PHP_CodeSniffer-2.5.1-r1.ebuild +++ /dev/null @@ -1,50 +0,0 @@ -# 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" - -# 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" -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() { - # The PEAR eclass would install everything into the wrong location. - 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 -} - -src_test() { - # 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" -} diff --git a/dev-php/PEAR-PHP_CodeSniffer/PEAR-PHP_CodeSniffer-2.6.2-r1.ebuild b/dev-php/PEAR-PHP_CodeSniffer/PEAR-PHP_CodeSniffer-2.6.2-r1.ebuild deleted file mode 100644 index 7ef39e92be1e..000000000000 --- a/dev-php/PEAR-PHP_CodeSniffer/PEAR-PHP_CodeSniffer-2.6.2-r1.ebuild +++ /dev/null @@ -1,48 +0,0 @@ -# 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="http://download.pear.php.net/package/${MY_P}.tgz" - -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() { - # The PEAR eclass would install everything into the wrong location. - 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 -} - -src_test() { - # 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" -} diff --git a/dev-php/PEAR-PHP_CodeSniffer/metadata.xml b/dev-php/PEAR-PHP_CodeSniffer/metadata.xml deleted file mode 100644 index b86acf66c756..000000000000 --- a/dev-php/PEAR-PHP_CodeSniffer/metadata.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - php-bugs@gentoo.org - PHP - - diff --git a/dev-php/PHP_CodeSniffer/Manifest b/dev-php/PHP_CodeSniffer/Manifest new file mode 100644 index 000000000000..738d5451f7c1 --- /dev/null +++ b/dev-php/PHP_CodeSniffer/Manifest @@ -0,0 +1 @@ +DIST PHP_CodeSniffer-2.6.2.tgz 497234 SHA256 f5c71941e254742130e22cd5ef48d3b06b486efbd1b3dbc7f2fa77acdeac650d SHA512 8e74ca2035f25647c836c6cacb6da6c1a3d0d280077cc6b31f5abf01843546c7370a96cba4f3a1b56fe8bac6954e10ce6570352ae67b14f717bab6a30bd2c865 WHIRLPOOL 558653b7ca61d65cdb20dc5e91b3b53f4de57e00aa399a58e798a497b5b1659241f946390817333621ed7e4737f6eda90088085b57e43832af24f7fd4a273a76 diff --git a/dev-php/PHP_CodeSniffer/PHP_CodeSniffer-2.6.2-r2.ebuild b/dev-php/PHP_CodeSniffer/PHP_CodeSniffer-2.6.2-r2.ebuild new file mode 100644 index 000000000000..ef6e783c8e65 --- /dev/null +++ b/dev-php/PHP_CodeSniffer/PHP_CodeSniffer-2.6.2-r2.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +DESCRIPTION="Detect violations of PHP code standards" +HOMEPAGE="https://github.com/squizlabs/PHP_CodeSniffer" + +# 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/${P}.tgz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +DEPEND="test? ( >=dev-php/phpunit-4 )" +RDEPEND="dev-lang/php:*[cli,tokenizer,xmlwriter]" + +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 + + # 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 +} + +src_test() { + # 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" +} diff --git a/dev-php/PHP_CodeSniffer/metadata.xml b/dev-php/PHP_CodeSniffer/metadata.xml new file mode 100644 index 000000000000..b86acf66c756 --- /dev/null +++ b/dev-php/PHP_CodeSniffer/metadata.xml @@ -0,0 +1,8 @@ + + + + + php-bugs@gentoo.org + PHP + + -- cgit v1.2.3-65-gdbad