1 |
commit: 110f7ca5828a08980e8fa472e30149536e382084 |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 1 19:11:34 2021 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 1 19:15:51 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=110f7ca5 |
7 |
|
8 |
dev-php/composer: bump to v2.0.9 |
9 |
|
10 |
Closes: https://github.com/gentoo/gentoo/pull/18047 |
11 |
Package-Manager: Portage-3.0.14, Repoman-3.0.2 |
12 |
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> |
13 |
|
14 |
dev-php/composer/Manifest | 1 + |
15 |
dev-php/composer/composer-2.0.9.ebuild | 76 +++++++++++++++++++++++++++++++++ |
16 |
dev-php/composer/files/autoload.php.tpl | 12 ++++++ |
17 |
3 files changed, 89 insertions(+) |
18 |
|
19 |
diff --git a/dev-php/composer/Manifest b/dev-php/composer/Manifest |
20 |
index 3ad3f0177a3..c77db10c384 100644 |
21 |
--- a/dev-php/composer/Manifest |
22 |
+++ b/dev-php/composer/Manifest |
23 |
@@ -1,2 +1,3 @@ |
24 |
DIST composer-1.10.15.tar.gz 427919 BLAKE2B 38d2e1c795385dd13bedbf5283cf76b04efb54db8dc72eff05370b9505382e2e43f10e1528f148186edb759a098b948d1fee36ac99ab6a5591858723100a27aa SHA512 f8544632e00a08ec75b327e6eac2c96bff60ba78c238863c8ab6b4d82239997f11140a049df0d6c0338bb7523b52fc3ea6f767b9418f75b51535ccfde44fa68c |
25 |
DIST composer-1.10.20.tar.gz 429016 BLAKE2B 29dcf1e32974230075e56c9b11e53316a1bada9a6ccf43f3357fc39577abadde566df962bb9bf92cc9806a012fbd70c18aba5daee87090fd10de273643d92ce7 SHA512 5b85ebc6a0612c01bd2dd6f6a57526581a821c1a45163ef85511bd0e629b10dc464776b56fe33be192b2a3f07ce818dc40cf2305d9f65ee10287b2265e198cca |
26 |
+DIST composer-2.0.9.tar.gz 493134 BLAKE2B f08818ec05aeebd79501e221b9cef10425c7dd60b9aca17ca8dad2f6967258d6b1a8d0d1b383b0c7dd1214ce6416f666bc30785bcb5978c66051ef2e03d17304 SHA512 4953bcc0d2e9ae61ebbb3615c262ac05762fa0165db2114118eb5c2bb014bc4341b07c3b8739575feacaad92d2460b89486b49f4eb49b80ce4a9de36a1152b48 |
27 |
|
28 |
diff --git a/dev-php/composer/composer-2.0.9.ebuild b/dev-php/composer/composer-2.0.9.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..dfdecde74be |
31 |
--- /dev/null |
32 |
+++ b/dev-php/composer/composer-2.0.9.ebuild |
33 |
@@ -0,0 +1,76 @@ |
34 |
+# Copyright 1999-2021 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI="7" |
38 |
+ |
39 |
+DESCRIPTION="Dependency Manager for PHP" |
40 |
+HOMEPAGE="https://github.com/composer/composer" |
41 |
+SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
42 |
+ |
43 |
+LICENSE="MIT" |
44 |
+SLOT="0" |
45 |
+KEYWORDS="~amd64 ~x86" |
46 |
+ |
47 |
+RDEPEND="dev-lang/php:*[curl] |
48 |
+ >=dev-php/ca-bundle-1.0 |
49 |
+ dev-php/fedora-autoloader |
50 |
+ >=dev-php/jsonlint-1.4 |
51 |
+ >=dev-php/json-schema-5.2.10 |
52 |
+ >=dev-php/phar-utils-1.0 |
53 |
+ >=dev-php/psr-log-1.0 |
54 |
+ >=dev-php/reactphp-promise-2.7 |
55 |
+ >=dev-php/semver-3.0 |
56 |
+ >=dev-php/spdx-licenses-1.2 |
57 |
+ >=dev-php/symfony-console-2.8.52 |
58 |
+ >=dev-php/symfony-filesystem-2.8.52 |
59 |
+ >=dev-php/symfony-finder-2.8.52 |
60 |
+ >=dev-php/symfony-process-2.8.52 |
61 |
+ >=dev-php/xdebug-handler-1.1" |
62 |
+ |
63 |
+src_prepare() { |
64 |
+ default |
65 |
+ |
66 |
+ mkdir vendor || die |
67 |
+ |
68 |
+ phpab \ |
69 |
+ --output vendor/autoload.php \ |
70 |
+ --template "${FILESDIR}"/autoload.php.tpl \ |
71 |
+ --basedir src \ |
72 |
+ src \ |
73 |
+ || die |
74 |
+ |
75 |
+ cat >> vendor/autoload.php <<EOF || die "failed to extend autoload.php" |
76 |
+ |
77 |
+// Dependencies |
78 |
+\Fedora\Autoloader\Dependencies::required([ |
79 |
+ '/usr/share/php/Composer/CaBundle/autoload.php', |
80 |
+ '/usr/share/php/Composer/Semver/autoload.php', |
81 |
+ '/usr/share/php/Composer/Spdx/autoload.php', |
82 |
+ '/usr/share/php/Composer/XdebugHandler/autoload.php', |
83 |
+ '/usr/share/php/JsonSchema/autoload.php', |
84 |
+ '/usr/share/php/Psr/Log/autoload.php', |
85 |
+ '/usr/share/php/Seld/JsonLint/autoload.php', |
86 |
+ '/usr/share/php/Seld/PharUtils/autoload.php', |
87 |
+ '/usr/share/php/Symfony/Component/Console/autoload.php', |
88 |
+ '/usr/share/php/Symfony/Component/Filesystem/autoload.php', |
89 |
+ '/usr/share/php/Symfony/Component/Finder/autoload.php', |
90 |
+ '/usr/share/php/Symfony/Component/Process/autoload.php', |
91 |
+ '/usr/share/php/React/Promise/autoload.php' |
92 |
+]); |
93 |
+EOF |
94 |
+} |
95 |
+ |
96 |
+src_install() { |
97 |
+ insinto "/usr/share/${PN}" |
98 |
+ |
99 |
+ # Composer expects the LICENSE file to be there, and the |
100 |
+ # easiest thing to do is to give it what it wants. |
101 |
+ doins -r LICENSE res src vendor |
102 |
+ |
103 |
+ exeinto "/usr/share/${PN}/bin" |
104 |
+ doexe "bin/${PN}" |
105 |
+ dosym "../share/${PN}/bin/${PN}" "/usr/bin/${PN}" |
106 |
+ |
107 |
+ dodoc CHANGELOG.md README.md doc/*.md |
108 |
+ dodoc -r doc/articles doc/faqs |
109 |
+} |
110 |
|
111 |
diff --git a/dev-php/composer/files/autoload.php.tpl b/dev-php/composer/files/autoload.php.tpl |
112 |
new file mode 100644 |
113 |
index 00000000000..b740c5593c2 |
114 |
--- /dev/null |
115 |
+++ b/dev-php/composer/files/autoload.php.tpl |
116 |
@@ -0,0 +1,12 @@ |
117 |
+<?php |
118 |
+// @codingStandardsIgnoreFile |
119 |
+// @codeCoverageIgnoreStart |
120 |
+require_once 'Fedora/Autoloader'.'/autoload.php'; |
121 |
+ |
122 |
+\Fedora\Autoloader\Autoload::addClassMap( |
123 |
+ array( |
124 |
+ ___CLASSLIST___, |
125 |
+ ), |
126 |
+ __DIR__ . '/../src' |
127 |
+); |
128 |
+// @codeCoverageIgnoreEnd |