Added a lot of PHP packages for the defunct volkszaehler ebuild
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
DIST symfony-var-exporter-7.3.4.tar.gz 23197 BLAKE2B 17c58ecd0aac3cb8b97667fb02b9d8fdb096108455a5fb827f42b3540661f2d08ed90181b09f5545da919d290acc9efdb9bd90111bf525c9290190d7feaf902a SHA512 b965d19bce24813c55347523eda8a4bd0af7ba5b0b6d76b6da09dd5976508d22e90327a384c6c808ef954b8a4386adeedad431b05c4263c149acf3869cf361e4
|
||||
EBUILD symfony-var-exporter-7.3.4.ebuild 1108 BLAKE2B 6234a0fd00e5a4dc5f922240e8491b3c4a649d2d4612dff662b8406083e4a30838f781db70fafcbc4b2841d8d46ebf857f16ea3e7cba1d2319f312128d8f2b9e SHA512 b9c281db2f9c58e1484e157452cbe3a2ee54a16bd5df6773a843284cfbc599a6f06c6681f1371eaf110a25d1c4ca1e0de400eb6ca14c4dc54d1eddf1de31affa
|
||||
MISC metadata.xml 229 BLAKE2B 7b9b673b4017d34643900b3945716d3b011f40881cc4c1beb255adbe7454d40f20ed1912588cda64e397404f844b4d11bab50141b8385e52aaa038c2a5d66369 SHA512 b5537c6ba3b8bb1411fc2e2d29ec95470981ec23d4c3d5617dfcd64f288317f0fcdefd9d17ddf09b696adbe9ec307aae16f692324967bab4a00e7bb81b286ef1
|
||||
@@ -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/var-exporter</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
@@ -0,0 +1,49 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DESCRIPTION="Allows exporting any serializable PHP data structure to plain PHP code"
|
||||
HOMEPAGE="https://github.com/symfony/var-exporter"
|
||||
SRC_URI="https://github.com/symfony/var-exporter/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
S="${WORKDIR}/var-exporter-${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-deprecation-contracts
|
||||
"
|
||||
|
||||
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/Component/DeprecationContracts/autoload.php"
|
||||
]);
|
||||
EOF
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto "/usr/share/php/Symfony/Component/VarExporter"
|
||||
doins -r *.php Exception Internal LICENSE
|
||||
}
|
||||
Reference in New Issue
Block a user