Added a lot of PHP packages for the defunct volkszaehler ebuild
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
AUX autoload.php 123 BLAKE2B ea71df13831faad79b9729edc34ac7f7fa461464d9a735968316970dd44fe2066e780e6a91ebde28b1330933e6afeb4d657e76f34a8cb5d42c23923b03a7d649 SHA512 e1ce3d3b1bc9e6572079a042b8e57ae217012386221d5bdff97aca46921c974a46c5e01e2f293e04d3385f6d15dfc9eabd75496f762560ae8f63545890227399
|
||||
DIST sebastian-code-unit-reverse-lookup-4.0.1.tar.gz 4137 BLAKE2B 066dc4715b7f876227cc0ff2b0ee4db8b66c766e8fd3eac9ea82027b412db76f9238c8569f31001401c946868c5118ca4762f6a14af6b57663e43b4e86732816 SHA512 251c96f46afc48f891899bcc7aadf38cc1441f395a1c0e204c498092bcf6d65d27afc2ca5cdcfecdceaaced300a5c6d042cbfb6509573543df346577547b357d
|
||||
EBUILD sebastian-code-unit-reverse-lookup-4.0.1.ebuild 1231 BLAKE2B 844f1e09ce5ec91513e33c4c85ace79ea6ae7c23e117c67595964a64a223b02eb69bdea04e3be28af45f64f174e174aed0a2c955b865df69fa7163d1ec57b407 SHA512 817791da4332cb5d28e29aea8604d893b23d62e27dc0c02bcbb16df68c84784473d70c2f5248a7d4ba5d7108cf448d0c0ceae4431c24a3158e135777b3c7ab69
|
||||
MISC metadata.xml 655 BLAKE2B 14d5f2b0702e57212c251262596f65460fe0bbf334c2ceedec5103c852adaad734dc6bf348d9bbd086e5a68e23b4b348bf1421ba5b9f8b05cc9bec66bf40d45d SHA512 fb6629e81076e13e7666845b4f0ad409b1e0a57c56cbcac5e8c7e146327b9e242c72974f9d6c70a08b17eac705a2f378304c46ef5c17cf0456ab43f78e732b5b
|
||||
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
require_once 'Fedora/Autoloader/autoload.php';
|
||||
|
||||
\Fedora\Autoloader\Dependencies::required([
|
||||
'src/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 PHP library, which is capable to do looks up
|
||||
which function or method a line of code belongs to.
|
||||
</longdescription>
|
||||
<upstream>
|
||||
<remote-id type="github">sebastianbergmann/code-unit-reverse-lookup</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
+49
@@ -0,0 +1,49 @@
|
||||
# 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="Looks up which function or method a line of code belongs to"
|
||||
HOMEPAGE="https://github.com/sebastianbergmann/code-unit-reverse-lookup"
|
||||
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"
|
||||
phpunit --testdox || die "phpunit failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
einstalldocs
|
||||
insinto /usr/share/php/SebastianBergmann/CodeUnitReverseLookup
|
||||
doins -r src/.
|
||||
}
|
||||
Reference in New Issue
Block a user