Added a lot of PHP packages for the defunct volkszaehler ebuild
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
DIST sebastian-complexity-5.0.0.tar.gz 6160 BLAKE2B b91ca83aa762a07e58f9d8d73786decfbf2902039a853299a9d02b0658c6539674935a92f23452cb495b712ec0316eb5f2eaee062c281884422efe8bbd62a476 SHA512 12ed35f7b15d20116080609e95f3fe76051d44c4ccb6594ed585135444fc16acadf49df6a721446ff455e9ff697fa8b0716216ebd74942c236edb8376e0faaa1
|
||||
EBUILD sebastian-complexity-5.0.0.ebuild 1334 BLAKE2B 7008035c6524f6f8945e7fa10adaceb5ca5021f261929458dffe4f9e450ffe72310fe21869c46c1f7ae9b76e3460b845c01d409763c3917dc46970e0b29569ae SHA512 c7a4ac4f8433a85725043138f6affc79f2c1341a7f7addbd227f95251feeeca9dcc0eee48313521d85985d430bddd4f7f36592ae9a3942a97901c1302d9f72c2
|
||||
MISC metadata.xml 237 BLAKE2B 0bdce3b5527e0036bb4903cc52a0ea85191151b07fdce57a323cb784c1332a04ea22a78e50d18032f0bbde3f883eae8d6e8821b46b4cdc0756ca9381cc8c8318 SHA512 0fad9480e32b57d0d4d22700d724a2688c53911d03b6d98f020b19187039d1e4c77c1790b7bc42ffa0252a7acd732c919272789b7e71f212bc1aee7b3e0d34bd
|
||||
@@ -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">sebastianbergmann/complexity</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
@@ -0,0 +1,54 @@
|
||||
# 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="Library for calculating the complexity of PHP code units"
|
||||
HOMEPAGE="https://github.com/sebastianbergmann/${MY_PN}"
|
||||
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"
|
||||
|
||||
BDEPEND="dev-php/theseer-Autoload
|
||||
test? ( dev-php/composer
|
||||
dev-php/phpunit )"
|
||||
|
||||
RDEPEND="
|
||||
dev-lang/php:*
|
||||
dev-php/fedora-autoloader
|
||||
dev-php/nikic-php-parser"
|
||||
|
||||
DOCS=( {ChangeLog,README}.md )
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
phpab -q -o src/autoload.php -t fedora2 src || die "phpab failed"
|
||||
install -D -m 644 /dev/null \
|
||||
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/Complexity
|
||||
doins -r src/.
|
||||
}
|
||||
Reference in New Issue
Block a user