From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 97B161381F1 for ; Mon, 18 Jul 2016 12:59:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 263C721C0CC; Mon, 18 Jul 2016 12:59:55 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B26FF21C0CC for ; Mon, 18 Jul 2016 12:59:54 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C5D48340766 for ; Mon, 18 Jul 2016 12:59:51 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3F66978 for ; Mon, 18 Jul 2016 12:59:49 +0000 (UTC) From: "Brian Evans" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Brian Evans" Message-ID: <1468846770.dcd2809c9842029520fc6fce8cbbfa8b23ce172c.grknight@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-php/PEAR-PHP_CodeSniffer/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-php/PEAR-PHP_CodeSniffer/PEAR-PHP_CodeSniffer-2.6.2-r1.ebuild dev-php/PEAR-PHP_CodeSniffer/PEAR-PHP_CodeSniffer-2.6.2.ebuild X-VCS-Directories: dev-php/PEAR-PHP_CodeSniffer/ X-VCS-Committer: grknight X-VCS-Committer-Name: Brian Evans X-VCS-Revision: dcd2809c9842029520fc6fce8cbbfa8b23ce172c X-VCS-Branch: master Date: Mon, 18 Jul 2016 12:59:49 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 2b9ee58b-82f9-4dc2-8903-a4efb5df771d X-Archives-Hash: 02d3de3331eae37df1cbb0c36395c1c6 commit: dcd2809c9842029520fc6fce8cbbfa8b23ce172c Author: Brian Evans gentoo org> AuthorDate: Mon Jul 18 12:59:30 2016 +0000 Commit: Brian Evans gentoo 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" -}