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 class-map-generator-1.6.1.tar.gz 10107 BLAKE2B 279177ba76e6262a69b1a9885dec2b5d693e06244e1f78d9892eb475f4d8a2bd741fb23a090bda5a3cc22c465b918660bb2e15006abe43fb42ad416eb6485424 SHA512 48bd0333d005556c40d755ad5389c12f7dd67cc3da38b7e8fa4857a68d9280bc0cc5edc02219e2aa082e992bffd21a8a528308ac39c03422345dae257a03e517
EBUILD class-map-generator-1.6.1.ebuild 1129 BLAKE2B 42ca6402027b6bb2d73cec2a3bd236637b513f4d081f9fb3517e870488cf27732e0592ac7db2994d0a08f8c8a9ea88e05e77912abb15330ba8c939669182e646 SHA512 bd6dc2f9c1ca79c96f861dab48a4e918fe4ade52bd3a6d81c06bfc89c403fd501047cfa1aef8dec75f8c4373971a7866fdf220d2347926e7d502aeb1481bda61
MISC metadata.xml 237 BLAKE2B f5e83f17799548c02c45adb326ff2c74772838a72a1a5172e036f9d4393bcfe641cdb84ac96ff2fbea68b3993d252d06b0c58e7a5f300d94aa072610d0e3ef9e SHA512 40ddd6c8bc7df5971c58a164266a381e6b743fd0ad3cc15ebe0f16c69c0793b66a9f4e03311a13cf8fd7d7fb0b00d3c147fd4ab3e300240682d4b7c98e70ac2c
@@ -0,0 +1,51 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Utilities to scan PHP code and generate class maps."
HOMEPAGE="https://github.com/composer/class-map-generator"
SRC_URI="https://github.com/composer/class-map-generator/archive/${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/class-map-generator-${PV}"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
BDEPEND="dev-php/theseer-Autoload"
RDEPEND="
>=dev-lang/php-7.4:*
dev-php/fedora-autoloader
dev-php/pcre
dev-php/symfony-finder
"
src_prepare() {
default
phpab \
--quiet \
--output autoload.php \
--template fedora2 \
--basedir src \
src \
|| 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}/Composer/Pcre/autoload.php",
"${VENDOR_DIR}/Symfony/Component/Finder/autoload.php"
]);
EOF
}
src_install() {
insinto "/usr/share/php/Composer/ClassMapGenerator"
doins -r *.php LICENSE src/*
}
+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">composer/class-map-generator</remote-id>
</upstream>
</pkgmetadata>