Added a lot of PHP packages for the defunct volkszaehler ebuild
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
DIST symfony-translation-7.3.4.tar.gz 71411 BLAKE2B 9e4b1bb59e477a2eccd9c61c96239a1b295a5e754da02369afe50095f192bd126b1e6c91802aeb8c0ebab4fc7de499eba47d0b64583ea1256ed627c14bbb8c06 SHA512 1a44c7633125287ea001a3ddc435d5a74638a6160a422cbb8a50070b4662d318406b6aa4245b81d43821c4e6612a05b5453ca99ddd172787a5143650147ac01a
|
||||
EBUILD symfony-translation-7.3.4.ebuild 1476 BLAKE2B b46a9a862ed9fe6f5bc42f3ed38c55ecc1a80862cbcfd9db1ce812ceb014fade85970116a9cd917285ada9c6602f4b02ac6f082ae5a7ac3e894b4213fc5392bb SHA512 24654196860e5beb98349fce413f32c3e4eb177aab810802f480c16ef84d510acf21b8af1b89d7e3cc15cbfa611dc90e3820338f9222e88d5a208cdeeaef0a23
|
||||
MISC metadata.xml 228 BLAKE2B fabefed42c65e2cec533c9e46929f3bc4ee01d399a7983af6172e54ed2a6d3a0fe2c5fdf4d969d1ad89f78bfc63fca5e00a4c515a7874cfc6a15911d55ede250 SHA512 35aadc87f9745ea4e75eb8dcc0b2e9712cfd5984e5adde08ece411b26c87a1f45b70de147f00c0b56327489e70cfcab4fe58c550c17cdd544d1d88786dbb9af0
|
||||
@@ -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/translation</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
@@ -0,0 +1,55 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DESCRIPTION="Provides tools to internationalize your application"
|
||||
HOMEPAGE="https://github.com/symfony/translation"
|
||||
SRC_URI="https://github.com/symfony/translation/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
S="${WORKDIR}/translation-${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
|
||||
dev-php/symfony-polyfill-mbstring
|
||||
dev-php/symfony-translation-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",
|
||||
"${VENDOR_DIR}/Symfony/Polyfill/Mbstring/autoload.php",
|
||||
"${VENDOR_DIR}/Symfony/Contracts/Translation/autoload.php"
|
||||
]);
|
||||
EOF
|
||||
echo "require_once __DIR__ . \"/Resources/functions.php\";" >> autoload.php
|
||||
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto "/usr/share/php/Symfony/Component/Translation"
|
||||
doins -r *.php Catalogue Command DataCollector DependencyInjection Dumper Exception Extractor Formatter LICENSE Loader Provider Reader Resources Test Util Writer
|
||||
}
|
||||
Reference in New Issue
Block a user