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 146 BLAKE2B c055aba67e78c16354d1a0577532f3a7642c761bbcda8d9cc1e34e59ed5cdc159cfd33c718911f51614d1757f6f93eec96977ab3117500202abf350dd4e63cd3 SHA512 29d4d443bacd958a2fed78f654a7c516c536825cd313cceb13cc1b300bce505b706dd7c22df46eb176cb05b57171a6c8fe61ff1d6ba0a4276d171b35b2bf5847
DIST sebastian-comparator-7.1.3.tar.gz 11319 BLAKE2B 93ffa4542690c0eec3ab24875443b1b1e0b1ed895d43f514d3fb8be769a80f3342d45ac89377fd6421858064bb4a6157ce85a92574404e0b4cd7ecbfccc00219 SHA512 1f7cc5038b93b8957d5a63ae4aabe70ba40ed6ec7522c4b7a63cab48aca5aef6bf81cf7d06377a2a3fa518c942874c3a6ee8075b8f4ed6695d5b655599634a8f
EBUILD sebastian-comparator-7.1.3.ebuild 1419 BLAKE2B b8a4975f9d726a16bd737b8f928e4e8d867b05415d0f531e8051fe9d20be929bce8017fb35dd7c5e475f5a36156e5af42e4a7ca3eb9decb67b8d3bd907f17498 SHA512 17e6adc7f26fe635b1f7b5f256beaf3780e6d0eca9dfc6b4a24a5ece681fef77e292a6465e12d705792fd0b8021d92669160d671e09df873fb976ae6c9dcaa34
MISC metadata.xml 721 BLAKE2B eed94377a07e7d98ad7e66a26698f6d56f4e86b74226057fa272e582eb1f67dfdbc102ea2408201097380ebb55169b1708ad0e66b6d65688ddffd298eeb14b1e SHA512 61752bea627cb42953884f97811a25b0bafea08b2fdda4f0a1d7bd3da0a0ce4d5636a6d76a214a20ed3ff84e97fd1723460fef5a277455ff6a26c36c2acf695c
@@ -0,0 +1,8 @@
<?php
require_once 'Fedora/Autoloader/autoload.php';
\Fedora\Autoloader\Dependencies::required([
'src/autoload.php',
'tests/autoload.php'
]);
+22
View File
@@ -0,0 +1,22 @@
<?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 the functionality to compare
PHP values for equality.
</longdescription>
<use>
<flag name="bcmath">Enable the BCMath Arbitrary Precision Mathematics extension</flag>
</use>
<upstream>
<remote-id type="github">sebastianbergmann/comparator</remote-id>
</upstream>
</pkgmetadata>
@@ -0,0 +1,54 @@
# 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="Compare PHP values for equality"
HOMEPAGE="https://github.com/sebastianbergmann/comparator"
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="bcmath test"
REQUIRED_USE="test? ( bcmath )"
RESTRICT="test"
PROPERTIES="test_network"
RDEPEND="dev-lang/php:*[bcmath?,xml,unicode]
dev-php/fedora-autoloader
>=dev-php/sebastian-diff-6.0.2
dev-php/sebastian-exporter"
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"
# skipped 5
phpunit --bootstrap vendor/autoload.php --testdox || die "phpunit failed"
}
src_install() {
einstalldocs
insinto /usr/share/php/SebastianBergmann/Comparator
doins -r src/.
}