Added a lot of PHP packages for the defunct volkszaehler ebuild
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
AUX andig-dbcopy-autoloader.patch 842 BLAKE2B d38ec06e5f1be96073ea705a9f46b02be30a8d7da1babbce7543bca867dba93f54d6d3e280eb38676d5b12889e1f3f6caa58ea8324460c327f6a3221000ff2fa SHA512 0b1618406c9e434840d768a1370c9010500af4cd6997fe6bf2bf49349ac7a9790579554ec43e03bb8951c872fae16446ac87d37bde61750ccb7f10acb57ac733
|
||||
AUX andig-dbcopy-symfony.patch 4429 BLAKE2B 76152f8a563444fb5298a6c657c99a70cc4ffdd33cb0b0ff5a8323bffbe4f1b7e6cf982c183d24eac171275183fda36d0059c646148b720811a2e0abb58beb99 SHA512 72d1785099e0ca6b1837c41e641e82d0a621d3e8db74b4c2bb836baa09fa06145b9f31e9c3a345a94ec45fa417d022373a0d89cc05fe1d418acf7f04348c5c3c
|
||||
AUX autoload-test.php 522 BLAKE2B 2b0bf1aa11103dd9fa9771efcbd82417a03f9e6d2b2855eccb3f225520639b6dafc377af52a1de249c113e3e834155add72a5da3a64ba94dfbdd9df62a73a300 SHA512 3cc5b174a1a7f0e30ced1d4d001b2fdc934d6fdf6a49214ab1cbc0f27a5bd7468c5a8ab5becf3714601e9e5609bc34bf9fc3ff5d938de2263713a51a6c455cd9
|
||||
AUX autoload.php.tpl 1350 BLAKE2B e84292150e01f99cb4357f86d1c131fa719fc1af98e9d38a3f02d0bad01b2d3522fadd5217d1211e0dd93d808451536fd630478c939738b9f4b443daf66112bc SHA512 c0a6e9403f8ef416b42d9779e76d9f7491d8cb06bc11bc3344c89a5c4ec5cd2714809a3f9fc368ade593972a0fb52a03358c019cc18800cbb5ce54f5008fb52b
|
||||
EBUILD andig-dbcopy-9999.ebuild 1149 BLAKE2B d551da60d9199b78e6f84bf9654c878466808f776a73d34dceaf28d968b548aa9188a7835086e63a01d288c3d6170a990e43d57a76a9301fe6820aef43c38c70 SHA512 371c21b1b9aecf6c7906df08d752be0bbc87eec471025c8b7411323106080b2a768e279d4cc7cc1ea994d567ec9e8b9dbcb9129fab8b39baa16c24292d1fb9d1
|
||||
MISC metadata.xml 232 BLAKE2B 8fb41cef0fd78454633aabd68564c86c63475884e8dbe217ed71660c2c067efd77478cf81138b29ae773da0e8eb2e9af49cd875a96eb44bf72a3794316e50859 SHA512 cc5faee41bb423d1ed0d44009f724b98ef6b961d26b3cc677012ff3619edddbc778e45361d7ae1936fca4e1c96655f691c66e3154c9e37a848d97174b0fb37d6
|
||||
@@ -0,0 +1,53 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DESCRIPTION="Refactored repack of https://github.com/andig/dbcopy"
|
||||
HOMEPAGE="https://github.com/andig/php-shunting-yard"
|
||||
|
||||
MY_PN="dbcopy"
|
||||
|
||||
if [ "${PV}" == "9999" ] ; then
|
||||
EGIT_REPO_URI="https://github.com/andig/${MY_PN}"
|
||||
inherit git-r3
|
||||
KEYWORDS=""
|
||||
else
|
||||
SRC_URI="https://github.com/andig/php-shunting-yard/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
fi
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-lang/php-7.4:*
|
||||
dev-php/fedora-autoloader
|
||||
dev-php/doctrine-dbal
|
||||
dev-php/influxdb-influxdb-php
|
||||
dev-php/symfony-console
|
||||
dev-php/symfony-yaml
|
||||
"
|
||||
|
||||
PATCHES="
|
||||
${FILESDIR}/${PN}-autoloader.patch
|
||||
${FILESDIR}/${PN}-symfony.patch
|
||||
"
|
||||
|
||||
DOCS=( config.dist.yaml README.md )
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
phpab -q -o src/autoload.php -t "${FILESDIR}"/autoload.php.tpl \
|
||||
src || die "phpab failed"
|
||||
#install -D -m 644 "${FILESDIR}"/autoload-test.php \
|
||||
# vendor/autoload.php || die "install failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
einstalldocs
|
||||
insinto "/usr/share/php/Andig/DatabaseCopy"
|
||||
doins -r src src/*
|
||||
dobin "dbcopy"
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
diff '--color=auto' -ur andig-dbcopy-9999.orig/dbcopy andig-dbcopy-9999/dbcopy
|
||||
--- andig-dbcopy-9999.orig/dbcopy 2025-10-08 11:49:08.945458244 +0200
|
||||
+++ andig-dbcopy-9999/dbcopy 2025-10-08 11:50:49.194009518 +0200
|
||||
@@ -11,10 +11,7 @@
|
||||
}
|
||||
|
||||
// find autoloader, borrowed from github.com/behat/behat
|
||||
-if ((!$loader = includeIfExists(__DIR__ . '/vendor/autoload.php')) &&
|
||||
- (!$loader = includeIfExists(__DIR__ . '/../vendor/autoload.php')) &&
|
||||
- (!$loader = includeIfExists(__DIR__ . '/../../vendor/autoload.php')) &&
|
||||
- (!$loader = includeIfExists(__DIR__ . '/../../../vendor/autoload.php'))) {
|
||||
+if (!$loader = includeIfExists('/usr/share/php/Andig/DatabaseCopy/autoload.php')) {
|
||||
fwrite(STDERR,
|
||||
'You must set up the project dependencies, run the following commands:' . PHP_EOL .
|
||||
'curl -s http://getcomposer.org/installer | php' . PHP_EOL .
|
||||
@@ -0,0 +1,93 @@
|
||||
diff '--color=auto' -ur andig-dbcopy-9999.orig/src/Command/AbstractCommand.php andig-dbcopy-9999/src/Command/AbstractCommand.php
|
||||
--- andig-dbcopy-9999.orig/src/Command/AbstractCommand.php 2025-10-08 12:18:06.015740519 +0200
|
||||
+++ andig-dbcopy-9999/src/Command/AbstractCommand.php 2025-10-08 12:15:14.368364947 +0200
|
||||
@@ -62,7 +62,7 @@
|
||||
return $tables;
|
||||
}
|
||||
|
||||
- protected function execute(InputInterface $input, OutputInterface $output) {
|
||||
+ protected function execute(InputInterface $input, OutputInterface $output): int {
|
||||
$this->output = $output;
|
||||
$this->loadConfig($input);
|
||||
|
||||
diff '--color=auto' -ur andig-dbcopy-9999.orig/src/Command/ClearCommand.php andig-dbcopy-9999/src/Command/ClearCommand.php
|
||||
--- andig-dbcopy-9999.orig/src/Command/ClearCommand.php 2025-10-08 12:18:06.015894342 +0200
|
||||
+++ andig-dbcopy-9999/src/Command/ClearCommand.php 2025-10-08 12:16:40.736281429 +0200
|
||||
@@ -32,7 +32,7 @@
|
||||
return in_array($tableName, $tables);
|
||||
}
|
||||
|
||||
- protected function execute(InputInterface $input, OutputInterface $output) {
|
||||
+ protected function execute(InputInterface $input, OutputInterface $output): int {
|
||||
parent::execute($input, $output);
|
||||
|
||||
// make sure schemas exists
|
||||
diff '--color=auto' -ur andig-dbcopy-9999.orig/src/Command/CopyCommand.php andig-dbcopy-9999/src/Command/CopyCommand.php
|
||||
--- andig-dbcopy-9999.orig/src/Command/CopyCommand.php 2025-10-08 12:18:06.015894342 +0200
|
||||
+++ andig-dbcopy-9999/src/Command/CopyCommand.php 2025-10-08 12:15:44.816329227 +0200
|
||||
@@ -172,7 +172,7 @@
|
||||
echo "\n\n"; // CRLF after progressbar @ 100%
|
||||
}
|
||||
|
||||
- protected function execute(InputInterface $input, OutputInterface $output)
|
||||
+ protected function execute(InputInterface $input, OutputInterface $output): int
|
||||
{
|
||||
parent::execute($input, $output);
|
||||
|
||||
diff '--color=auto' -ur andig-dbcopy-9999.orig/src/Command/CreateCommand.php andig-dbcopy-9999/src/Command/CreateCommand.php
|
||||
--- andig-dbcopy-9999.orig/src/Command/CreateCommand.php 2025-10-08 12:18:06.015894342 +0200
|
||||
+++ andig-dbcopy-9999/src/Command/CreateCommand.php 2025-10-08 12:16:08.404301546 +0200
|
||||
@@ -100,7 +100,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
- protected function execute(InputInterface $input, OutputInterface $output) {
|
||||
+ protected function execute(InputInterface $input, OutputInterface $output): int {
|
||||
parent::execute($input, $output);
|
||||
|
||||
// make sure schemas exists
|
||||
diff '--color=auto' -ur andig-dbcopy-9999.orig/src/Command/DropCommand.php andig-dbcopy-9999/src/Command/DropCommand.php
|
||||
--- andig-dbcopy-9999.orig/src/Command/DropCommand.php 2025-10-08 12:18:06.015894342 +0200
|
||||
+++ andig-dbcopy-9999/src/Command/DropCommand.php 2025-10-08 12:16:26.196289368 +0200
|
||||
@@ -17,7 +17,7 @@
|
||||
->addOption('config', 'c', InputOption::VALUE_REQUIRED, 'Config file');
|
||||
}
|
||||
|
||||
- protected function execute(InputInterface $input, OutputInterface $output) {
|
||||
+ protected function execute(InputInterface $input, OutputInterface $output): int {
|
||||
parent::execute($input, $output);
|
||||
|
||||
// make sure schemas exists
|
||||
diff '--color=auto' -ur andig-dbcopy-9999.orig/src/Command/InfluxCommand.php andig-dbcopy-9999/src/Command/InfluxCommand.php
|
||||
--- andig-dbcopy-9999.orig/src/Command/InfluxCommand.php 2025-10-08 12:18:06.015894342 +0200
|
||||
+++ andig-dbcopy-9999/src/Command/InfluxCommand.php 2025-10-08 12:17:22.156258843 +0200
|
||||
@@ -173,7 +173,7 @@
|
||||
} while (count($res) == $this->batch);
|
||||
}
|
||||
|
||||
- protected function execute(InputInterface $input, OutputInterface $output) {
|
||||
+ protected function execute(InputInterface $input, OutputInterface $output): int {
|
||||
$this->loadConfig($input);
|
||||
|
||||
// Doctrine PDO
|
||||
diff '--color=auto' -ur andig-dbcopy-9999.orig/src/ConsoleApplication.php andig-dbcopy-9999/src/ConsoleApplication.php
|
||||
--- andig-dbcopy-9999.orig/src/ConsoleApplication.php 2025-10-08 12:18:06.015894342 +0200
|
||||
+++ andig-dbcopy-9999/src/ConsoleApplication.php 2025-10-08 12:14:06.764444254 +0200
|
||||
@@ -32,7 +32,7 @@
|
||||
*
|
||||
* @return string The long application version
|
||||
*/
|
||||
- public function getLongVersion()
|
||||
+ public function getLongVersion(): string
|
||||
{
|
||||
if ('UNKNOWN' !== $this->getName()) {
|
||||
return sprintf('<info>%s</info>', $this->getName());
|
||||
@@ -45,7 +45,7 @@
|
||||
*
|
||||
* @return InputDefinition An InputDefinition instance
|
||||
*/
|
||||
- protected function getDefaultInputDefinition()
|
||||
+ protected function getDefaultInputDefinition(): InputDefinition
|
||||
{
|
||||
return new InputDefinition(array(
|
||||
new InputArgument('command', InputArgument::REQUIRED, 'The command to execute'),
|
||||
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
require_once 'Fedora/Autoloader/autoload.php';
|
||||
|
||||
\Fedora\Autoloader\Dependencies::required([
|
||||
__DIR__ . '/../tests/_files/CoveredFunction.php',
|
||||
__DIR__ . '/../tests/_files/Generator.php',
|
||||
__DIR__ . '/../tests/_files/NamespaceCoveredFunction.php',
|
||||
'src/autoload.php',
|
||||
'tests/unit/autoload.php',
|
||||
'tests/_files/autoload.php',
|
||||
'tests/end-to-end/execution-order/_files/autoload.php',
|
||||
'tests/end-to-end/event/autoload.php',
|
||||
'tests/end-to-end/regression/autoload.php',
|
||||
'tests/end-to-end/testdox/autoload.php',
|
||||
]);
|
||||
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
require_once 'Fedora/Autoloader/autoload.php';
|
||||
|
||||
\Fedora\Autoloader\Autoload::addClassMap(
|
||||
array(
|
||||
___CLASSLIST___,
|
||||
),
|
||||
__DIR__
|
||||
);
|
||||
|
||||
\Fedora\Autoloader\Dependencies::required([
|
||||
'/usr/share/php/Doctrine/Deprecations/autoload.php',
|
||||
'/usr/share/php/Psr/Cache/autoload.php',
|
||||
'/usr/share/php/Psr/Log/autoload.php',
|
||||
'/usr/share/php/Doctrine/DBAL/autoload.php',
|
||||
'/usr/share/php/GuzzleHttp/autoload.php',
|
||||
'/usr/share/php/GuzzleHttp/Promise/autoload.php',
|
||||
'/usr/share/php/GuzzleHttp/Psr7/autoload.php',
|
||||
'/usr/share/php/Psr/Http/Client/autoload.php',
|
||||
'/usr/share/php/Psr/Http/Message/autoload.php',
|
||||
'/usr/share/php/Psr/Http/Message/autoload.php',
|
||||
'/usr/share/php/Ralouphie-getallheaders/autoload.php',
|
||||
'/usr/share/php/Symfony/Component/DeprecationContracts/autoload.php',
|
||||
'/usr/share/php/InfluxDB/autoload.php',
|
||||
'/usr/share/php/Psr/Container/autoload.php',
|
||||
'/usr/share/php/Symfony/Polyfill/Ctype/autoload.php',
|
||||
'/usr/share/php/Symfony/Polyfill/Intl/Grapheme/autoload.php',
|
||||
'/usr/share/php/Symfony/Polyfill/Intl/Normalizer/autoload.php',
|
||||
'/usr/share/php/Symfony/Polyfill/Mbstring/autoload.php',
|
||||
'/usr/share/php/Symfony/Contracts/Service/autoload.php',
|
||||
'/usr/share/php/Symfony/Component/String/autoload.php',
|
||||
'/usr/share/php/Symfony/Component/Console/autoload.php',
|
||||
'/usr/share/php/Symfony/Component/Yaml/autoload.php',
|
||||
]);
|
||||
@@ -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">andig/php-shunting-yard</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
Reference in New Issue
Block a user