diff options
Diffstat (limited to 'dev-php/nikic-php-parser')
-rw-r--r-- | dev-php/nikic-php-parser/Manifest | 4 | ||||
-rw-r--r-- | dev-php/nikic-php-parser/files/autoload.php | 8 | ||||
-rw-r--r-- | dev-php/nikic-php-parser/metadata.xml | 12 | ||||
-rw-r--r-- | dev-php/nikic-php-parser/nikic-php-parser-4.13.2.ebuild | 27 |
4 files changed, 51 insertions, 0 deletions
diff --git a/dev-php/nikic-php-parser/Manifest b/dev-php/nikic-php-parser/Manifest new file mode 100644 index 000000000000..1004d8940641 --- /dev/null +++ b/dev-php/nikic-php-parser/Manifest @@ -0,0 +1,4 @@ +AUX autoload.php 240 BLAKE2B d1e4a667c9cbcbe0caf269efe7336149099034dcd51d58107a0a9dfaf29876467fcd07a862fbe9e20efb290308bb36e0c7a3af8c35d9ce758bc20e2d84635bdd SHA512 6bf988748ce796b3fdbda6337c8975095378977b920f9c4716a3362b877bc2d2ce7738e74e087f7281c782d57baa9d16112d44b6b62a32f0e77f3e6707cf6dff +DIST nikic-php-parser-4.13.2.tar.gz 153762 BLAKE2B 065c5c494f78c2369a6d5ed2613de768eb58d2984abf2c91fb924071dc89f0c1c660cf06c444670d925d4db050880faa916759587db809b2ea519f4b1f0556da SHA512 9097c05694f983c5cd80919ac81a1eb0052e4b63c4c5b680578c576b04f1637fcccf6d93b918725b0b650a2e331d3121c80bd3d3e4c09e7ceed42fd23af7735c +EBUILD nikic-php-parser-4.13.2.ebuild 664 BLAKE2B 174138f7f29460fd51d476bdb383d53c49d4c9fa28a69d1cbb3a095e5bbe9e2b51be52c31f7eabcaa10e2556b87d7c01b44eac7bb2d052a25be44cef1e4e0d1c SHA512 2940916e780a201d6e74e8f6d7df1420d13288b8d7d2f72a0537cbb51bb1d81604e1116fc058dc6bfe17718eaa33e5ed3c1db11db148af2657134b6df908993c +MISC metadata.xml 345 BLAKE2B b4750cc2dd771797fa80c5729e8a421b77b8bd2c6a5d122d93326d1e6b88ddf759774967929d038535c11d2247947df9c296c331c3d561dd1feeae06a35a7e3c SHA512 62f4f9366f54046820fa36ce526d264e8c259a155cf3e56613e987fcb4abd08ff7e990f91c44d86dd5fd1fa23c093210277748ea24f73696309ae1b95bf8f1ac diff --git a/dev-php/nikic-php-parser/files/autoload.php b/dev-php/nikic-php-parser/files/autoload.php new file mode 100644 index 000000000000..76352b3bf039 --- /dev/null +++ b/dev-php/nikic-php-parser/files/autoload.php @@ -0,0 +1,8 @@ +<?php +/* Autoloader for dev-php/nikic-PHP-Parser */ + +if (!class_exists('Fedora\\Autoloader\\Autoload', false)) { + require_once '/usr/share/php/Fedora/Autoloader/autoload.php'; +} + +Fedora\Autoloader\Autoload::addPsr4('PhpParser\\', __DIR__); diff --git a/dev-php/nikic-php-parser/metadata.xml b/dev-php/nikic-php-parser/metadata.xml new file mode 100644 index 000000000000..24d84f3f64d5 --- /dev/null +++ b/dev-php/nikic-php-parser/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> + </maintainer> + <stabilize-allarches/> + <upstream> + <remote-id type="github">nikic/PHP-Parser</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-php/nikic-php-parser/nikic-php-parser-4.13.2.ebuild b/dev-php/nikic-php-parser/nikic-php-parser-4.13.2.ebuild new file mode 100644 index 000000000000..17ac6a0df823 --- /dev/null +++ b/dev-php/nikic-php-parser/nikic-php-parser-4.13.2.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MY_PN="PHP-Parser" + +DESCRIPTION="PHP 5.2 to PHP 8.0 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" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86" +IUSE="" + +S="${WORKDIR}/${MY_PN}-${PV}" + +RDEPEND="dev-php/fedora-autoloader + >=dev-lang/php-7.1:*[tokenizer(-)]" + +src_install() { + insinto /usr/share/php/nikic + doins -r lib/* + insinto /usr/share/php/nikic/PhpParser/ + doins "${FILESDIR}/autoload.php" +} |