Added a lot of PHP packages for the defunct volkszaehler ebuild
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
DIST sebastian-lines-of-code-4.0.0.tar.gz 5084 BLAKE2B b8e944a2ff4a0339c8817b75e545d07d35f864d9d3a618dab5e66451c13f9ab51b8a1bf9ad6295e45692f909233775aa96203adda7bc733e84fe3323eee794d7 SHA512 da28d22b1bf2afd0a50259318a33535ac175568bbd0e7335e0a6297ed2582f6b821843d735be8ead21efe6b00826e2db126d6d8ee00052603280c1cb45e6c7fc
|
||||
EBUILD sebastian-lines-of-code-4.0.0.ebuild 1309 BLAKE2B 4ac4831c0fe8d23e91249442a0853a5cfb92f2f659ceb8f0036317174f13403daf3d90ff9e075fcb6c1fe83b38352f18487e6dc7ece04baba8f7140a375b6d57 SHA512 e9046ec2db949dd43b75ad8f719697dbd93e50c3f9e4f30fef3bad91b2ca0b000bf5507fdc9ee251d1bc2ba471c0c50489cd2e658cf9077eb16f402f58c1fd7c
|
||||
MISC metadata.xml 240 BLAKE2B db7a94e0824784560300a44f9e0e4f845dc10b4c22e51141be4cb1412f46ac3d8551bf0e2eadebcb5e8ac7e8355f0abd8e6bcaba2efdd8d572d599b3eb6259a7 SHA512 22bcc1e658fe41bab3667b90be433ef9fece4fa89120630dab71a21a9376b87b2ae6c5cdab4644c3da6bcc59d8b05af424da858b45a0e54da95751f750735f33
|
||||
@@ -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/lines-of-code</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
@@ -0,0 +1,53 @@
|
||||
# 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"
|
||||
|
||||
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/LinesOfCode
|
||||
doins -r src/.
|
||||
}
|
||||
Reference in New Issue
Block a user