1 |
commit: 0393f6a1f3c3234c505030c0f5a7b66c69612248 |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Aug 27 12:26:24 2021 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Aug 27 13:16:04 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0393f6a1 |
7 |
|
8 |
dev-php/theseer-Autoload: bump to v1.26.3 |
9 |
|
10 |
Package-Manager: Portage-3.0.22, Repoman-3.0.3 |
11 |
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> |
12 |
|
13 |
dev-php/theseer-Autoload/Manifest | 1 + |
14 |
.../theseer-Autoload-1.26.3.ebuild | 82 ++++++++++++++++++++++ |
15 |
2 files changed, 83 insertions(+) |
16 |
|
17 |
diff --git a/dev-php/theseer-Autoload/Manifest b/dev-php/theseer-Autoload/Manifest |
18 |
index 8317998a990..7b4b9e48b08 100644 |
19 |
--- a/dev-php/theseer-Autoload/Manifest |
20 |
+++ b/dev-php/theseer-Autoload/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST theseer-Autoload-1.26.0.tar.gz 43119 BLAKE2B 7b2413bc2fb281472cee03010c175aae1c8304ab0629c31f09e11497bd6f46d58bae8625da610f5a513b19fc8aafc45c35be7271ba13188466f576e7b4a7392f SHA512 c8fcb3ad39c140517d695c44e6dea3797ea0135ff64246478e55cbf167e4b9fbb3e5027732c201f66b404039a313952c7125f13fdeb1cd96633dbccfdda6f143 |
23 |
+DIST theseer-Autoload-1.26.3.tar.gz 43810 BLAKE2B b2d7fe33b9663a3c324656abe63e4ae89533b773007362b546cb9401de0a8fd8f0c00f8f385c4a45c39be675d062cf5dd5a739972fc12611331065f244515d63 SHA512 00a6fbf86cc0f5958c5d0d049af0370ef510fe21a05d7dcbeb1b0771f979ea6638f5db74d913c56b10d9212a68b5d918cdfefec241b1383faf0e97b4305895bd |
24 |
|
25 |
diff --git a/dev-php/theseer-Autoload/theseer-Autoload-1.26.3.ebuild b/dev-php/theseer-Autoload/theseer-Autoload-1.26.3.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..f8aad573f6e |
28 |
--- /dev/null |
29 |
+++ b/dev-php/theseer-Autoload/theseer-Autoload-1.26.3.ebuild |
30 |
@@ -0,0 +1,82 @@ |
31 |
+# Copyright 1999-2021 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=8 |
35 |
+ |
36 |
+MY_PN="Autoload" |
37 |
+ |
38 |
+DESCRIPTION="PHP Autoload Builder" |
39 |
+HOMEPAGE="https://github.com/theseer/Autoload" |
40 |
+SRC_URI="https://github.com/theseer/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
41 |
+ |
42 |
+LICENSE="BSD" |
43 |
+SLOT="0" |
44 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86" |
45 |
+IUSE="test" |
46 |
+RESTRICT="!test? ( test )" |
47 |
+ |
48 |
+CDEPEND="dev-lang/php:*[cli] |
49 |
+ >=dev-php/theseer-DirectoryScanner-1.3 |
50 |
+ <dev-php/theseer-DirectoryScanner-2 |
51 |
+ >=dev-php/zetacomponents-Base-1.8 |
52 |
+ <dev-php/zetacomponents-Base-2 |
53 |
+ >=dev-php/zetacomponents-ConsoleTools-1.7.1 |
54 |
+ <dev-php/zetacomponents-ConsoleTools-2" |
55 |
+ |
56 |
+BDEPEND="${CDEPEND} |
57 |
+ test? ( |
58 |
+ >=dev-php/phpunit-8 |
59 |
+ <dev-php/phpunit-9 |
60 |
+ )" |
61 |
+ |
62 |
+RDEPEND="${CDEPEND}" |
63 |
+ |
64 |
+PATCHES=( "${FILESDIR}"/${PN}-1.26.0-autoload.php.patch ) |
65 |
+ |
66 |
+S="${WORKDIR}/${MY_PN}-${PV}" |
67 |
+ |
68 |
+src_prepare() { |
69 |
+ default |
70 |
+ |
71 |
+ # Set version |
72 |
+ sed -i \ |
73 |
+ -e "s/%development%/${PV}/" \ |
74 |
+ phpab.php \ |
75 |
+ composer/bin/phpab \ |
76 |
+ || die |
77 |
+ |
78 |
+ cp --target-directory src/templates/ci \ |
79 |
+ "${FILESDIR}"/fedora.php.tpl \ |
80 |
+ "${FILESDIR}"/fedora2.php.tpl \ |
81 |
+ || die |
82 |
+ |
83 |
+ # Mimick layout to bootstrap phpab |
84 |
+ mkdir --parents \ |
85 |
+ vendor/theseer/directoryscanner \ |
86 |
+ vendor/zetacomponents/base \ |
87 |
+ vendor/zetacomponents/console-tools \ |
88 |
+ || die |
89 |
+ |
90 |
+ ln -s /usr/share/php/TheSeer/DirectoryScanner vendor/theseer/directoryscanner/src || die |
91 |
+ ln -s /usr/share/php/ezc/Base vendor/zetacomponents/base/src || die |
92 |
+ ln -s /usr/share/php/ezc/ConsoleTools vendor/zetacomponents/console-tools/src || die |
93 |
+ |
94 |
+ ./phpab.php \ |
95 |
+ --output src/autoload.php \ |
96 |
+ --template "${FILESDIR}"/autoload.php.tpl \ |
97 |
+ --basedir src \ |
98 |
+ src || die |
99 |
+} |
100 |
+ |
101 |
+src_test() { |
102 |
+ phpunit --no-coverage --verbose || die "Unit testing failed!" |
103 |
+} |
104 |
+ |
105 |
+src_install() { |
106 |
+ insinto /usr/share/php/TheSeer/${MY_PN} |
107 |
+ doins -r src/* |
108 |
+ |
109 |
+ dobin "${S}"/composer/bin/phpab |
110 |
+ |
111 |
+ einstalldocs |
112 |
+} |