forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Package-Manager: Portage-3.0.19, Repoman-3.0.3 Signed-off-by: Thomas Deutschmann <[email protected]>
- Loading branch information
Showing
2 changed files
with
81 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
DIST composer-1.10.22.tar.gz 429521 BLAKE2B da7a340b63fd2540886e0fe9252a115bffdfdddfb9cc5063b296fa4026275390641a761260597f9f4421bfcde62c5f8c9fd4757e41a8278ff0063f905d3a5b50 SHA512 e1a9e22d3e0673a0bbdbc4a97a330e15ce2b6b9e81a6bfc97a6d5918713d02fc414a36393e8760830418d9bde0664cbbcd8e454d6c6be14db585565a3eeb452b | ||
DIST composer-2.0.13.tar.gz 497819 BLAKE2B ab51556ff65b0c2822d5419bb6dde2c775c91ed210af6ab84f272db0ea823866d75090173663d517cd36163bbe04ce06f597c670fce45b595716baaf05253d8e SHA512 b16425e0553f69c23e636cc51711e2e433125ac55a29d21c66eead4b40080379449868810e9b443996e3959feae2be6ed9c9a100bc5e3f84d210654dd160887f | ||
DIST composer-2.0.14.tar.gz 498661 BLAKE2B 0b454ed6a00b5cab169a4ff82e9a3d7ceb0d885bd1fe8f70ed495bc28e13a93f477c24df7d9510d0611941addc894d914b6856ef823762f0aeb596fef9332526 SHA512 7eb87f8454d38a091bf97ad470c41f6d1b82bc153618312093935d2b7b5890bf3d1eba25f9bd8e46c5f8ae462729e85ea19eb03184a4484332694a6369a82917 | ||
DIST composer-2.1.1.tar.gz 513391 BLAKE2B 9177eb7d1acfb3557dde0382e0d0b6fd367a16f4c2de30739c40a1fae396e7f188173c5ef9356c6f55922457ea52c7c3e19e9040c37e86fdb4575016aac07808 SHA512 22105ab3f831ab89cf80e247c6e6f6263f3116a24394b9367b7e7c1e1aebfdcf9bb833add4763c34c621714dd8f22c87327ccf6c8eeef113f753ba800a111a5c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
# 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" | ||
|
||
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.10 | ||
>=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 | ||
} |