Added a lot of PHP packages for the defunct volkszaehler ebuild
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
DIST influxdb-influxdb-php-1.15.2.tar.gz 37061 BLAKE2B 322fa067085c20a871d285d986a00a3fa5e02ebc8373c174ce9150b472d238d3b0d2aabfdfc72c1ada31adb84264b25469942b35ae6fbaa81d5ebaf76c906300 SHA512 4c6a06995288cdcad680e3f3c3a4f8eaf00a615d22bafe154b48e84b5cc56edc69f0872e45783e81613b86698df0a48428e83d785b07c065923ad3bd647760f4
|
||||
EBUILD influxdb-influxdb-php-1.15.2.ebuild 1377 BLAKE2B 95dd1d070daeb42e07423c17b016c4318d14aaa36079d80cda82698704cefee6a950732f272763f321900c0cac8186dc1c5b628f9bdbe30599b87d50caf4455c SHA512 a6367e0e0c47ea01600105d172442b4f1a08ad8b5db5c16fdc826ee69f507f53301719613c976ae39d31a217df094d44f034a0c49c8ee089fcc0e9aadcd037b5
|
||||
MISC metadata.xml 232 BLAKE2B 9a7b35fe71f149653d729b5ed72076034246d4e23b63e44e3241b9c19bbf7c559b9614f2c6922cc34c21cd240b49cfaafb59f2465a3b5991d163285d875bdcc5 SHA512 505a93ee1fa1917a4a46ffe973e737daf4e917be4d0fe0b309200e8a4c18910a6518bbe8f4d1d7702990b594027aa91d9f1cc9c3f68303e3436521bcb312ae95
|
||||
@@ -0,0 +1,56 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DESCRIPTION="InfluxDB client library for PHP"
|
||||
HOMEPAGE="https://github.com/influxdata/influxdb-php"
|
||||
SRC_URI="https://github.com/influxdata/influxdb-php/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
S="${WORKDIR}/influxdb-php-${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/guzzlehttp-guzzle
|
||||
"
|
||||
|
||||
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}/GuzzleHttp/autoload.php",
|
||||
"${VENDOR_DIR}/GuzzleHttp/Promise/autoload.php",
|
||||
"${VENDOR_DIR}/GuzzleHttp/Psr7/autoload.php",
|
||||
"${VENDOR_DIR}/Psr/Http/Client/autoload.php",
|
||||
"${VENDOR_DIR}/Psr/Http/Message/autoload.php",
|
||||
"${VENDOR_DIR}/Psr/Http/Message/autoload.php",
|
||||
"${VENDOR_DIR}/Ralouphie-getallheaders/autoload.php",
|
||||
"${VENDOR_DIR}/Symfony/Component/DeprecationContracts/autoload.php"
|
||||
]);
|
||||
EOF
|
||||
}
|
||||
|
||||
src_install() {
|
||||
insinto "/usr/share/php/InfluxDB"
|
||||
doins -r *.php LICENSE ansible src tests
|
||||
}
|
||||
@@ -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">influxdata/influxdb-php</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
Reference in New Issue
Block a user