Added a lot of PHP packages for the defunct volkszaehler ebuild

This commit is contained in:
Torsten Kurbad
2025-10-09 12:09:31 +02:00
parent cba6641bde
commit 69cb537d3d
417 changed files with 8637 additions and 53 deletions
+4
View File
@@ -0,0 +1,4 @@
AUX autoload.php 246 BLAKE2B 6ad1e486735b8593cf4cbc12cae910558f0fe9d41df3179ad6348b25a3fc8e104c51c85f1b450f47bbdf4d3de5a8a7378da9b4b08a49851281ab6bd88d1e4b5f SHA512 f184d80be177ed0686f9698b762cc5c4948b70c19caa2b213b67b6aa03014a1bd6abaa85ba89875ae72404170a477836c7b456fd467f4bb73b0bb41c1360146b
DIST sebastian-global-state-8.0.2.tar.gz 7609 BLAKE2B dac35f92b78c25f7fd59589cf489f7dc318f24930cabedda8418d7241a620d47878503a1f10df195261d009dcc778999c8ef6d49112f526c5e991de27daa4956 SHA512 a05e591a8677b891adc18773bc1279b45220477430e5c37bde95ba13acc5fe3f4d1d20b3a081a23b9cd640af2276fdd0b8c7449ffbb3f71dbb9c31469d2130eb
EBUILD sebastian-global-state-8.0.2.ebuild 1332 BLAKE2B a4742ad6b35defd54d19147249bac9ebea73814066030478ce5b5a68fffa84998ebca24fe645c9384a691728d77172e24ff4836dc17732a88c20071efa8b9ca7 SHA512 84e4bdfb7e7a70e9d50c4898f5dade5c0673e3bd4dc82e750f2c77954b5ea4c93f5926e99228a717e3c6b779a32f418e37706a9596b3d011ad9df1eb17c9dba7
MISC metadata.xml 648 BLAKE2B a34f6cbe3d83cf2dac82b23393ca366019ecc9bca78ec160611039b8526717c36a3e7f057e10c400308c901d429017f070fddd8beb2418711e829a7a12687eea SHA512 48a3a2bb4f8de3c842913cff47dd695c9ce362f22a2a4f1eab34fc12d08add0e74cb666f427b08c99c0ba7febf1784e6c4f0799fbc987a637992a6280fb44350
@@ -0,0 +1,9 @@
<?php
require_once 'Fedora/Autoloader/autoload.php';
\Fedora\Autoloader\Dependencies::required([
__DIR__ . '/../tests/_fixture/SnapshotFunctions.php',
'tests/autoload.php',
'/usr/share/php/SebastianBergmann/ObjectReflector/autoload.php'
]);
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>spiderx@spiderx.dp.ua</email>
<name>Vladimir Pavljuchenkov</name>
</maintainer>
<maintainer type="project">
<email>proxy-maint@gentoo.org</email>
<name>Proxy Maintainers</name>
</maintainer>
<longdescription lang="en">
This package provides a PHP component for snapshotting of global state,
factored out of PHPUnit into a stand-alone component.
</longdescription>
<upstream>
<remote-id type="github">sebastianbergmann/global-state</remote-id>
</upstream>
</pkgmetadata>
@@ -0,0 +1,52 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
MY_PN="${PN//sebastian-/}"
MY_P="${MY_PN}-${PV}"
DESCRIPTION="Snapshotting of global state"
HOMEPAGE="https://github.com/sebastianbergmann/global-state"
SRC_URI="https://github.com/sebastianbergmann/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${MY_P}"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"
IUSE="test"
RESTRICT="test"
PROPERTIES="test_network"
RDEPEND="dev-lang/php:*[xml]
dev-php/fedora-autoloader
dev-php/sebastian-object-reflector
dev-php/sebastian-recursion-context"
BDEPEND="dev-php/theseer-Autoload
test? ( dev-php/composer
dev-php/phpunit )"
DOCS=( {ChangeLog,README}.md )
src_prepare() {
default
phpab -q -o src/autoload.php -t fedora2 src || die "phpab failed"
install -D -m 644 "${FILESDIR}"/autoload.php \
vendor/autoload.php || die "install failed"
}
src_test() {
composer require -d "${T}" --prefer-source \
--dev "${PN/-/\/}:${PV}" || die "composer failed"
cp -r "${T}"/vendor/"${PN/-/\/}"/{phpunit.xml,tests} "${S}" \
|| die "cp failed"
phpab -q -o tests/autoload.php -t fedora2 tests || die "phpab test failed"
phpunit --testdox || die "phpunit failed"
}
src_install() {
einstalldocs
insinto /usr/share/php/SebastianBergmann/GlobalState
doins -r src/.
}