Gentoo Archives: gentoo-commits

From: Brian Evans <grknight@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-php/PHP_CodeSniffer/
Date: Fri, 31 Jan 2020 19:00:56
Message-Id: 1580497229.f948465890cd496e876e4b5266c9b4743731d0fa.grknight@gentoo
1 commit: f948465890cd496e876e4b5266c9b4743731d0fa
2 Author: Brian Evans <grknight <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jan 31 19:00:29 2020 +0000
4 Commit: Brian Evans <grknight <AT> gentoo <DOT> org>
5 CommitDate: Fri Jan 31 19:00:29 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f9484658
7
8 dev-php/PHP_CodeSniffer: Drop old
9
10 Signed-off-by: Brian Evans <grknight <AT> gentoo.org>
11
12 dev-php/PHP_CodeSniffer/Manifest | 2 -
13 .../PHP_CodeSniffer/PHP_CodeSniffer-3.2.1.ebuild | 52 ----------------------
14 .../PHP_CodeSniffer/PHP_CodeSniffer-3.4.2.ebuild | 52 ----------------------
15 3 files changed, 106 deletions(-)
16
17 diff --git a/dev-php/PHP_CodeSniffer/Manifest b/dev-php/PHP_CodeSniffer/Manifest
18 index 278d5d0351b..586511271be 100644
19 --- a/dev-php/PHP_CodeSniffer/Manifest
20 +++ b/dev-php/PHP_CodeSniffer/Manifest
21 @@ -1,3 +1 @@
22 -DIST PHP_CodeSniffer-3.2.1.tgz 554343 BLAKE2B a43e253e7cdf6085ff1cfdec110878c99b61a69d80415a40cf670b7ce9ddce82f7254c34995c67084d5aa7aef8d775e6cfef5e9fcab90771f09244c1442e319d SHA512 69a4d70c6a567d262142f7f3d42507a7501ca3d5213f5b90d5893863e3d75e947a7b41e8bb08e85975677b606522b8f73df33dd35cde85c28016389f3c2ae63c
23 -DIST PHP_CodeSniffer-3.4.2.tgz 637880 BLAKE2B 1c919f92f0b3532f3568014a923bb644a845950587972d12c5e02885b3e8e4b2c334bd7ee8412ebc84527072b64737ea3c59ad3ba145a597ef8cfd71360717e9 SHA512 6236e3f9899d8f4637314f359a8db44835140d0292ea02b56b5e2e55ea8739841648ee03c3f25bf4df64577237b6bc1c3d0999d5452b9f292ef019347ecd41f5
24 DIST PHP_CodeSniffer-3.5.4.tgz 697668 BLAKE2B f5915bcb73c0db0d8dcab3eda5ab647268888e490d244568f0d0e7fff38c4764cfe62fcc79dabe8095adcef56b1e6d0367d46c36b18d0c4e0fb04a048c697737 SHA512 3e8024aac18111741637f014629eeaf5863b2f080a673e5b379a676fafb69859d1889ae13289b0149a9810641b0a140123a970ae1178fcd2cf6da1c414233bfd
25
26 diff --git a/dev-php/PHP_CodeSniffer/PHP_CodeSniffer-3.2.1.ebuild b/dev-php/PHP_CodeSniffer/PHP_CodeSniffer-3.2.1.ebuild
27 deleted file mode 100644
28 index d993d514bb7..00000000000
29 --- a/dev-php/PHP_CodeSniffer/PHP_CodeSniffer-3.2.1.ebuild
30 +++ /dev/null
31 @@ -1,52 +0,0 @@
32 -# Copyright 1999-2019 Gentoo Authors
33 -# Distributed under the terms of the GNU General Public License v2
34 -
35 -EAPI=6
36 -
37 -DESCRIPTION="Detect violations of PHP code standards"
38 -HOMEPAGE="https://github.com/squizlabs/PHP_CodeSniffer"
39 -
40 -# The test suite isn't part of the Github tarball at the moment. Keep an
41 -# eye on https://github.com/squizlabs/PHP_CodeSniffer/issues/548
42 -SRC_URI="http://download.pear.php.net/package/${P}.tgz"
43 -
44 -LICENSE="BSD"
45 -SLOT="0"
46 -KEYWORDS="~amd64 ~x86"
47 -IUSE="test"
48 -RESTRICT="!test? ( test )"
49 -
50 -DEPEND="test? ( >=dev-php/phpunit-4 )"
51 -RDEPEND="dev-lang/php:*[cli,tokenizer,xmlwriter]"
52 -
53 -DOCS=( CONTRIBUTING.md README.md )
54 -
55 -src_prepare() {
56 - sed -i "s~@data_dir@~${EPREFIX}/usr/share/php/data~" src/Config.php || die
57 - eapply_user
58 -}
59 -
60 -src_install() {
61 - local MY_PN="PHP/CodeSniffer" script
62 - # The PEAR eclass would install everything into the wrong location.
63 - insinto "/usr/share/php/${MY_PN}"
64 - doins -r src autoload.php
65 -
66 - insinto "/usr/share/php/data/${MY_PN}"
67 - doins CodeSniffer.conf.dist
68 - # These load code via relative paths, so they have to be symlinked
69 - # and not dobin'd.
70 - exeinto "/usr/share/php/${MY_PN}/bin"
71 - for script in phpcbf phpcs; do
72 - doexe "bin/${script}"
73 - dosym "../share/php/${MY_PN}/bin/${script}" "/usr/bin/${script}"
74 - done
75 -
76 - einstalldocs
77 -}
78 -
79 -src_test() {
80 - # The test suite will fail if date.timezone isn't set in php.ini.
81 - phpunit -d date.timezone=UTC tests/AllTests.php \
82 - || die "test suite failed"
83 -}
84
85 diff --git a/dev-php/PHP_CodeSniffer/PHP_CodeSniffer-3.4.2.ebuild b/dev-php/PHP_CodeSniffer/PHP_CodeSniffer-3.4.2.ebuild
86 deleted file mode 100644
87 index 792602dd38d..00000000000
88 --- a/dev-php/PHP_CodeSniffer/PHP_CodeSniffer-3.4.2.ebuild
89 +++ /dev/null
90 @@ -1,52 +0,0 @@
91 -# Copyright 1999-2019 Gentoo Authors
92 -# Distributed under the terms of the GNU General Public License v2
93 -
94 -EAPI=7
95 -
96 -DESCRIPTION="Detect violations of PHP code standards"
97 -HOMEPAGE="https://github.com/squizlabs/PHP_CodeSniffer"
98 -
99 -# The test suite isn't part of the Github tarball at the moment. Keep an
100 -# eye on https://github.com/squizlabs/PHP_CodeSniffer/issues/548
101 -SRC_URI="http://download.pear.php.net/package/${P}.tgz"
102 -
103 -LICENSE="BSD"
104 -SLOT="0"
105 -KEYWORDS="~amd64 ~x86"
106 -IUSE="test"
107 -RESTRICT="!test? ( test )"
108 -
109 -RDEPEND="dev-lang/php:*[cli,tokenizer,xmlwriter]"
110 -DEPEND="test? ( >=dev-php/phpunit-4 ${RDEPEND} )"
111 -
112 -DOCS=( CONTRIBUTING.md README.md )
113 -
114 -src_prepare() {
115 - sed -i "s~@data_dir@~${EPREFIX}/usr/share/php/data~" src/Config.php || die
116 - eapply_user
117 -}
118 -
119 -src_install() {
120 - local MY_PN="PHP/CodeSniffer" script
121 - # The PEAR eclass would install everything into the wrong location.
122 - insinto "/usr/share/php/${MY_PN}"
123 - doins -r src autoload.php
124 -
125 - insinto "/usr/share/php/data/${MY_PN}"
126 - doins CodeSniffer.conf.dist
127 - # These load code via relative paths, so they have to be symlinked
128 - # and not dobin'd.
129 - exeinto "/usr/share/php/${MY_PN}/bin"
130 - for script in phpcbf phpcs; do
131 - doexe "bin/${script}"
132 - dosym "../share/php/${MY_PN}/bin/${script}" "/usr/bin/${script}"
133 - done
134 -
135 - einstalldocs
136 -}
137 -
138 -src_test() {
139 - # The test suite will fail if date.timezone isn't set in php.ini.
140 - phpunit -d date.timezone=UTC tests/AllTests.php \
141 - || die "test suite failed"
142 -}