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
+7
View File
@@ -0,0 +1,7 @@
AUX autoload-test.php 522 BLAKE2B 2b0bf1aa11103dd9fa9771efcbd82417a03f9e6d2b2855eccb3f225520639b6dafc377af52a1de249c113e3e834155add72a5da3a64ba94dfbdd9df62a73a300 SHA512 3cc5b174a1a7f0e30ced1d4d001b2fdc934d6fdf6a49214ab1cbc0f27a5bd7468c5a8ab5becf3714601e9e5609bc34bf9fc3ff5d938de2263713a51a6c455cd9
AUX autoload.php.tpl 1343 BLAKE2B ad0289237fcf3b5740c4fc670ce8a85c43b628b0126a6c180d1974727bb9d96303ab0f17d8da16b2b710a33ff023e464640da62768abef05e65cb9feb9dc4295 SHA512 83a36d9aed184e1e5b8ccde6332e754456066556578f3106331eb50978bc5b1e29f43224248e863213804c7a2cb74fd7cb529d7a7cf3efb5b607151c23d49ab3
AUX phpunit-10.5.27-autoload-resources.patch 945 BLAKE2B cdede4c97ad1dc16a6182ce01b12c1d7001a044ce8f57d398ac484e945b2e7e154aaca4b7c8ed79468811a527630c6b047a354e5324e9fd30ad15dd114b40d81 SHA512 a189c46c9dee338dff5efaa1eff60ffd7d7a7a34f9de92c3725d5eb1759fb50cd596a05b23c1005037bc2401ee883a2defe4763b7c539c2e116df187da4717fb
AUX phpunit-10.5.27-tests.patch 1182 BLAKE2B ad6e25b0b35d9a123df71524894d1e179e3be85083f5a5deadfa4ae8078bd0dcbf9e6feda937ea88e9bbb3baee3bb28888025cb1d9f9d7f5a19049e185905191 SHA512 44eab283d433439996e021287af1f77664ff5e19c9f1adc3dc6ac99a5412d5ccdc50f4b015077bf7a43937394b78ec31efde2ca27b43792dc0be2b20737df2c5
DIST phpunit-12.4.0.tar.gz 298865 BLAKE2B 0df13b36325564d27c549a576538fabf5db9f229b032bc7a9811a345790585951d3fbac4efacab45a438f098742034624a81f6adbb909a727c2d5fa2a1e05f50 SHA512 ef1fdc6a21e2428350c223a744c27dd012c7f326cd76df4d2be29e6a056ba8535364fcdb83396cf0afaf00b01372f237f10c41a609ca2a8947a78dd089041180
EBUILD phpunit-12.4.0.ebuild 2918 BLAKE2B 6543fcaf43284e1a6b306fcce16af3278850b033cfc30ae8e70875ea23fbfa2e5fb5e4770150ebdfdf5fed07e276e8da8512b361be25cb0e32b1c9f0cfc2e14f SHA512 258dd04d78cd05df06094179843f93fea2e0f2d6133e88dedad6ae9058eae10273c35ea0ad9a3bd659153c2d340d130db9b32d355a49150a2c4f17d8c8612c82
MISC metadata.xml 670 BLAKE2B 01da5eb83a0698bed1f0770eda62b2500eaf80cc0418f8122f4181069e7b1182bddd10b2616905368ae538010e70cbf60c546161b75e841d03499e5e6bdadfbf SHA512 058e7c4bd61f6b15d686290ea3d4edd0e591300a782a6a13017f62c5197d07601aea44a87271d26c1094972ac3107af4e5fce43917b9c7ab05c6ff01b3f76e36
+16
View File
@@ -0,0 +1,16 @@
<?php
require_once 'Fedora/Autoloader/autoload.php';
\Fedora\Autoloader\Dependencies::required([
__DIR__ . '/../tests/_files/CoveredFunction.php',
__DIR__ . '/../tests/_files/Generator.php',
__DIR__ . '/../tests/_files/NamespaceCoveredFunction.php',
'src/autoload.php',
'tests/unit/autoload.php',
'tests/_files/autoload.php',
'tests/end-to-end/execution-order/_files/autoload.php',
'tests/end-to-end/event/autoload.php',
'tests/end-to-end/regression/autoload.php',
'tests/end-to-end/testdox/autoload.php',
]);
+33
View File
@@ -0,0 +1,33 @@
<?php
require_once 'Fedora/Autoloader/autoload.php';
\Fedora\Autoloader\Autoload::addClassMap(
array(
___CLASSLIST___,
),
__DIR__
);
\Fedora\Autoloader\Dependencies::required([
__DIR__ . '/Framework/Assert/Functions.php',
'/usr/share/php/myclabs/DeepCopy/autoload.php',
'/usr/share/php/PharIo/Manifest/autoload.php',
'/usr/share/php/PharIo/Version/autoload.php',
'/usr/share/php/SebastianBergmann/CliParser/autoload.php',
'/usr/share/php/SebastianBergmann/CodeCoverage/autoload.php',
'/usr/share/php/SebastianBergmann/CodeUnit/autoload.php',
'/usr/share/php/SebastianBergmann/Comparator/autoload.php',
'/usr/share/php/SebastianBergmann/Diff/autoload.php',
'/usr/share/php/SebastianBergmann/Environment/autoload.php',
'/usr/share/php/SebastianBergmann/Exporter/autoload.php',
'/usr/share/php/SebastianBergmann/FileIterator/autoload.php',
'/usr/share/php/SebastianBergmann/GlobalState/autoload.php',
'/usr/share/php/SebastianBergmann/Invoker/autoload.php',
'/usr/share/php/SebastianBergmann/ObjectEnumerator/autoload.php',
'/usr/share/php/SebastianBergmann/Template/autoload.php',
'/usr/share/php/SebastianBergmann/Timer/autoload.php',
'/usr/share/php/SebastianBergmann/Type/autoload.php',
'/usr/share/php/SebastianBergmann/Version/autoload.php',
'/usr/share/php/staabm/SideEffectsDetector/autoload.php',
]);
@@ -0,0 +1,21 @@
--- ../phpunit 2024-08-19 17:53:05.740868439 +0300
+++ ../phpunit 2024-08-19 17:53:48.430024297 +0300
@@ -47,7 +47,7 @@
unset($GLOBALS['_composer_autoload_path']);
} else {
- foreach (array(__DIR__ . '/../../autoload.php', __DIR__ . '/../vendor/autoload.php', __DIR__ . '/vendor/autoload.php') as $file) {
+ foreach (array(__DIR__ . '/../share/php/PHPUnit/autoload.php', __DIR__ . '/../../autoload.php', __DIR__ . '/../vendor/autoload.php', __DIR__ . '/vendor/autoload.php') as $file) {
if (file_exists($file)) {
define('PHPUNIT_COMPOSER_INSTALL', $file);
--- ../src/TextUI/Configuration/Xml/SchemaFinder.php 2024-08-19 18:11:59.438845562 +0300
+++ ../src/TextUI/Configuration/Xml/SchemaFinder.php 2024-08-19 18:12:04.631839725 +0300
@@ -75,6 +75,6 @@
return __PHPUNIT_PHAR_ROOT__ . '/';
}
- return __DIR__ . '/../../../../';
+ return __DIR__ . '/../../../';
}
}
@@ -0,0 +1,29 @@
--- ../tests/unit/Util/ExcludeListTest.php 2024-08-20 00:07:41.698625111 +0300
+++ ../tests/unit/Util/ExcludeListTest.php 2024-08-20 00:08:40.543958145 +0300
@@ -26,7 +26,7 @@
$excludeList = new ExcludeList(true);
$this->assertContains(
- realpath(__DIR__ . '/../../../src'),
+ realpath('/usr/share/php/PHPUnit'),
$excludeList->getExcludedDirectories(),
);
}
@@ -35,7 +35,7 @@
{
$excludeList = new ExcludeList(true);
- $this->assertTrue($excludeList->isExcluded(realpath(__DIR__ . '/../../../src/Framework/TestCase.php')));
+ $this->assertTrue($excludeList->isExcluded(realpath('/usr/share/php/PHPUnit/Framework/TestCase.php')));
$this->assertFalse($excludeList->isExcluded(__FILE__));
}
@@ -43,7 +43,7 @@
{
$excludeList = new ExcludeList(false);
- $this->assertFalse($excludeList->isExcluded(realpath(__DIR__ . '/../../../src/Framework/TestCase.php')));
+ $this->assertFalse($excludeList->isExcluded(realpath('/usr/share/php/PHPUnit/Framework/TestCase.php')));
}
public function testAdditionalDirectoryCanBeExcluded(): void
+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 PHPUnit, programmer-oriented testing framework for PHP.
It is an instance of the xUnit architecture for unit testing frameworks.
</longdescription>
<upstream>
<remote-id type="github">sebastianbergmann/phpunit</remote-id>
</upstream>
</pkgmetadata>
+92
View File
@@ -0,0 +1,92 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit optfeature
DESCRIPTION="The PHP Unit Testing framework"
HOMEPAGE="https://github.com/sebastianbergmann/phpunit"
SRC_URI="https://github.com/sebastianbergmann/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"
IUSE="soap test"
REQUIRED_USE="test? ( soap )"
RESTRICT="test"
PROPERTIES="test_network"
RDEPEND="dev-lang/php:*[soap?,xml,xmlwriter,unicode]
dev-php/fedora-autoloader
dev-php/myclabs-deepcopy
dev-php/phar-io-manifest
>=dev-php/phar-io-version-3.2.1
dev-php/phpunit-php-code-coverage
dev-php/phpunit-php-file-iterator
dev-php/phpunit-php-invoker
dev-php/phpunit-php-text-template
dev-php/phpunit-php-timer
dev-php/sebastian-cli-parser
dev-php/sebastian-code-unit
dev-php/sebastian-comparator
>=dev-php/sebastian-diff-5.1.1
dev-php/sebastian-environment
dev-php/sebastian-exporter
dev-php/sebastian-global-state
dev-php/sebastian-object-enumerator
>=dev-php/sebastian-type-4.0.0
>=dev-php/sebastian-version-4.0.1"
BDEPEND=">=dev-php/theseer-Autoload-1.29.1
test? ( dev-php/composer )"
PATCHES=( "${FILESDIR}/${PN}"-10.5.27-autoload-resources.patch )
DOCS=( {ChangeLog-12.4,DEPRECATIONS,README}.md )
src_prepare() {
default
phpab -q -o src/autoload.php -t "${FILESDIR}"/autoload.php.tpl \
src || die "phpab failed"
install -D -m 644 "${FILESDIR}"/autoload-test.php \
vendor/autoload.php || die "install failed"
}
src_test() {
# get tests
composer require -d "${T}" --prefer-source \
--dev "${PN}/${PN}:${PV}" || die "composer failed"
# move tests into work dir
cp -r "${T}/vendor/${PN}/${PN}"/{phpunit.xml,tests} "${S}" \
|| die "cp tests failed"
phpab -q -o tests/unit/autoload.php -t fedora2 tests/unit/ \
|| die "phpab tests unit failed"
phpab -q -o tests/_files/autoload.php -t fedora2 tests/_files/ \
|| die "phpab tests files failed"
phpab -o tests/end-to-end/execution-order/_files/autoload.php \
-t fedora2 tests/end-to-end/execution-order/_files/ \
|| die "phpab tests execution order failed"
phpab -o tests/end-to-end/event/autoload.php -t fedora2 \
tests/end-to-end/event || die "phpab tests event failed"
phpab -o tests/end-to-end/regression/autoload.php -t fedora2 \
-e tests/end-to-end/regression/4376/tests/Test.php \
tests/end-to-end/regression || die "phpab tests regression failed"
phpab -o tests/end-to-end/testdox/autoload.php -t fedora2 \
tests/end-to-end/testdox || die "phpab tests testdox failed"
# paths need to be fixed to run end-to-end
eapply "${FILESDIR}/${PN}"-10.5.27-tests.patch
# skipped 6
phpunit --testsuite unit || die "phpunit failed"
}
src_install() {
einstalldocs
insinto /usr/share/php/PHPUnit
doins -r schema phpunit.xsd src/.
dobin phpunit
}
pkg_postinst() {
optfeature "Support to generate mocks based on WSDL files" dev-lang/php[soap]
}