summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-php')
-rw-r--r--dev-php/composer/Manifest1
-rw-r--r--dev-php/composer/composer-2.1.9.ebuild80
2 files changed, 81 insertions, 0 deletions
diff --git a/dev-php/composer/Manifest b/dev-php/composer/Manifest
index b1bf7ba7c005..85b0a4b68b5f 100644
--- a/dev-php/composer/Manifest
+++ b/dev-php/composer/Manifest
@@ -7,3 +7,4 @@ DIST composer-2.1.3.tar.gz 514147 BLAKE2B 3abf64aceea5b95b72419b60fc74d23e42c652
DIST composer-2.1.5.tar.gz 515243 BLAKE2B 078b14727aba1d6278e046e0a1a7b90edae6532ae5874093824db39bb10a0f663543944fe0bb17ddad3dbf40736eef1bb1a8049f5e4dd557f6f01e0d854c213b SHA512 cd4f166d3d1ca7edc8b473ac47775caca98dc2a8bc758b34e6fdd4669ffbe0aa71f900a366e40ff73f830aa602377a5ef3f40022006138e216f0127c75120b96
DIST composer-2.1.6.tar.gz 517576 BLAKE2B 27a7c76d36a0c86110c2e39ba5977b7ea04bd10897dda4b563edad9cdf2b7e134d3545e5efa5eeb1518f1f0d5366c29de7fb1d6e9032b567195676de121bedbd SHA512 244d64c3c1eadb58ea945e8d448c3fdcf83a6bb3c09eede63c36a6e11f7b2131a797a9ca10c5447bf868ea3439681f9f9079933e26953b5387b7e0c3333480e2
DIST composer-2.1.8.tar.gz 522462 BLAKE2B 12fb95088146e56568b05ad13ae7630b664337ca338d4cb3e8cc126bc90173a21da6f8e4d2cd883ad15a7b67670bae297a6e02518de3dbaf9d980a74afd6c60c SHA512 00816294a2837934a846a672d34ac830ae36b063d6ffb57d883f553b69cf205822d5d9994c3f6fa67e324ff9d47740bb1b843ad68cf911b220f411cc0b0fe1d2
+DIST composer-2.1.9.tar.gz 523638 BLAKE2B fa5d9ce1d2bc65a8c92f9651f7b4fe4455d16d39798e79f43027f2617bd5d7245399f5a9bb772ff8fc64f055919836a5c575c7d0452657544495da547dbad447 SHA512 38377bde788443df234e2893efec90705dae0d4b7ee3b00f60c156e6471ba4c98c8ee64709ee1a06315702129dd716904f02439206a0a023ac2142359c6765cc
diff --git a/dev-php/composer/composer-2.1.9.ebuild b/dev-php/composer/composer-2.1.9.ebuild
new file mode 100644
index 000000000000..1eb058b7a474
--- /dev/null
+++ b/dev-php/composer/composer-2.1.9.ebuild
@@ -0,0 +1,80 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="8"
+
+DESCRIPTION="Dependency Manager for PHP"
+HOMEPAGE="https://github.com/composer/composer"
+SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+BDEPEND="dev-php/theseer-Autoload"
+
+RDEPEND="dev-lang/php:*[curl]
+ >=dev-php/ca-bundle-1.0
+ dev-php/fedora-autoloader
+ >=dev-php/jsonlint-1.4
+ >=dev-php/json-schema-5.2.11
+ >=dev-php/metadata-minifier-1.0
+ >=dev-php/phar-utils-1.0
+ >=dev-php/psr-log-1.0
+ >=dev-php/reactphp-promise-2.7
+ >=dev-php/semver-3.0
+ >=dev-php/spdx-licenses-1.2
+ >=dev-php/symfony-console-2.8.52
+ >=dev-php/symfony-filesystem-2.8.52
+ >=dev-php/symfony-finder-2.8.52
+ >=dev-php/symfony-process-2.8.52
+ >=dev-php/xdebug-handler-2"
+
+src_prepare() {
+ default
+
+ mkdir vendor || die
+
+ phpab \
+ --output vendor/autoload.php \
+ --template "${FILESDIR}"/autoload.php.tpl \
+ --basedir src \
+ src \
+ || die
+
+ cat >> vendor/autoload.php <<EOF || die "failed to extend autoload.php"
+
+// Dependencies
+\Fedora\Autoloader\Dependencies::required([
+ '/usr/share/php/Composer/CaBundle/autoload.php',
+ '/usr/share/php/Composer/MetadataMinifier/autoload.php',
+ '/usr/share/php/Composer/Semver/autoload.php',
+ '/usr/share/php/Composer/Spdx/autoload.php',
+ '/usr/share/php/Composer/XdebugHandler/autoload.php',
+ '/usr/share/php/JsonSchema/autoload.php',
+ '/usr/share/php/Psr/Log/autoload.php',
+ '/usr/share/php/Seld/JsonLint/autoload.php',
+ '/usr/share/php/Seld/PharUtils/autoload.php',
+ '/usr/share/php/Symfony/Component/Console/autoload.php',
+ '/usr/share/php/Symfony/Component/Filesystem/autoload.php',
+ '/usr/share/php/Symfony/Component/Finder/autoload.php',
+ '/usr/share/php/Symfony/Component/Process/autoload.php',
+ '/usr/share/php/React/Promise/autoload.php'
+]);
+EOF
+}
+
+src_install() {
+ insinto "/usr/share/${PN}"
+
+ # Composer expects the LICENSE file to be there, and the
+ # easiest thing to do is to give it what it wants.
+ doins -r LICENSE res src vendor
+
+ exeinto "/usr/share/${PN}/bin"
+ doexe "bin/${PN}"
+ dosym "../share/${PN}/bin/${PN}" "/usr/bin/${PN}"
+
+ dodoc CHANGELOG.md README.md doc/*.md
+ dodoc -r doc/articles doc/faqs
+}