diff options
author | Joonas Niilola <juippis@gentoo.org> | 2021-03-20 12:44:41 +0200 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2021-03-20 12:46:46 +0200 |
commit | b19faa26db1135f344459f68be98a67dd2410bed (patch) | |
tree | 2e528b9404c5becb553a8828ebdd72ee73d9b143 /dev-php | |
parent | app-mobilephone/gnokii: drop 0.6.31-r1, 0.6.31-r2 (diff) | |
download | gentoo-b19faa26db1135f344459f68be98a67dd2410bed.tar.gz gentoo-b19faa26db1135f344459f68be98a67dd2410bed.tar.bz2 gentoo-b19faa26db1135f344459f68be98a67dd2410bed.zip |
Revert "dev-php/composer: drop 1.10.20, 2.0.9"
This reverts commit cd1f6cea67f50569e740ef2b6e200487e23a25e3.
Stable-request, #754018
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'dev-php')
-rw-r--r-- | dev-php/composer/Manifest | 2 | ||||
-rw-r--r-- | dev-php/composer/composer-1.10.20.ebuild | 48 | ||||
-rw-r--r-- | dev-php/composer/composer-2.0.9.ebuild | 76 |
3 files changed, 126 insertions, 0 deletions
diff --git a/dev-php/composer/Manifest b/dev-php/composer/Manifest index 5fa7adc864c2..be4b662322ef 100644 --- a/dev-php/composer/Manifest +++ b/dev-php/composer/Manifest @@ -1 +1,3 @@ +DIST composer-1.10.20.tar.gz 429016 BLAKE2B 29dcf1e32974230075e56c9b11e53316a1bada9a6ccf43f3357fc39577abadde566df962bb9bf92cc9806a012fbd70c18aba5daee87090fd10de273643d92ce7 SHA512 5b85ebc6a0612c01bd2dd6f6a57526581a821c1a45163ef85511bd0e629b10dc464776b56fe33be192b2a3f07ce818dc40cf2305d9f65ee10287b2265e198cca DIST composer-2.0.11.tar.gz 494980 BLAKE2B 7095b27ff770c890261a622d2b96febeca226fa307fe14d74df0e723fdf2ade8b04ceb85a25317f4f6b2f5cfc9dce27223738e61a734d6b4c3b4069c03ad551a SHA512 7f2429b4cf0dd237b17d393837e18e12886a9b0641130c8d6e490b37f85b8beee54a2b58003e63b7b157104edf70dff211ca44255ee60bf904b3fb7d57f186d2 +DIST composer-2.0.9.tar.gz 493134 BLAKE2B f08818ec05aeebd79501e221b9cef10425c7dd60b9aca17ca8dad2f6967258d6b1a8d0d1b383b0c7dd1214ce6416f666bc30785bcb5978c66051ef2e03d17304 SHA512 4953bcc0d2e9ae61ebbb3615c262ac05762fa0165db2114118eb5c2bb014bc4341b07c3b8739575feacaad92d2460b89486b49f4eb49b80ce4a9de36a1152b48 diff --git a/dev-php/composer/composer-1.10.20.ebuild b/dev-php/composer/composer-1.10.20.ebuild new file mode 100644 index 000000000000..d8c51c550e91 --- /dev/null +++ b/dev-php/composer/composer-1.10.20.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +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" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-lang/php:*[curl] + >=dev-php/ca-bundle-1.1.3 + >=dev-php/psr-log-1.1.0 + dev-php/fedora-autoloader + >=dev-php/json-schema-5.2.10 + >=dev-php/jsonlint-1.7.1 + >=dev-php/phar-utils-1.0.1 + >=dev-php/semver-1.4.2 + >=dev-php/spdx-licenses-1.5.0 + >=dev-php/symfony-console-2.8.48 + >=dev-php/symfony-filesystem-2.8.48 + >=dev-php/symfony-finder-2.8.49 + >=dev-php/symfony-process-2.8.48 + >=dev-php/xdebug-handler-1.3.1" + +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 src res LICENSE + + insinto "/usr/share/${PN}/vendor" + newins "${FILESDIR}"/autoload-r1.php autoload.php + + 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 +} diff --git a/dev-php/composer/composer-2.0.9.ebuild b/dev-php/composer/composer-2.0.9.ebuild new file mode 100644 index 000000000000..dfdecde74bed --- /dev/null +++ b/dev-php/composer/composer-2.0.9.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +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" + +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.10 + >=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-1.1" + +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/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 +} |