public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-php/sebastian-lines-of-code/files/, dev-php/sebastian-lines-of-code/
@ 2022-02-17 18:58 Brian Evans
  0 siblings, 0 replies; only message in thread
From: Brian Evans @ 2022-02-17 18:58 UTC (permalink / raw
  To: gentoo-commits

commit:     a76597dad96f44a3bfe32137fd85f11b409e8f09
Author:     Brian Evans <grknight <AT> gentoo <DOT> org>
AuthorDate: Thu Feb 17 18:29:19 2022 +0000
Commit:     Brian Evans <grknight <AT> gentoo <DOT> org>
CommitDate: Thu Feb 17 18:58:38 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a76597da

dev-php/sebastian-lines-of-code: New package

Signed-off-by: Brian Evans <grknight <AT> gentoo.org>

 dev-php/sebastian-lines-of-code/Manifest           |  1 +
 .../files/autoload-1.0.3.php                       | 19 +++++++++++++++
 dev-php/sebastian-lines-of-code/metadata.xml       | 12 ++++++++++
 .../sebastian-lines-of-code-1.0.3.ebuild           | 27 ++++++++++++++++++++++
 4 files changed, 59 insertions(+)

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
+}


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-02-17 18:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-17 18:58 [gentoo-commits] repo/gentoo:master commit in: dev-php/sebastian-lines-of-code/files/, dev-php/sebastian-lines-of-code/ Brian Evans

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox