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
@@ -0,0 +1,4 @@
AUX autoload.php 191 BLAKE2B e19bc24578e9e3ce08a5e7a4f5839f7637108eb585fae08886ae7a641c086fa42fee2ca92e484693c7df2da48d036bdf4181a22adbd69ef772c4c9225a39f198 SHA512 f3f928b908019f8fb32599d832cdd41ea1c70cd7c9f322c5a40833a0a75aa8981d8d4bd5242c04f1e37a85de647ce5f6961be86829e06457f419fd03dd2fc43c
DIST sebastian-object-enumerator-7.0.0.tar.gz 4197 BLAKE2B 1f50c9340240c2085b957071fc4bd1daee20e3630ebc9b6e5061b064a4051d4a39877fd1172f979c12926a00b8f5314f7fc6e5a3bfe036867223853436fd98e0 SHA512 2b3c93ffbfd8706b8169cc7cc339ad089c1bd05f1cebe3db26cdafdaebaca3b17fa61c3e3424f524f5c1ebd5714189a23b9419fa9b27ec9b92437e9a8e571d6a
EBUILD sebastian-object-enumerator-7.0.0.ebuild 1353 BLAKE2B f2ae0371de4fa88652ba1f79de3babe0bfa47ba0b208cafdffe4dce3facf389fc723cbec8ecfe9951982b1bc8715deaa75137e897dcd10edbc9472a0b7f3f951 SHA512 6c163a444b0e5ae06325d98c2d99fee219aa4f061b9b6d1b3c8b135a79bb8a03c6204d9f964c8912fa51e5c7eb33709b7e344679199da972147e32d63e1a9441
MISC metadata.xml 666 BLAKE2B 26336cb1c05357dd8f54ec64295179e7ea0884df77cfe6485760c41d988a76de41d516ec589707c5c2e59fa0447a2e8ae0bcf6bb4dcdb55b7cfe88b9da03078d SHA512 4be7ee61942ee65aa9215e0b314e9a684979c4d39c7946c781b0cd7793834fcb520e5fced62aee32dc25c8628838dcc1dc1ac80886b19baf606f428982657b58
@@ -0,0 +1,8 @@
<?php
require_once 'Fedora/Autoloader/autoload.php';
\Fedora\Autoloader\Dependencies::required([
'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 with capabilities to travers
array structures and object graphs to enumerate all referenced objects.
</longdescription>
<upstream>
<remote-id type="github">sebastianbergmann/object-enumerator</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="Traverses array structures and object graphs"
HOMEPAGE="https://github.com/sebastianbergmann/object-enumerator"
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:*
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/ObjectEnumerator
doins -r src/.
}