From 37ad9daf1376d2676488001f9950748b64eebbe6 Mon Sep 17 00:00:00 2001 From: Brian Evans Date: Thu, 17 Feb 2022 13:58:12 -0500 Subject: dev-php/sebastian-complexity: New package Signed-off-by: Brian Evans --- dev-php/sebastian-complexity/Manifest | 1 + .../sebastian-complexity/files/autoload-2.0.2.php | 20 ++++++++++++++++ dev-php/sebastian-complexity/metadata.xml | 12 ++++++++++ .../sebastian-complexity-2.0.2.ebuild | 27 ++++++++++++++++++++++ 4 files changed, 60 insertions(+) create mode 100644 dev-php/sebastian-complexity/Manifest create mode 100644 dev-php/sebastian-complexity/files/autoload-2.0.2.php create mode 100644 dev-php/sebastian-complexity/metadata.xml create mode 100644 dev-php/sebastian-complexity/sebastian-complexity-2.0.2.ebuild (limited to 'dev-php') 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 @@ + '/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 @@ + + + + + php-bugs@gentoo.org + PHP + + + + sebastianbergmann/complexity + + 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 +} -- cgit v1.2.3-65-gdbad