Added a lot of PHP packages for the defunct volkszaehler ebuild
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
AUX autoload-test.php 205 BLAKE2B 390620aaf7b228dfad29105767f0fb3bd3588f9032260cda6dc5f32aea77c7ac1da8ec58d154236104afad13b001b81c132e85c74dc20033cbeecffb2f177f6e SHA512 82cee5336a679bceb874c6d9c56de67c72c23c9d308bfd0de46b42451a6135da490cf804d75def0ae3f6362da9f961ff9ba22288992d6050be286360f136b17c
|
||||
AUX autoload.php 116 BLAKE2B 2d17e10ebab8e49bf6fc2e3a482e35f18070b885745a62d6e4109a3e444ee749111107032645c8ddb89383baa236833f19b4c843c8bf68c6a83355d9b027d8bd SHA512 a9fc398934e3efe9d27dff95c203744d507a4e336d87758c60309e12f43b2a65142c6b88863b43bb3756a097749e217be3cc0312f65ab5524c43b7c1e51e635f
|
||||
DIST nikic-php-parser-5.6.1.tar.gz 151993 BLAKE2B 728896edeab032c957e7af8dcd5cb48264fc81e9e0fd7ffe392ff8392f608cd5175538fdb73d33047004feabde6e6a9724f89561fbbf6d146dce4409e29de5ab SHA512 bcbdf49be365a12dac32182b8608518d9d5f0b22df29f3263d93c9c92ef42718c4d339a1cc0e5b0ed62591b0331f32088b6005ac3d1bca6798739e4817c750c9
|
||||
EBUILD nikic-php-parser-5.6.1.ebuild 1112 BLAKE2B adb5f207095fcebd9117d4b8937a041d920581b19c9cace0072056d3aabda6e3f7a084f03f511e2a989113e3b084ea4950e3a45a955453348098be4435abb86c SHA512 2d3ac348ccd4d66d4163ace4c3c02082610f368f0b948d3a59556fbde3c9db2c59e44be812f12e70cd4889e93e28cee3bf2634b03230c6920b759afbd4e351ec
|
||||
MISC metadata.xml 625 BLAKE2B 886e9844c2147082cf65624609597e4baa7949b6c4fca4df77952d4b54bb7106f5bf98d08565a8d7fe2a4bc55a5b28761ba03cce8e7f258927647434fcc2052f SHA512 3cef575c310f4cb623841e5b398d9986855d8cace661d15fa3e6d54d05a641e3a0382cc23b389f9de6fcf95a6bae4ba58e2f0fa601a71e4c4486d29553555b47
|
||||
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
require_once 'Fedora/Autoloader/autoload.php';
|
||||
|
||||
Fedora\Autoloader\Autoload::addPsr4('PhpParser\\', 'test/PhpParser/');
|
||||
|
||||
\Fedora\Autoloader\Dependencies::required([
|
||||
'lib/PhpParser/autoload.php'
|
||||
]);
|
||||
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
|
||||
require_once 'Fedora/Autoloader/autoload.php';
|
||||
|
||||
Fedora\Autoloader\Autoload::addPsr4('PhpParser\\', __DIR__);
|
||||
@@ -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 parser written in PHP.
|
||||
Its purpose is to simplify static code analysis and manipulation.
|
||||
</longdescription>
|
||||
<upstream>
|
||||
<remote-id type="github">nikic/PHP-Parser</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
@@ -0,0 +1,46 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
MY_PN="PHP-Parser"
|
||||
|
||||
DESCRIPTION="A PHP parser written in PHP"
|
||||
HOMEPAGE="https://github.com/nikic/PHP-Parser"
|
||||
SRC_URI="https://github.com/nikic/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/${MY_PN}-${PV}"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="test"
|
||||
RESTRICT="test"
|
||||
PROPERTIES="test_network"
|
||||
|
||||
RDEPEND="dev-lang/php:*[tokenizer]
|
||||
dev-php/fedora-autoloader"
|
||||
BDEPEND="test? ( dev-php/composer
|
||||
dev-php/phpunit )"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
install -D -m 644 "${FILESDIR}"/autoload.php \
|
||||
lib/PhpParser/autoload.php || die "install failed"
|
||||
install -D -m 644 "${FILESDIR}"/autoload-test.php \
|
||||
vendor/autoload.php || die "install test failed"
|
||||
}
|
||||
|
||||
src_test() {
|
||||
composer require -d "${T}" --prefer-source \
|
||||
--dev "${PN/-/\/}:${PV}" || die "composer failed"
|
||||
cp -r "${T}"/vendor/"${PN/-/\/}"/{phpunit.xml.dist,test} "${S}" \
|
||||
|| die "cp tests failed"
|
||||
phpunit --testdox || die "phpunit failed"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
einstalldocs
|
||||
insinto /usr/share/php/nikic
|
||||
doins -r lib/.
|
||||
}
|
||||
Reference in New Issue
Block a user