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 253 BLAKE2B 4d482de140e9ee30e5d89c04ab298a0d6f5f085a3ad2ec30e41eeaadc9a8ea8b7144a9f9e0e357b75e9cac412a89b4a29ce7aded583c9b30e65e0b9f2a012282 SHA512 ca579fc5158d7bb4fc2419d042f8da434596a84633bc32e866169d4ef4e1e850dbe637f0dd5032b785ddeb929abf706a25314987207a9033be2847c04ecc6dbe
DIST sebastian-type-6.0.3.tar.gz 9624 BLAKE2B 687ccfbd781dfbf1008a49a0440563f565aa49a67e24b940d7b0370e878132110542736f59be73ba878d2463b907231d501b241e5d8aca301a72fc89e0ae21a2 SHA512 339f328eadd564d014c98eed41e7b2f2f38510fa982ac2cd88c032b7f901683343aada06a76e164f0accea31e020d627547eafcbd72b187bd88b50eae8e2aa5f
EBUILD sebastian-type-6.0.3.ebuild 1294 BLAKE2B 8120255125f5623aba9ed95f1da5b5f46e7015c7ca28443de7c7ecec7619dd59d3d211b67eec5f68e372f30833997405b8c3023107937e3642cff436ae8d2498 SHA512 ed3d602b1290e4b31c6b7efe6a3a5837017ddce28ee390a7345e764b877024527870ca769edc49f5424d0c2262db0ef88343a644d0ffaec8215f1d1af23e90fe
MISC metadata.xml 615 BLAKE2B 93d4f3e3b5d28790996634cf6d648ef0b033e91a5a7676c5e9a9d889f5d03d0d3d5779243dabc5a9208b6ab555ed1feeb89d228afa5ee33028a1c59f5e2b75fa SHA512 c1bc27d550763e90377d5a3c854814f8458a9562080c101c249c5b40c1c9c30b9295f76f0adfa1da26b0926da110d24f3a4f7987be0553c3a0fe3e0206e7783c
@@ -0,0 +1,9 @@
<?php
require_once 'Fedora/Autoloader/autoload.php';
\Fedora\Autoloader\Dependencies::required([
__DIR__ . '/../tests/_fixture/functions_that_declare_return_types.php',
__DIR__ . '/../tests/_fixture/callback_function.php',
'tests/autoload.php'
]);
+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 collection of value objects that represent
the types of the PHP type system.
</longdescription>
<upstream>
<remote-id type="github">sebastianbergmann/type</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="Library that helps with managing the version number"
HOMEPAGE="https://github.com/sebastianbergmann/type"
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 --bootstrap vendor/autoload.php --testdox || die "phpunit failed"
}
src_install() {
einstalldocs
insinto /usr/share/php/SebastianBergmann/Type
doins -r src/.
}