diff options
author | Brian Evans <grknight@gentoo.org> | 2022-02-17 13:58:12 -0500 |
---|---|---|
committer | Brian Evans <grknight@gentoo.org> | 2022-02-17 13:58:38 -0500 |
commit | 37ad9daf1376d2676488001f9950748b64eebbe6 (patch) | |
tree | e069bee1925ebee743ce2082cc00c886f17066c7 /dev-php | |
parent | dev-php/sebastian-lines-of-code: New package (diff) | |
download | gentoo-37ad9daf1376d2676488001f9950748b64eebbe6.tar.gz gentoo-37ad9daf1376d2676488001f9950748b64eebbe6.tar.bz2 gentoo-37ad9daf1376d2676488001f9950748b64eebbe6.zip |
dev-php/sebastian-complexity: New package
Signed-off-by: Brian Evans <grknight@gentoo.org>
Diffstat (limited to 'dev-php')
-rw-r--r-- | dev-php/sebastian-complexity/Manifest | 1 | ||||
-rw-r--r-- | dev-php/sebastian-complexity/files/autoload-2.0.2.php | 20 | ||||
-rw-r--r-- | dev-php/sebastian-complexity/metadata.xml | 12 | ||||
-rw-r--r-- | dev-php/sebastian-complexity/sebastian-complexity-2.0.2.ebuild | 27 |
4 files changed, 60 insertions, 0 deletions
diff --git a/dev-php/sebastian-complexity/Manifest b/dev-php/sebastian-complexity/Manifest new file mode 100644 index 000000000000..a4f65cc18eaa --- /dev/null +++ b/dev-php/sebastian-complexity/Manifest @@ -0,0 +1 @@ +DIST sebastian-complexity-2.0.2.tar.gz 4979 BLAKE2B f742e0f3057d7d24963236e2b32841cd6d8fb9b14870e2bfbe1d84cb737008428c9e00db28f5c2f42a61877a4282b3dbd5935c9a3ea4cf93401691c43bab40df SHA512 04773cfac3622eca3d859e9180f8eb5582e3a4124837b2e2cb536b052eeac6fe19dbae81ddbdcc88405de0ff0b202140609e7a5eb435af54faac4b1262c780e7 diff --git a/dev-php/sebastian-complexity/files/autoload-2.0.2.php b/dev-php/sebastian-complexity/files/autoload-2.0.2.php new file mode 100644 index 000000000000..07eb31b7ee93 --- /dev/null +++ b/dev-php/sebastian-complexity/files/autoload-2.0.2.php @@ -0,0 +1,20 @@ +<?php +/* Autoloader for dev-php/sebastian-complexity */ + +if (!class_exists('Fedora\\Autoloader\\Autoload', false)) { + require_once '/usr/share/php/Fedora/Autoloader/autoload.php'; +} + +\Fedora\Autoloader\Autoload::addClassMap( + [ + 'sebastianbergmann\complexity\calculator' => '/Calculator.php', + 'sebastianbergmann\complexity\complexity' => '/Complexity/Complexity.php', + 'sebastianbergmann\complexity\complexitycollection' => '/Complexity/ComplexityCollection.php', + 'sebastianbergmann\complexity\complexitycollectioniterator' => '/Complexity/ComplexityCollectionIterator.php', + 'sebastianbergmann\complexity\complexitycalculatingvisitor' => '/Visitor/ComplexityCalculatingVisitor.php', + 'sebastianbergmann\complexity\cyclomaticcomplexitycalculatingvisitor' => '/Visitor/CyclomaticComplexityCalculatingVisitor.php', + 'sebastianbergmann\complexity\exception' => '/Exception/Exception.php', + 'sebastianbergmann\complexity\runtimeexception' => '/Exception/RuntimeException.php', + ], + __DIR__ +); diff --git a/dev-php/sebastian-complexity/metadata.xml b/dev-php/sebastian-complexity/metadata.xml new file mode 100644 index 000000000000..3f4b99635ae6 --- /dev/null +++ b/dev-php/sebastian-complexity/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/complexity</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-php/sebastian-complexity/sebastian-complexity-2.0.2.ebuild b/dev-php/sebastian-complexity/sebastian-complexity-2.0.2.ebuild new file mode 100644 index 000000000000..21c42e69830b --- /dev/null +++ b/dev-php/sebastian-complexity/sebastian-complexity-2.0.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="${PN/sebastian-//}" + +DESCRIPTION="Library for calculating the complexity of PHP code units" +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/Complexity + doins -r src/* + newins "${FILESDIR}/autoload-2.0.2.php" autoload.php +} |