public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-php/PEAR-PHP_CodeSniffer/
@ 2016-02-23  2:19 Michael Orlitzky
  0 siblings, 0 replies; 5+ messages in thread
From: Michael Orlitzky @ 2016-02-23  2:19 UTC (permalink / raw
  To: gentoo-commits

commit:     478531c6053a110779bd4bbc8adcd165c047a339
Author:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
AuthorDate: Tue Feb 23 02:13:18 2016 +0000
Commit:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Tue Feb 23 02:18:10 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=478531c6

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

 dev-php/PEAR-PHP_CodeSniffer/Manifest              |  1 +
 .../PEAR-PHP_CodeSniffer-2.5.1.ebuild              | 47 ++++++++++++++++++++++
 2 files changed, 48 insertions(+)

diff --git a/dev-php/PEAR-PHP_CodeSniffer/Manifest b/dev-php/PEAR-PHP_CodeSniffer/Manifest
index ff10dcc..718652a 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 0000000..8710e75
--- /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"
+}


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-php/PEAR-PHP_CodeSniffer/
@ 2016-02-23  2:19 Michael Orlitzky
  0 siblings, 0 replies; 5+ messages in thread
From: Michael Orlitzky @ 2016-02-23  2:19 UTC (permalink / raw
  To: gentoo-commits

commit:     9862a1cfbdad8853bf3120ada1d344f76a0d97d5
Author:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
AuthorDate: Tue Feb 23 02:17:51 2016 +0000
Commit:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Tue Feb 23 02:18:11 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9862a1cf

dev-php/PEAR-PHP_CodeSniffer: remove older versions.

This completes the fix for the install artifacts left behind by the
php-pear-r1 eclass. All versions using that eclass are removed, and we
can begin planning to rename the package (to drop the "PEAR-" prefix).

Gentoo-Bug: 568716

Package-Manager: portage-2.2.26

 dev-php/PEAR-PHP_CodeSniffer/Manifest                     |  4 ----
 .../PEAR-PHP_CodeSniffer-1.3.5.ebuild                     | 14 --------------
 .../PEAR-PHP_CodeSniffer-1.4.7.ebuild                     | 14 --------------
 .../PEAR-PHP_CodeSniffer-1.5.0_rc4.ebuild                 | 14 --------------
 .../PEAR-PHP_CodeSniffer-2.3.0.ebuild                     | 15 ---------------
 5 files changed, 61 deletions(-)

diff --git a/dev-php/PEAR-PHP_CodeSniffer/Manifest b/dev-php/PEAR-PHP_CodeSniffer/Manifest
index 718652a..cefdc88 100644
--- a/dev-php/PEAR-PHP_CodeSniffer/Manifest
+++ b/dev-php/PEAR-PHP_CodeSniffer/Manifest
@@ -1,5 +1 @@
 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
-DIST PHP_CodeSniffer-2.3.0.tgz 464453 SHA256 ee4774d96da65d907c36ceabdefc2a8dbc95cabcee0457b78a418357553c5611 SHA512 c0f8ec79e41301619b2c9f5c4145bbc6705b01c9cf6f954448679e8d2bee2ce6cb759a0cd799f925f70e43304e7f2dc9f412cc51fd7a25fd002d56bf408b6ba2 WHIRLPOOL 33358e1631099fbafa4ac77f3a7e5a6c10186aa6e43fd231e22c51c94d70c1c2dddde2621b5435c23e06a9392c0e68b71f899de301eeca23f4da41944f04e5a2

diff --git a/dev-php/PEAR-PHP_CodeSniffer/PEAR-PHP_CodeSniffer-1.3.5.ebuild b/dev-php/PEAR-PHP_CodeSniffer/PEAR-PHP_CodeSniffer-1.3.5.ebuild
deleted file mode 100644
index 11191d2..0000000
--- a/dev-php/PEAR-PHP_CodeSniffer/PEAR-PHP_CodeSniffer-1.3.5.ebuild
+++ /dev/null
@@ -1,14 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI="4"
-
-inherit php-pear-r1
-
-DESCRIPTION="Tokenises PHP code and detects violations of a defined set of coding standards"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE=""

diff --git a/dev-php/PEAR-PHP_CodeSniffer/PEAR-PHP_CodeSniffer-1.4.7.ebuild b/dev-php/PEAR-PHP_CodeSniffer/PEAR-PHP_CodeSniffer-1.4.7.ebuild
deleted file mode 100644
index 11191d2..0000000
--- a/dev-php/PEAR-PHP_CodeSniffer/PEAR-PHP_CodeSniffer-1.4.7.ebuild
+++ /dev/null
@@ -1,14 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI="4"
-
-inherit php-pear-r1
-
-DESCRIPTION="Tokenises PHP code and detects violations of a defined set of coding standards"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE=""

diff --git a/dev-php/PEAR-PHP_CodeSniffer/PEAR-PHP_CodeSniffer-1.5.0_rc4.ebuild b/dev-php/PEAR-PHP_CodeSniffer/PEAR-PHP_CodeSniffer-1.5.0_rc4.ebuild
deleted file mode 100644
index b81d245..0000000
--- a/dev-php/PEAR-PHP_CodeSniffer/PEAR-PHP_CodeSniffer-1.5.0_rc4.ebuild
+++ /dev/null
@@ -1,14 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI="5"
-
-inherit php-pear-r1
-
-DESCRIPTION="Tokenises PHP code and detects violations of a defined set of coding standards"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE=""

diff --git a/dev-php/PEAR-PHP_CodeSniffer/PEAR-PHP_CodeSniffer-2.3.0.ebuild b/dev-php/PEAR-PHP_CodeSniffer/PEAR-PHP_CodeSniffer-2.3.0.ebuild
deleted file mode 100644
index 462a782..0000000
--- a/dev-php/PEAR-PHP_CodeSniffer/PEAR-PHP_CodeSniffer-2.3.0.ebuild
+++ /dev/null
@@ -1,15 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI="5"
-
-inherit php-pear-r1
-
-DESCRIPTION="Tokenises PHP code and detects violations of a defined set of coding standards"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE=""
-RDEPEND=">=dev-lang/php-5.1.2:*[cli]"


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-php/PEAR-PHP_CodeSniffer/
@ 2016-07-15 17:57 Brian Evans
  0 siblings, 0 replies; 5+ messages in thread
From: Brian Evans @ 2016-07-15 17:57 UTC (permalink / raw
  To: gentoo-commits

commit:     936a1889e4ed64b7c2a7a121f55eff8afffe84cd
Author:     Brian Evans <grknight <AT> gentoo <DOT> org>
AuthorDate: Fri Jul 15 17:57:06 2016 +0000
Commit:     Brian Evans <grknight <AT> gentoo <DOT> org>
CommitDate: Fri Jul 15 17:57:06 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=936a1889

dev-php/PEAR-PHP_CodeSniffer: Version bump

Package-Manager: portage-2.3.0

 dev-php/PEAR-PHP_CodeSniffer/Manifest              |  1 +
 .../PEAR-PHP_CodeSniffer-2.6.2.ebuild              | 29 ++++++++++++++++++++++
 2 files changed, 30 insertions(+)

diff --git a/dev-php/PEAR-PHP_CodeSniffer/Manifest b/dev-php/PEAR-PHP_CodeSniffer/Manifest
index cefdc88..acbed6f 100644
--- a/dev-php/PEAR-PHP_CodeSniffer/Manifest
+++ b/dev-php/PEAR-PHP_CodeSniffer/Manifest
@@ -1 +1,2 @@
 DIST PEAR-PHP_CodeSniffer-2.5.1.tar.gz 294006 SHA256 bd38bddea81eb9b13413fb09c382a10bbd3c3d8bf82539ac4cc3f1e6a334e5ca SHA512 20221e45da087bbd4e34817086e67ec87016d24a0f14bafbcd7b2a82d4ead9ecf18f2053685e7eee33b5cb4ae2a6d19588b2ca35908b01b75fa79589bbf46671 WHIRLPOOL 0e3b6fe239a6a6e653bf0478edc3eadd05fad456e69785d6f893890cd0a00c066f3eb186c5081142579e0df1a21d7e89f089c93ba4d9810fa235532c318f6a6a
+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.6.2.ebuild b/dev-php/PEAR-PHP_CodeSniffer/PEAR-PHP_CodeSniffer-2.6.2.ebuild
new file mode 100644
index 0000000..9889ea6
--- /dev/null
+++ b/dev-php/PEAR-PHP_CodeSniffer/PEAR-PHP_CodeSniffer-2.6.2.ebuild
@@ -0,0 +1,29 @@
+# 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"
+
+inherit php-pear-r1
+
+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() {
+	php-pear-r1_src_install
+	einstalldocs
+}
+
+src_test() {
+	phpunit "${S}/tests/AllTests.php" || die "test suite failed"
+}


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-php/PEAR-PHP_CodeSniffer/
@ 2016-07-16 23:54 Michael Orlitzky
  0 siblings, 0 replies; 5+ messages in thread
From: Michael Orlitzky @ 2016-07-16 23:54 UTC (permalink / raw
  To: gentoo-commits

commit:     97f29946aacc0c1d06483bd8f1d19976962302a0
Author:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
AuthorDate: Sat Jul 16 23:52:22 2016 +0000
Commit:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Sat Jul 16 23:52:22 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=97f29946

dev-php/PEAR-PHP_CodeSniffer: new v2.5.1 revision fixing the test suite.

Package-Manager: portage-2.2.28

 dev-php/PEAR-PHP_CodeSniffer/Manifest                       |  2 +-
 ...er-2.5.1.ebuild => PEAR-PHP_CodeSniffer-2.5.1-r1.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 acbed6f..4c0e201 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
similarity index 69%
rename from dev-php/PEAR-PHP_CodeSniffer/PEAR-PHP_CodeSniffer-2.5.1.ebuild
rename to dev-php/PEAR-PHP_CodeSniffer/PEAR-PHP_CodeSniffer-2.5.1-r1.ebuild
index 8710e75..2dfa8b7 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"
 }


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-php/PEAR-PHP_CodeSniffer/
@ 2016-07-18 12:59 Brian Evans
  0 siblings, 0 replies; 5+ messages in thread
From: Brian Evans @ 2016-07-18 12:59 UTC (permalink / raw
  To: gentoo-commits

commit:     dcd2809c9842029520fc6fce8cbbfa8b23ce172c
Author:     Brian Evans <grknight <AT> gentoo <DOT> org>
AuthorDate: Mon Jul 18 12:59:30 2016 +0000
Commit:     Brian Evans <grknight <AT> gentoo <DOT> org>
CommitDate: Mon Jul 18 12:59:30 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dcd2809c

dev-php/PEAR-PHP_CodeSniffer: Revbump to remove PEAR eclass

As per mjo's comments on IRC, this package may be better off
in its own namepace.  None of the includes are meant to be used outside
of the script

Package-Manager: portage-2.3.0

 .../PEAR-PHP_CodeSniffer-2.6.2-r1.ebuild           | 48 ++++++++++++++++++++++
 .../PEAR-PHP_CodeSniffer-2.6.2.ebuild              | 29 -------------
 2 files changed, 48 insertions(+), 29 deletions(-)

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
new file mode 100644
index 0000000..7ef39e9
--- /dev/null
+++ b/dev-php/PEAR-PHP_CodeSniffer/PEAR-PHP_CodeSniffer-2.6.2-r1.ebuild
@@ -0,0 +1,48 @@
+# 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/PEAR-PHP_CodeSniffer-2.6.2.ebuild b/dev-php/PEAR-PHP_CodeSniffer/PEAR-PHP_CodeSniffer-2.6.2.ebuild
deleted file mode 100644
index 9889ea6..0000000
--- a/dev-php/PEAR-PHP_CodeSniffer/PEAR-PHP_CodeSniffer-2.6.2.ebuild
+++ /dev/null
@@ -1,29 +0,0 @@
-# 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"
-
-inherit php-pear-r1
-
-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() {
-	php-pear-r1_src_install
-	einstalldocs
-}
-
-src_test() {
-	phpunit "${S}/tests/AllTests.php" || die "test suite failed"
-}


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-07-18 12:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-23  2:19 [gentoo-commits] repo/gentoo:master commit in: dev-php/PEAR-PHP_CodeSniffer/ Michael Orlitzky
  -- strict thread matches above, loose matches on Subject: below --
2016-07-18 12:59 Brian Evans
2016-07-16 23:54 Michael Orlitzky
2016-07-15 17:57 Brian Evans
2016-02-23  2:19 Michael Orlitzky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox