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 146 BLAKE2B 74b8209fd1bc3730ffe1c69b4a0137f890e87a0c6d19aa0faa465623add44e42dad67f576461ab79fae5431b1bba6114f64ca106a0adf3142fcb4f3d85214140 SHA512 157e4adb0aaa4fb11d83379a5ade41326c54b8a1e377ae573af50926dfa51cc6342ba4af983c8ff5b7af01316aa5c81105254a4ca9cb97008a18cfa28c6757d2
DIST sebastian-object-reflector-5.0.0.tar.gz 3905 BLAKE2B 710f581a2b69d0314fb43723f637011d94c7a1c83d51faa1ff603236cbd6fddc6dae91af929934af73b19649e0130083d869d27f2dc215f43a87fc2abbdc4645 SHA512 4e0aeaa5c0e451bbe8c59e7d49204260a7d4dfdff833882847a1bb34987f64daea961e4accc4d6baa9a761c5a71454df7687f8c21751bd307ce118856d2b15a4
EBUILD sebastian-object-reflector-5.0.0.ebuild 1272 BLAKE2B f782c7ab60586a94c436d13463162d47813da0d41a72eff6825a4c0fb24ca04729d10c922bbac2a9d300615da595df209d5cdd7d7cb3939dab1854823b6bb536 SHA512 4fad4df573bfd61424597c60d04b6e2ef6b5ad84e795f4dd4faa7f656569cf4673738a18a942f7630833f67a25755407a06a9702fb95c9b6f969796416912aca
MISC metadata.xml 670 BLAKE2B 920bb9ee5e5a803fdd8e59416e6f21601a647a49d7fb7d7e5dd09b404a51f95fc279b175e27888eafe803d128adaf64cb7e194cedcf88a90dd7806344bf0c9aa SHA512 84d8ccc0a8d67d697cee3653cd9086e35184158f48cdd59fdcca9c89fb2de9e1e0c760a75a74828ae563dd6a4f6ecabf9d95e9224b021bcaed8fcb1268fb5a64
@@ -0,0 +1,8 @@
<?php
require_once 'Fedora/Autoloader/autoload.php';
\Fedora\Autoloader\Dependencies::required([
'tests/autoload.php',
'src/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, which allows reflection of
object properties, including inherited and private as well as protected ones.
</longdescription>
<upstream>
<remote-id type="github">sebastianbergmann/object-reflector</remote-id>
</upstream>
</pkgmetadata>
@@ -0,0 +1,50 @@
# 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="Allows reflection of object attributes"
HOMEPAGE="https://github.com/sebastianbergmann/object-reflector"
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 "${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/ObjectReflector
doins -r src/.
}