summaryrefslogtreecommitdiff
path: root/dev-php/theseer-tokenizer
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-php/theseer-tokenizer
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-php/theseer-tokenizer')
-rw-r--r--dev-php/theseer-tokenizer/Manifest4
-rw-r--r--dev-php/theseer-tokenizer/files/autoload.php20
-rw-r--r--dev-php/theseer-tokenizer/metadata.xml11
-rw-r--r--dev-php/theseer-tokenizer/theseer-tokenizer-1.1.0.ebuild35
4 files changed, 70 insertions, 0 deletions
diff --git a/dev-php/theseer-tokenizer/Manifest b/dev-php/theseer-tokenizer/Manifest
new file mode 100644
index 000000000000..d3cdbd2f72e6
--- /dev/null
+++ b/dev-php/theseer-tokenizer/Manifest
@@ -0,0 +1,4 @@
+AUX autoload.php 740 BLAKE2B 1776060d0cbd86a165e293cf24ba31c7c6eef748f7d34681d110f1f99f62909f6619f4917743a995c2c9f2edc5de99b5762d3997d09f14c66a6bfe3569f5e17a SHA512 23ec36f9afc24a4df46a866376db86727127351a1c6d9c16f864804ff31fe64c0c0c8a8306fb1a91fce0dd165cbf5fb02cbe545b4f00dc96bcff2dcce7a82b7c
+DIST theseer-tokenizer-1.1.0.tar.gz 10163 BLAKE2B b2360f901d60f784db2045912707a8e293a55967d60d4e72168a1c4b0c9a2d5bdb739fbed9bfec02075476e7bf6762eb1cc7e36870b84fcc341b609527579ca2 SHA512 8b500565dc0d6c8513db3aa72a7ee1fa04510a712ce9b0977feccddc6b2dae53825e39182d43508e196f326776115789e81697116418f6f9f63d08f0c05d0543
+EBUILD theseer-tokenizer-1.1.0.ebuild 789 BLAKE2B 4ad456d6883e1b3341c203e042b98745c18ca2df690d32a3b04eba43b9912dadff15019937e2e0dad2d3a13166799487d6f5475fcb6f4cb98d81aa02a185534f SHA512 384095d3444136a3bda2ef0c91b159e626d92b177a4663ee8d8ddb1449cb2dad2689fbf54ffbead1b5bb608c77431e4337e51cc44774fb18d6cf3090fa02e932
+MISC metadata.xml 321 BLAKE2B c4c16164af66494e41a3bfe90f4943c905560440eaea9de1a4f82148e1cdc353f9b6871efb618af4ab7ddb8c9fa1dfd931e0610b79c41750744aa6e5dd70580d SHA512 75a4155fe11d88a9d1bde7d46f68954c175c2b8d89872bd53496f11ffd22aa4cbf9f487e36217522e7201aae85c089422a3c7bea3fdec21fc3048b20aad6e5a9
diff --git a/dev-php/theseer-tokenizer/files/autoload.php b/dev-php/theseer-tokenizer/files/autoload.php
new file mode 100644
index 000000000000..67f5bd3506e0
--- /dev/null
+++ b/dev-php/theseer-tokenizer/files/autoload.php
@@ -0,0 +1,20 @@
+<?php
+/* Autoloader for dev-php/theseer-tokenizer */
+
+if (!class_exists('Fedora\\Autoloader\\Autoload', false)) {
+ require_once 'Fedora/Autoloader/autoload.php';
+}
+
+\Fedora\Autoloader\Autoload::addClassMap(
+ [
+ 'theseer\\tokenizer\\exception' => '/Exception.php',
+ 'theseer\\tokenizer\\namespaceuri' => '/NamespaceUri.php',
+ 'theseer\\tokenizer\\namespaceuriexception' => '/NamespaceUriException.php',
+ 'theseer\\tokenizer\\token' => '/Token.php',
+ 'theseer\\tokenizer\\tokencollection' => '/TokenCollection.php',
+ 'theseer\\tokenizer\\tokencollectionexception' => '/TokenCollectionException.php',
+ 'theseer\\tokenizer\\tokenizer' => '/Tokenizer.php',
+ 'theseer\\tokenizer\\xmlserializer' => '/XMLSerializer.php',
+ ],
+ __DIR__
+);
diff --git a/dev-php/theseer-tokenizer/metadata.xml b/dev-php/theseer-tokenizer/metadata.xml
new file mode 100644
index 000000000000..ba2f818dd93c
--- /dev/null
+++ b/dev-php/theseer-tokenizer/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>php-bugs@gentoo.org</email>
+ <name>PHP</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">theseer/tokenizer</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-php/theseer-tokenizer/theseer-tokenizer-1.1.0.ebuild b/dev-php/theseer-tokenizer/theseer-tokenizer-1.1.0.ebuild
new file mode 100644
index 000000000000..2f736a8e8645
--- /dev/null
+++ b/dev-php/theseer-tokenizer/theseer-tokenizer-1.1.0.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Convert tokenized PHP source code into XML and other formats"
+HOMEPAGE="https://github.com/theseer/tokenizer"
+SRC_URI="${HOMEPAGE}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
+IUSE="test"
+
+S="${WORKDIR}/tokenizer-${PV}"
+
+RDEPEND="dev-php/fedora-autoloader
+ >=dev-lang/php-7.0:*[tokenizer,xmlwriter]"
+
+DEPEND="test? ( ${RDEPEND} dev-php/phpunit )"
+
+src_prepare() {
+ cp "${FILESDIR}/autoload.php" src/ || die
+ default
+}
+
+src_install() {
+ insinto /usr/share/php/TheSeer/Tokenizer
+ doins src/*.php
+ dodoc README.md
+}
+
+src_test() {
+ phpunit || die "Unit testing failed!"
+}