Added a lot of PHP packages for the defunct volkszaehler ebuild
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
DIST composer-2.8.12-vendor.tar.xz 3154644 BLAKE2B c7e00af4e31b143d391381b85ff31cb1e5f19b0d4af0b2c974f7ebb47dc612a2d4778e449fb8f5fa33853b4450d83306cf70dd017c86bfd6e4e450a3a16847f5 SHA512 69ab78439795e0f5b6e376afadf95d3780be33adba34479c5cc12c45215c186a4603d34a890b306275215292a213b8487cfaa6668f2a036e3ee504f2940bafaa
|
||||
EBUILD composer-2.8.12.ebuild 1560 BLAKE2B 032e36122468aecac02ac13414fe38da3a62165a0991217d03057e4bf31f7c55b3a4123e3afa81baea66b78b08678a835467cf067eab3085765a5ae8ecde2c7b SHA512 21362d1c62cb07e57e6e578a6bca40ef50545c242a60f3a82ce4a50e462a82d4ca5f0cfee3ce24165d6a95ff989dd3338cf72cf33c3c3e98abdb969dbb61ce51
|
||||
AUX autoload.patch 363 BLAKE2B 2b1b01f97d3b79787a5455f5d7b3664000382e1f8e30ef4ba56a06d03ae11268f839d2acad86b0fddb86e1e9ca2699e796fae5f34bb7091594ad630950d47a4a SHA512 e9818475f505cab419b9839675bffeebe92f5b4438a807af084c1928927acceeba56c5f6fa7d5a45f12c306632c66ea6510a793bb2f36694635448945f6c4f59
|
||||
AUX autoload.php.tpl 253 BLAKE2B 421f8bd3aa659c6add54e46094ee1d8806ab4fd33ee915515fbe94d241b6a1d5f222b85a720733c5e48369f3a737d5696cf4f8343df7fe809b3a7e4ec38854a1 SHA512 0cfa3e377406d7eada27c56c50b57943b096ea35ec23b2bfe1c926bc4eb276151578d3cfbfa28c76b3358875db35b9e2460204d50571da2d3df6d9a665514da9
|
||||
AUX explain-non-standard-install.patch 1028 BLAKE2B f09699159af104daf69dc8fa6d563a136c68d45bd8247f77dbdf6b62c20c47b6f027dedeb5764c639d1096549aafcf9971416263af891f9a03d66d392da89b05 SHA512 daf0943777ed945fac8039083970e6f14a915f99c34c634088bd246d1c459a3c4999a612fd3773e6ea1eac4694fbe0f1436701c235dd136e7963e4102cc43f23
|
||||
DIST composer-2.8.12.tar.gz 503906 BLAKE2B 271f1cddb10e4eba4bee928c3404635142d15ff3e8086949e8de52c2eb1e9af7a688e687f5cf26fbc40ef39203f4061a4e0fc1f0f8d1e8d73e47f6ed23c119ea SHA512 89242c538e1d342efd033febf8b9d896ebfa32df2c64ca85d37270110a8f5ab6f7888594e8052f89e6807b1c62182123120d5ac636fea096893d69566bec360a
|
||||
EBUILD composer-2.8.12.ebuild 3295 BLAKE2B e7f0b5891acb80db50143bb4edb5c84781376cebbb72dc7347b4d590a03f26730cd58787f14b07ed59b5a90573c4675dce847787deaca8631f081d1af0046a44 SHA512 73686d344f228759c616365d70327fbcbebd9225ad075b37b937dcc2331938ac3b183425a8a1b414a46697bdfbe3963165809881d44dbc310011cfdc21644cd4
|
||||
MISC metadata.xml 480 BLAKE2B c5561d06c257a47599759e704886a877d72d299c2831d695b51ca7a490014060db77345d76157bfb0342d132d3795002ccd0add2d153ffd0eb2357e7577758de SHA512 0138f952cffe57b904577199288b511bf37a7e60bc9933b09ec94ae71fe0e4dc72633ef6a9f90fc8b15b14deda3073de552fee88137779d73ceec08cf6b7090c
|
||||
|
||||
@@ -3,60 +3,105 @@
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit bash-completion-r1 git-r3
|
||||
|
||||
DESCRIPTION="Dependency Manager for PHP"
|
||||
DESCRIPTION="Composer helps you declare, manage and install dependencies of PHP projects. It ensures you have the right stack everywhere."
|
||||
HOMEPAGE="https://github.com/composer/composer"
|
||||
SRC_URI="https://raw.githubusercontent.com/inode64/inode64-overlay/main/dist/${P}-vendor.tar.xz"
|
||||
SRC_URI="https://github.com/composer/composer/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
EGIT_REPO_URI="https://github.com/${PN}/${PN}"
|
||||
EGIT_COMMIT="8413f50f097774e0601400e5599b5f38866fa3f4"
|
||||
EGIT_BRANCH="2.8"
|
||||
S="${WORKDIR}/composer-${PV}"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
IUSE="doc"
|
||||
DOCS="CHANGELOG.md README.md"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
|
||||
|
||||
src_unpack() {
|
||||
git-r3_src_unpack
|
||||
unpack ${P}-vendor.tar.xz
|
||||
}
|
||||
BDEPEND="dev-php/theseer-Autoload"
|
||||
|
||||
src_compile() {
|
||||
php --define memory_limit=-1 -d phar.readonly=Off bin/compile || die
|
||||
mv composer.phar composer
|
||||
chmod +x composer
|
||||
./composer completion bash > completion.bash || die
|
||||
}
|
||||
RDEPEND="
|
||||
>=dev-lang/php-7.4:*
|
||||
dev-php/fedora-autoloader
|
||||
dev-php/ca-bundle
|
||||
dev-php/class-map-generator
|
||||
dev-php/justinrainbow-json-schema
|
||||
dev-php/metadata-minifier
|
||||
dev-php/pcre
|
||||
dev-php/psr-log
|
||||
dev-php/react-promise
|
||||
dev-php/seld-jsonlint
|
||||
dev-php/seld-phar-utils
|
||||
dev-php/seld-signal-handler
|
||||
dev-php/semver
|
||||
dev-php/spdx-licenses
|
||||
dev-php/symfony-console
|
||||
dev-php/symfony-filesystem
|
||||
dev-php/symfony-finder
|
||||
dev-php/symfony-polyfill-php73
|
||||
dev-php/symfony-polyfill-php80
|
||||
dev-php/symfony-polyfill-php81
|
||||
dev-php/symfony-process
|
||||
dev-php/xdebug-handler
|
||||
"
|
||||
|
||||
src_test() {
|
||||
if has usersandbox ${FEATURES} || has network-sandbox ${FEATURES}; then
|
||||
ewarn "Some tests may fail with FEATURES=usersandbox or"
|
||||
ewarn "FEATURES=network-sandbox; Skipping tests because"
|
||||
ewarn "test suite would hang forever in such environments!"
|
||||
return 0;
|
||||
fi
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/autoload.patch
|
||||
"${FILESDIR}"/explain-non-standard-install.patch
|
||||
)
|
||||
|
||||
mkdir integration-test
|
||||
cd integration-test
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
../composer init \
|
||||
--no-interaction \
|
||||
--type=project \
|
||||
--name='gentoo/test' \
|
||||
--description='Composer Test Project' \
|
||||
--license='GPL-3.0-or-later' \
|
||||
--require='symfony/console:*' || die
|
||||
../composer update --no-interaction --no-progress --prefer-dist || die
|
||||
../composer validate --no-interaction || die
|
||||
mkdir vendor || die
|
||||
|
||||
phpab \
|
||||
--quiet \
|
||||
--output vendor/autoload.php \
|
||||
--template "${FILESDIR}"/autoload.php.tpl \
|
||||
--basedir src \
|
||||
src \
|
||||
|| die
|
||||
|
||||
VENDOR_DIR="${EPREFIX}/usr/share/php"
|
||||
cat >> vendor/autoload.php <<EOF || die "failed to extend autoload.php"
|
||||
|
||||
// Dependencies
|
||||
\Fedora\Autoloader\Dependencies::required([
|
||||
"${VENDOR_DIR}/Fedora/Autoloader/autoload.php",
|
||||
"${VENDOR_DIR}/Composer/CaBundle/autoload.php",
|
||||
"${VENDOR_DIR}/Composer/ClassMapGenerator/autoload.php",
|
||||
"${VENDOR_DIR}/JsonSchema/autoload.php",
|
||||
"${VENDOR_DIR}/MabeEnum/autoload.php",
|
||||
"${VENDOR_DIR}/Composer/MetadataMinifier/autoload.php",
|
||||
"${VENDOR_DIR}/Composer/Pcre/autoload.php",
|
||||
"${VENDOR_DIR}/Psr/Container/autoload.php",
|
||||
"${VENDOR_DIR}/Psr/Log/autoload.php",
|
||||
"${VENDOR_DIR}/React/Promise/autoload.php",
|
||||
"${VENDOR_DIR}/Seld/JsonLint/autoload.php",
|
||||
"${VENDOR_DIR}/Seld/PharUtils/autoload.php",
|
||||
"${VENDOR_DIR}/Seld/Signal/autoload.php",
|
||||
"${VENDOR_DIR}/Composer/Semver/autoload.php",
|
||||
"${VENDOR_DIR}/Composer/Spdx/autoload.php",
|
||||
"${VENDOR_DIR}/Symfony/Component/Console/autoload.php",
|
||||
"${VENDOR_DIR}/Symfony/Component/DeprecationContracts/autoload.php",
|
||||
"${VENDOR_DIR}/Symfony/Component/Filesystem/autoload.php",
|
||||
"${VENDOR_DIR}/Symfony/Component/Finder/autoload.php",
|
||||
"${VENDOR_DIR}/Symfony/Polyfill/Ctype/autoload.php",
|
||||
"${VENDOR_DIR}/Symfony/Polyfill/Intl/Grapheme/autoload.php",
|
||||
"${VENDOR_DIR}/Symfony/Polyfill/Intl/Normalizer/autoload.php",
|
||||
"${VENDOR_DIR}/Symfony/Polyfill/Mbstring/autoload.php",
|
||||
"${VENDOR_DIR}/Symfony/Polyfill/Php73/autoload.php",
|
||||
"${VENDOR_DIR}/Symfony/Polyfill/Php80/autoload.php",
|
||||
"${VENDOR_DIR}/Symfony/Polyfill/Php81/autoload.php",
|
||||
"${VENDOR_DIR}/Symfony/Component/Process/autoload.php",
|
||||
"${VENDOR_DIR}/Symfony/Contracts/Service/autoload.php",
|
||||
"${VENDOR_DIR}/Symfony/Component/String/autoload.php",
|
||||
"${VENDOR_DIR}/Composer/XdebugHandler/autoload.php"
|
||||
]);
|
||||
EOF
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin "${PN}"
|
||||
newbashcomp completion.bash composer
|
||||
if use doc; then
|
||||
dodoc -r doc
|
||||
fi
|
||||
insinto "/usr/share/composer"
|
||||
doins -r LICENSE res src vendor
|
||||
|
||||
exeinto "/usr/share/composer/bin"
|
||||
doexe "bin/composer"
|
||||
dosym "../share/composer/bin/composer" "/usr/bin/composer"
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
--- composer-2.5.1a/src/bootstrap.php 2022-12-22 15:33:54.000000000 +0100
|
||||
+++ composer-2.5.1/src/bootstrap.php 2023-02-19 23:15:40.433041600 +0100
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
use Composer\Autoload\ClassLoader;
|
||||
|
||||
-function includeIfExists(string $file): ?ClassLoader
|
||||
+function includeIfExists(string $file)
|
||||
{
|
||||
return file_exists($file) ? include $file : null;
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
// @codingStandardsIgnoreFile
|
||||
// @codeCoverageIgnoreStart
|
||||
require_once 'Fedora/Autoloader'.'/autoload.php';
|
||||
|
||||
\Fedora\Autoloader\Autoload::addClassMap(
|
||||
array(
|
||||
___CLASSLIST___,
|
||||
),
|
||||
__DIR__ . '/../src'
|
||||
);
|
||||
// @codeCoverageIgnoreEnd
|
||||
@@ -0,0 +1,12 @@
|
||||
diff --color -ru composer-2.7.4.orig/src/Composer/Command/DiagnoseCommand.php composer-2.7.4/src/Composer/Command/DiagnoseCommand.php
|
||||
--- composer-2.7.4.orig/src/Composer/Command/DiagnoseCommand.php 2024-04-22 21:17:03.000000000 +0200
|
||||
+++ composer-2.7.4/src/Composer/Command/DiagnoseCommand.php 2024-04-25 09:31:04.167503572 +0200
|
||||
@@ -490,7 +490,7 @@
|
||||
$repoSet = new RepositorySet();
|
||||
$installedJson = new JsonFile(__DIR__ . '/../../../vendor/composer/installed.json');
|
||||
if (!$installedJson->exists()) {
|
||||
- return '<warning>Could not find Composer\'s installed.json, this must be a non-standard Composer installation.</>';
|
||||
+ return '<warning></><comment>Composer and dependencies are managed with Portage. Checking Composer\'s vulnerabilities from composer is not supported. Please make sure to install the latest version or report missing updates to https://github.com/gentoo-php-overlay/php-overlay</>';
|
||||
}
|
||||
|
||||
$localRepo = new FilesystemRepository($installedJson);
|
||||
Reference in New Issue
Block a user