public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Brian Evans" <grknight@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-php/PHP_TokenStream/files/, dev-php/PHP_TokenStream/
Date: Thu,  9 Mar 2017 16:23:26 +0000 (UTC)	[thread overview]
Message-ID: <1489076562.01564d714845c1edde79d4db2068bde43fdd693b.grknight@gentoo> (raw)

commit:     01564d714845c1edde79d4db2068bde43fdd693b
Author:     Brian Evans <grknight <AT> gentoo <DOT> org>
AuthorDate: Thu Mar  9 15:50:37 2017 +0000
Commit:     Brian Evans <grknight <AT> gentoo <DOT> org>
CommitDate: Thu Mar  9 16:22:42 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01564d71

dev-php/PHP_TokenStream: Version bump and use composer autoloading

Package-Manager: Portage-2.3.4, Repoman-2.3.2

 dev-php/PHP_TokenStream/Manifest                   |  1 +
 .../PHP_TokenStream/PHP_TokenStream-1.4.11.ebuild  | 35 ++++++++++++++++++++++
 dev-php/PHP_TokenStream/files/autoload.php         | 15 ++++++++++
 3 files changed, 51 insertions(+)

diff --git a/dev-php/PHP_TokenStream/Manifest b/dev-php/PHP_TokenStream/Manifest
index 61874e409be..59f15ca5ae9 100644
--- a/dev-php/PHP_TokenStream/Manifest
+++ b/dev-php/PHP_TokenStream/Manifest
@@ -1 +1,2 @@
 DIST PHP_TokenStream-1.1.3.tgz 9860 SHA256 9be9fd9e9bcd096d1d6708024513281f3bb8cd08e48a20acaf575a6c7b5a16b8 SHA512 2751acabc340f05c59bb46f8fb9e47ff25a5f8a6503f1525ed4977d96f2044ad0f9714b40f573d0b845aaf47424a89c3d9e7cfdada67c58d650bb98ee7b47772 WHIRLPOOL 26b03e43602289629bc7de579c947d4ed995d49ee2fe150981c3de8f40f95b3e3c7ff326d7f64bdd28421b4c719a465e71386a64369b6d375947d5ef3ed7e909
+DIST PHP_TokenStream-1.4.11.tar.gz 13388 SHA256 6b95960c1a162d321da8b7d42bc9361bdcc991478e0db93a659a433c2b6a9008 SHA512 4e8d8d1eb16169d46b64a43d91f3066d49fe8e3f184d90c5c7cf4234ebfe4eac271a811744b201f05dc86976b3c5b8ad4ae9f2532165a3849980663f1ac5852e WHIRLPOOL b8953000433242b2eef7eda3827f7e9bce548e163b231a605ab73723cdc855c5fc5fbab1f51cd1221c469a9b1b5d35028d45261c9fbce429c4cb6a8e85230c5e

diff --git a/dev-php/PHP_TokenStream/PHP_TokenStream-1.4.11.ebuild b/dev-php/PHP_TokenStream/PHP_TokenStream-1.4.11.ebuild
new file mode 100644
index 00000000000..e9c4604f4fc
--- /dev/null
+++ b/dev-php/PHP_TokenStream/PHP_TokenStream-1.4.11.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+MY_PN="php-token-stream"
+
+DESCRIPTION="Wrapper around PHP's tokenizer extension"
+HOMEPAGE="http://phpunit.de"
+SRC_URI="https://github.com/sebastianbergmann/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+S="${WORKDIR}/${MY_PN}-${PV}"
+
+RDEPEND="dev-php/fedora-autoloader
+	|| (
+		dev-lang/php:5.6[tokenizer]
+		dev-lang/php:7.0[tokenizer]
+		dev-lang/php:7.1[tokenizer]
+	)"
+
+src_install() {
+	insinto /usr/share/php/PHP/Token
+	doins -r src/*
+	doins "${FILESDIR}/autoload.php"
+}
+
+pkg_postinst() {
+	ewarn "This library now loads via /usr/share/php/PHP/Token/autoload.php"
+	ewarn "Please update any scripts to require the autoloader"
+}

diff --git a/dev-php/PHP_TokenStream/files/autoload.php b/dev-php/PHP_TokenStream/files/autoload.php
new file mode 100644
index 00000000000..5b3aac57ec1
--- /dev/null
+++ b/dev-php/PHP_TokenStream/files/autoload.php
@@ -0,0 +1,15 @@
+<?php
+/* Autoloader for dev-php/PHP_TokenStream */
+
+if (!class_exists('Fedora\\Autoloader\\Autoload', false)) {
+    require_once '/usr/share/php/Fedora/Autoloader/autoload.php';
+}
+
+\Fedora\Autoloader\Autoload::addClassMap(
+    array(
+		'php_token' => '/Token.php',
+		'php_token_stream' => '/Token/Stream.php',
+		'php_token_stream_cachingfactory' => '/Token/Stream/CachingFactory.php',
+    ),
+    __DIR__
+);


             reply	other threads:[~2017-03-09 16:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-09 16:23 Brian Evans [this message]
  -- strict thread matches above, loose matches on Subject: below --
2019-12-19 15:51 [gentoo-commits] repo/gentoo:master commit in: dev-php/PHP_TokenStream/files/, dev-php/PHP_TokenStream/ Brian Evans
2019-12-19 19:47 Brian Evans
2021-02-25 19:23 Brian Evans

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1489076562.01564d714845c1edde79d4db2068bde43fdd693b.grknight@gentoo \
    --to=grknight@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox