Added a lot of PHP packages for the defunct volkszaehler ebuild
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
AUX autoload.php 238 BLAKE2B 1be07cc6e55a77ce20964c3c28a11c4f6cf2a76d53b03aa1dea832e272a7ab772e61fdf2b7ae51816ab79fc077febe422a4637217a60dfd3e6c8cf3c0353a382 SHA512 db313825697d6ebc966da24cf60b6f3e625408e100debe0cf55015cc98705f6dfb282d4c0628e41f338cc119ded92957b34a6c928043e7a298aef8832e04c47c
|
||||
DIST sebastian-code-unit-3.0.3.tar.gz 7270 BLAKE2B 4b6ae99e54888d81e4ce8fa9cf491857f2418da60d01f66735a68165e86bf2ead0805256d91bbdc6af8c0eb3335cc1bf1966fa8667683478aa23863ab33ed471 SHA512 3aece87cd9425dc7a126482feb412f76e9078257da754e81f1e0e854de63019beb875f1e01d1734baa8bf00293d8342f50e1e0fbb87bb690ebf9f273a64baaeb
|
||||
EBUILD sebastian-code-unit-3.0.3.ebuild 1280 BLAKE2B 67aced9904e528ba077e8c4d6832f9bb9ae6c31624d07b830cfb00f8497ca6319af7fa7b50f7829729a4386e39d72b885ab3cd7247afae07d5850b0f842b4e31 SHA512 b369188db841d5fb02dc8133ad385fe701127c57c7ba8cdd78b9740daf7ab306c43f945187e8fb39eb7899253df4d4b5a4bbd906a01e14f0b67815dfd00617ac
|
||||
MISC metadata.xml 606 BLAKE2B 664958c6a171108f3b39bfde67495f9a7437e74c2fc24f0b14603797534ae4af671087e55f69e7bd088f5a9cc6e14bd106c1f04ef58e4967f89213bab17a27f5 SHA512 ae384f95df374d836630505e9ac185c1a1b54272f4a1aab38e41aaa1009d6d6d347a6987bdc672e130677d5f7d7b8e94d7141a8f40f049a9d0d90d69930450dd
|
||||
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
require_once 'Fedora/Autoloader/autoload.php';
|
||||
|
||||
\Fedora\Autoloader\Dependencies::required([
|
||||
__DIR__ . '/../tests/_fixture/file_with_multiple_code_units.php',
|
||||
__DIR__ . '/../tests/_fixture/function.php',
|
||||
'tests/autoload.php'
|
||||
]);
|
||||
@@ -0,0 +1,19 @@
|
||||
<?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 collection of value objects that represent
|
||||
the PHP code units.
|
||||
</longdescription>
|
||||
<upstream>
|
||||
<remote-id type="github">sebastianbergmann/code-unit</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//sebastian-/}"
|
||||
MY_P="${MY_PN}-${PV}"
|
||||
|
||||
DESCRIPTION="Collection of PHP code units"
|
||||
HOMEPAGE="https://github.com/sebastianbergmann/code-unit"
|
||||
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="test"
|
||||
RESTRICT="test"
|
||||
PROPERTIES="test_network"
|
||||
|
||||
RDEPEND="dev-lang/php:*
|
||||
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.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"
|
||||
phpab -q -o tests/autoload.php -t fedora2 tests || die "phpab test failed"
|
||||
phpunit --bootstrap vendor/autoload.php --testdox || die "phpunit failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
einstalldocs
|
||||
insinto /usr/share/php/SebastianBergmann/CodeUnit
|
||||
doins -r src/.
|
||||
}
|
||||
Reference in New Issue
Block a user