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 symfony-string-7.3.4.tar.gz 33174 BLAKE2B 734bd52c97b4282eef86d3d79db4f649c41714126b918e36c7ae05b04363ecc697d75c149a6a323d5c64801cfb5746631e79494140930ff0c59c9242c3f14646 SHA512 5704023579cc0b3cb087ca30fe995683f9eb43d3d8da75feb353ec8644ef16163e4fe885187eb8e355ec0e02e8aef280a923839d9996680d0b3ec419f2b0b8a6
EBUILD symfony-string-7.3.4.ebuild 1510 BLAKE2B 24e0feb5b05e8a23d7355a004399e30644d3285d97aad612d959da206d53d2433643bf6032186a4f7281ce3d6680849f6901785b0d196e41c056d33ddb80492d SHA512 15e8195c998da550cf9f61f30f5c62a0c4825fc1669e0f7728867b68caf71d88e54faf1f356d07869e5914987cf513dadddd29efc5d95b8113096bc6e7b8b5c9
MISC metadata.xml 223 BLAKE2B 565f26abb62934c15fbf0b2d624da2f8b35a68e4d805f665e08977b816212a63ef7ebf52ff6836df6cd654d1d1b095877d5a555945f754872e9ea894fa1e986c SHA512 e96d8b6a216ee42693562fb16a69f2cef5bd6d39d3162e81bd53411dc0b72e638a516dd0ee9462dddc680ca6567b08db66b7a74accc40f295ab982f007da2200
+7
View File
@@ -0,0 +1,7 @@
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<upstream>
<remote-id type="github">symfony/string</remote-id>
</upstream>
</pkgmetadata>
@@ -0,0 +1,57 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Provides an object-oriented API to strings and deals with bytes, UTF-8 code points and grapheme clusters in a unified way"
HOMEPAGE="https://github.com/symfony/string"
SRC_URI="https://github.com/symfony/string/archive/v${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/string-${PV}"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
BDEPEND="dev-php/theseer-Autoload"
RDEPEND="
>=dev-lang/php-8.2:*
dev-php/fedora-autoloader
dev-php/symfony-polyfill-ctype
dev-php/symfony-polyfill-intl-grapheme
dev-php/symfony-polyfill-intl-normalizer
dev-php/symfony-polyfill-mbstring
"
src_prepare() {
default
phpab \
--quiet \
--output autoload.php \
--template fedora2 \
--basedir . \
. \
|| die
VENDOR_DIR="${EPREFIX}/usr/share/php"
cat >> autoload.php <<EOF || die "failed to extend autoload.php"
// Dependencies
\Fedora\Autoloader\Dependencies::required([
"${VENDOR_DIR}/Fedora/Autoloader/autoload.php",
"${VENDOR_DIR}/Symfony/Polyfill/Ctype/autoload.php",
"${VENDOR_DIR}/Symfony/Polyfill/Intl/Grapheme/autoload.php",
"${VENDOR_DIR}/Symfony/Polyfill/Intl/Normalizer/autoload.php",
"${VENDOR_DIR}/Symfony/Polyfill/Mbstring/autoload.php"
]);
EOF
echo "require_once __DIR__ . \"/Resources/functions.php\";" >> autoload.php
}
src_install() {
insinto "/usr/share/php/Symfony/Component/String"
doins -r *.php Exception Inflector LICENSE Resources Slugger
}