Added a lot of PHP packages for the defunct volkszaehler ebuild
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
AUX autoload-test.php 174 BLAKE2B 0a2c57f943a493410d7c5beb9c7212bc8ac66878e4c18c7b13261d4188f96a0f292aa1d440fc27f097be6bd8d4b25901ce0ef9d1dc345b2078d3c22cce9fa2f7 SHA512 d0da92084156de79adb77ca99de963877fcc21f7cc26a4a5333cfd4db43ea4edbb2f351ed2effde11a4fdf942114abb643396e766316c2198b29793519e63d90
|
||||
DIST phpunit-php-invoker-6.0.0.tar.gz 4442 BLAKE2B 32a5a134dee444d2d91b60873163949d7f93b1e908122df6f6129d39452ef6b1653b1ece66979ec0b77127c3f1f71792f4b6ccff60805bb7ec3f75475f6ef4a9 SHA512 daf245e168aa53b6b6d012e11bbd5788ade1d49f08fae2843db08d585b1ae8f3d4bfb133dee92da7b59861decba001d1aeb06bf06747a6783d227d700fe3f7bd
|
||||
EBUILD phpunit-php-invoker-6.0.0.ebuild 1239 BLAKE2B 26eabe235b4310f240242f520db3e6a3176efe9bd1876b2b910599c6eb53ef9d673cc0022b57cd27d56b526f74c9f618e7c8a6dd016797023584ae1adb6ac095 SHA512 c38966b3f194034162abf101d148b1ccc3d46fe3a14a06dec67344d31a6bb5c9c7869bf0da950364b964a49668447be08ab20bebe4b0b57a6dba1fc4f6b04b62
|
||||
MISC metadata.xml 706 BLAKE2B 55961223983d467072c1aed7c9fffaa5ad2f1c8fae1e8b15f736b8c1e79aff48667af3b03f53bb4007cc00be26d4a8b91d486d736f6971dca6cccaf3c61e6dac SHA512 9f9d500cd9b284e565d211513c47970305c12484e669d463692604e06267a4bd575b44bfa63083dc9383430f87086650c3b96d8637fae72d99dc00da5f031243
|
||||
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
require_once 'Fedora/Autoloader/autoload.php';
|
||||
|
||||
\Fedora\Autoloader\Dependencies::required([
|
||||
'src/autoload.php',
|
||||
__DIR__ . '/../tests/_fixture/TestCallable.php',
|
||||
]);
|
||||
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>spiderx@spiderx.dp.ua</email>
|
||||
<name>Vladimir Pavljuchenkov</name>
|
||||
</maintainer>
|
||||
<maintainer type="project">
|
||||
<email>proxy-maint@gentoo.org</email>
|
||||
<name>Proxy Maintainers</name>
|
||||
</maintainer>
|
||||
<longdescription lang="en">
|
||||
This package provides a library for PHP, which is capable of
|
||||
invoking PHP callables with a timeout.
|
||||
</longdescription>
|
||||
<use>
|
||||
<flag name="pcntl">Enable test for Process Control extension</flag>
|
||||
</use>
|
||||
<upstream>
|
||||
<remote-id type="github">sebastianbergmann/php-invoker</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
@@ -0,0 +1,50 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
MY_PN="${PN//phpunit-/}"
|
||||
MY_P="${MY_PN}-${PV}"
|
||||
|
||||
DESCRIPTION="Library to invoke PHP callables with a timeout"
|
||||
HOMEPAGE="https://github.com/sebastianbergmann/php-invoker"
|
||||
SRC_URI="https://github.com/sebastianbergmann/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="pcntl test"
|
||||
REQUIRED_USE="test? ( pcntl )"
|
||||
RESTRICT="test"
|
||||
PROPERTIES="test_network"
|
||||
|
||||
RDEPEND="dev-lang/php:*[pcntl?]
|
||||
dev-php/fedora-autoloader"
|
||||
BDEPEND="dev-php/theseer-Autoload
|
||||
test? ( dev-php/composer
|
||||
dev-php/phpunit )"
|
||||
|
||||
DOCS=( {ChangeLog,README}.md )
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
phpab -q -o src/autoload.php -t fedora2 src || die "phpab failed"
|
||||
install -D -m 644 "${FILESDIR}"/autoload-test.php \
|
||||
vendor/autoload.php || die "install failed"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
composer require -d "${T}" --prefer-source \
|
||||
--dev "${PN/-/\/}:${PV}" || die "composer failed"
|
||||
cp -r "${T}"/vendor/"${PN/-/\/}"/{phpunit.xml,tests} "${S}" \
|
||||
|| die "cp failed"
|
||||
phpunit --testdox || die "phpunit failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
einstalldocs
|
||||
insinto /usr/share/php/SebastianBergmann/Invoker
|
||||
doins -r src/.
|
||||
}
|
||||
Reference in New Issue
Block a user