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,3 @@
DIST phpunit-php-file-iterator-6.0.0.tar.gz 6619 BLAKE2B c68587f712fea9e1b8ecec68e08b19425627dd977a8c85e7af2caa716d9ece27c21fb2f8c1518ee0c90ae8d9b0537602dcfc589067eef99aa44cba37a8c93000 SHA512 0dc5e1888af2fa850f11218431956f33b52211fa0cb36854404794e0dc7e547330812ba0800223ba33a044294c716b917a225d04b872597c03e4bedd4d9496b7
EBUILD phpunit-php-file-iterator-6.0.0.ebuild 1185 BLAKE2B 7eee7e8d97d09091da12b7dc6bfad5051493da496fce9c616d02c90cb669cf16d2e9c1405ad1143eb21bfcb6f151f46565732ef55a0bfc4b74df91383c0407e3 SHA512 b92477578566066a67ac3d090284b42f2c6cb0205a958e9556ba884bb283a81db0e37e894c1b640498e38995b8471f407e50df9e8374a2f737bf7290fd16a4be
MISC metadata.xml 244 BLAKE2B 26c05f44e89edbff685de75ddc9dc304280aa4b0ff3381f76b2e35d6c54fa2ad92820da7c93a9cdf7cf83d3ebe9823412a69db50a06c7cbfdd681176ae9e28c6 SHA512 0b28ce4905045269a1f9d766071a7317e80684a010ceed404d45c1b232d9eccbfbb34599ec5187fd44b54c3ac15cd2b8c6e625bc196e956120323a5ae74d2732
@@ -0,0 +1,7 @@
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<upstream>
<remote-id type="github">sebastianbergmann/php-file-iterator</remote-id>
</upstream>
</pkgmetadata>
@@ -0,0 +1,49 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
MY_PN="${PN//phpunit-/}"
MY_P="${MY_PN}-${PV}"
DESCRIPTION="FilterIterator implementation that filters files"
HOMEPAGE="https://github.com/sebastianbergmann/php-file-iterator"
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"
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 /dev/null \
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"
phpunit --testdox || die "phpunit failed"
}
src_install() {
einstalldocs
insinto /usr/share/php/SebastianBergmann/FileIterator
doins -r src/.
}