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
+3
View File
@@ -0,0 +1,3 @@
DIST phpunit-php-timer-8.0.0.tar.gz 6019 BLAKE2B a19984cbd4a2565c7c1868c835007a82baa81bdda3463edcb75c031870d1ab19bcd4d8c0850a9dbf3d29dbd52e7d9616802a9f54ed993458ae4ffd26f37b232a SHA512 b13b4b955d168e3177cfc797506e782b4c8bd70fbba5f794b9c7042e402cae1ba5d1a4ca08af680f7510e32e1e7749824bf1250ba634c0fcd3ea042cf4f5a7f2
EBUILD phpunit-php-timer-8.0.0.ebuild 1146 BLAKE2B 0213f9e8f861b531d198b7e948a20db1f46542dd244d33e40adc7ecdf10e1acef4fbf5662855eae0f254f4a0d6f518a6c79456cdcbd3c5834ac7f0e38d0faf56 SHA512 a62d7816f34b57e8ae1bc93d5c897d45147ac97954ac361a9b69a28f5d19a0bfb038b9a41afc5ff6cf3bae4534bf984101177f54d2263e6219a3e70b27d81fbd
MISC metadata.xml 630 BLAKE2B 5ac145018b8d1b8770b2bef43ad4c64ef32dd2856ee2431a531bd8fcfaf0fc787edd311e1ced6a7a7c3a82853e165d5ed862e2826b4405e94132fe7aa0e1db46 SHA512 ee624f504efd12c83ad26cc0a600af820942865664e2ab3d55887f28b1fddd015c13702035352c0dcd8a6f34bddbb82b6c99d1572825b7017f241935ec834fed
+19
View File
@@ -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 utility class for timing things,
factored out of PHPUnit into a stand-alone component.
</longdescription>
<upstream>
<remote-id type="github">sebastianbergmann/php-timer</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="Utility class for timing"
HOMEPAGE="https://github.com/sebastianbergmann/php-timer"
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/Timer
doins -r src/.
}