diff options
author | Brian Evans <grknight@gentoo.org> | 2022-02-17 13:29:19 -0500 |
---|---|---|
committer | Brian Evans <grknight@gentoo.org> | 2022-02-17 13:58:38 -0500 |
commit | a76597dad96f44a3bfe32137fd85f11b409e8f09 (patch) | |
tree | 04b8ed7fcc02b77c5d2239e87765dc94b78964c9 /dev-php | |
parent | dev-php/theseer-tokenizer: Drop old (diff) | |
download | gentoo-a76597dad96f44a3bfe32137fd85f11b409e8f09.tar.gz gentoo-a76597dad96f44a3bfe32137fd85f11b409e8f09.tar.bz2 gentoo-a76597dad96f44a3bfe32137fd85f11b409e8f09.zip |
dev-php/sebastian-lines-of-code: New package
Signed-off-by: Brian Evans <grknight@gentoo.org>
Diffstat (limited to 'dev-php')
4 files changed, 59 insertions, 0 deletions
diff --git a/dev-php/sebastian-lines-of-code/Manifest b/dev-php/sebastian-lines-of-code/Manifest new file mode 100644 index 000000000000..7f00e06c886c --- /dev/null +++ b/dev-php/sebastian-lines-of-code/Manifest @@ -0,0 +1 @@ +DIST sebastian-lines-of-code-1.0.3.tar.gz 4438 BLAKE2B 1142dabe91907fdcb469fe223ba292b8444f093c6dfa5d4a428357db59635aa760ccda5b8f077def130eeba3365f5d0f50fad465300ba8028edd9d46f99defbc SHA512 09812716a68586cad8304fd14ee4957de68fff6cfabf9982a126ba19d1990a4822962ccbb384170082b18f0ab081d5beeec06c633f4c374f21718a616a054dfd diff --git a/dev-php/sebastian-lines-of-code/files/autoload-1.0.3.php b/dev-php/sebastian-lines-of-code/files/autoload-1.0.3.php new file mode 100644 index 000000000000..5c824ac8c0ac --- /dev/null +++ b/dev-php/sebastian-lines-of-code/files/autoload-1.0.3.php @@ -0,0 +1,19 @@ +<?php +/* Autoloader for dev-php/sebastian-linesofcode */ + +if (!class_exists('Fedora\\Autoloader\\Autoload', false)) { + require_once '/usr/share/php/Fedora/Autoloader/autoload.php'; +} + +\Fedora\Autoloader\Autoload::addClassMap( + [ + 'sebastianbergmann\linesofcode\linesofcode' => '/LinesOfCode.php', + 'sebastianbergmann\linesofcode\linecountingvisitor' => '/LineCountingVisitor.php', + 'sebastianbergmann\linesofcode\counter' => '/Counter.php', + 'sebastianbergmann\linesofcode\exception' => '/Exception/Exception.php', + 'sebastianbergmann\linesofcode\illogicalvaluesexception' => '/Exception/IllogicalValuesException.php', + 'sebastianbergmann\linesofcode\negativevalueexception' => '/Exception/NegativeValueException.php', + 'sebastianbergmann\linesofcode\runtimeexception' => '/Exception/RuntimeException.php', + ], + __DIR__ +); diff --git a/dev-php/sebastian-lines-of-code/metadata.xml b/dev-php/sebastian-lines-of-code/metadata.xml new file mode 100644 index 000000000000..233d89157577 --- /dev/null +++ b/dev-php/sebastian-lines-of-code/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">sebastianbergmann/lines-of-code</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-php/sebastian-lines-of-code/sebastian-lines-of-code-1.0.3.ebuild b/dev-php/sebastian-lines-of-code/sebastian-lines-of-code-1.0.3.ebuild new file mode 100644 index 000000000000..2d708710a6d3 --- /dev/null +++ b/dev-php/sebastian-lines-of-code/sebastian-lines-of-code-1.0.3.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="${PN/sebastian-//}" + +DESCRIPTION="Library for counting the lines of code in PHP source code" +HOMEPAGE="https://phpunit.de" +SRC_URI="https://github.com/sebastianbergmann/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +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-php/nikic-php-parser + >=dev-lang/php-7.3:*" + +src_install() { + insinto /usr/share/php/SebastianBergmann/LinesOfCode + doins -r src/* + newins "${FILESDIR}/autoload-1.0.3.php" autoload.php +} |