diff options
Diffstat (limited to 'dev-php')
-rw-r--r-- | dev-php/PHP_TokenStream/Manifest | 1 | ||||
-rw-r--r-- | dev-php/PHP_TokenStream/PHP_TokenStream-3.1.1.ebuild | 54 | ||||
-rw-r--r-- | dev-php/PHP_TokenStream/files/autoload-3.1.1.php | 47 | ||||
-rw-r--r-- | dev-php/PHP_TokenStream/metadata.xml | 11 |
4 files changed, 0 insertions, 113 deletions
diff --git a/dev-php/PHP_TokenStream/Manifest b/dev-php/PHP_TokenStream/Manifest deleted file mode 100644 index 7dac5c3741ca..000000000000 --- a/dev-php/PHP_TokenStream/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST PHP_TokenStream-3.1.1.tar.gz 14275 BLAKE2B 5300768f79cba17a08f55a58a05744eef55df00fc0f0144612bddd3ba5d0494fe19bd5b74d56b57d345f5d98b63033aa05e6d157c0979be163e51dc7cc5ad19f SHA512 3a1e36d13b8d77d6fe7d1617fc43a8d59b68af6ee6182afdecf5c970c844f7cb63f3056ce7f6aaae17237b948c5ff9862438d823c2eda179e24c1bb4fc4f4e02 diff --git a/dev-php/PHP_TokenStream/PHP_TokenStream-3.1.1.ebuild b/dev-php/PHP_TokenStream/PHP_TokenStream-3.1.1.ebuild deleted file mode 100644 index 3d8abd2336e3..000000000000 --- a/dev-php/PHP_TokenStream/PHP_TokenStream-3.1.1.ebuild +++ /dev/null @@ -1,54 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -USE_PHP="php7-4" -MY_PN="php-token-stream" - -DESCRIPTION="Wrapper around PHP's tokenizer extension" -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="test" - -S="${WORKDIR}/${MY_PN}-${PV}" - -RDEPEND="dev-php/fedora-autoloader - || ( - dev-lang/php:7.2[tokenizer(-)] - dev-lang/php:7.3[tokenizer(-)] - dev-lang/php:7.4[tokenizer(-)] - )" -BDEPEND="test? ( ${RDEPEND} dev-php/phpunit )" -RESTRICT="!test? ( test )" - -src_prepare() { - sed -i -e 's/setUp()/setUp():void/' tests/Token/*.php || die - default -} - -src_install() { - insinto /usr/share/php/PHP/Token - doins -r src/* - newins "${FILESDIR}/autoload-3.1.1.php" autoload.php -} - -src_test() { - mkdir vendor || die - cp "${FILESDIR}/autoload-3.1.1.php" vendor/autoload.php || die - sed -i 's~__DIR__~__DIR__."/../src"~' vendor/autoload.php || die - for target in ${USE_PHP//-/.} ; do - if [ -x /usr/bin/$target ] ; then - ${target} /usr/bin/phpunit -c phpunit.xml || die - fi - done -} - -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-3.1.1.php b/dev-php/PHP_TokenStream/files/autoload-3.1.1.php deleted file mode 100644 index 4e385c87ec24..000000000000 --- a/dev-php/PHP_TokenStream/files/autoload-3.1.1.php +++ /dev/null @@ -1,47 +0,0 @@ -<?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( - [ - 'php_token' => '/Token.php', - 'php_tokenwithscope' => '/Token.php', - 'php_tokenwithscopeandvisibility' => '/Token.php', - 'php_token_open_tag' => '/Token.php', - 'php_token_util' => '/Token/Util.php', - 'php_token_stream' => '/Token/Stream.php', - 'php_token_stream_cachingfactory' => '/Token/Stream/CachingFactory.php', - ], - __DIR__ -); -$_gentooFedAutoload = function() { -$_fedAutoLoadtokens = []; -$_fedAutoLoadtokenSubClasses = ['includes','function','interface','abstract','ampersand','and_equal', -'array','array_cast','as','at','backtick','bad_character','boolean_and','boolean_or','boolean_cast', -'break','caret','case','catch','character','class','class_c','class_name_constant','clone','close_bracket', -'close_curly','close_square','close_tag','colon','comma','comment','concat_equal','const','constant_encapsed_string', -'continue','curly_open','dec','declare','default','div','div_equal','dnumber','do','doc_comment','dollar', -'dollar_open_curly_braces','dot','double_arrow','double_cast','double_colon','double_quotes','echo','else', -'elseif','empty','encapsed_and_whitespace','enddeclare','endfor','endforeach','endif','endswitch','endwhile', -'end_heredoc','equal','eval','exclamation_mark','exit','extends','file','final','for','foreach','func_c','global', -'gt','if','implements','inc','include','include_once','inline_html','instanceof','int_cast','isset','is_equal', -'is_greater_or_equal','is_identical','is_not_equal','is_not_identical','is_smaller_or_equal','line','list', -'lnumber','logical_and','logical_or','logical_xor','lt','method_c','minus','minus_equal','mod_equal','mult', -'mult_equal','new','num_string','object_cast','object_operator','open_bracket','open_curly','open_square', -'open_tag','open_tag_with_echo','or_equal','paamayim_nekudotayim','percent','pipe','plus','plus_equal','print', -'private','protected','public','question_mark','require','require_once','return','semicolon','sl','sl_equal', -'sr','sr_equal','start_heredoc','static','string','string_cast','string_varname','switch','throw','tilde', -'try','unset','unset_cast','use','use_function','var','variable','while','whitespace','xor_equal','halt_compiler', -'dir','goto','namespace','ns_c','ns_separator','callable','insteadof','trait','trait_c','finally','yield', -'ellipsis','pow','pow_equal','coalesce','spaceship','yield_from','coalesce_equal','fn' -]; -foreach($_fedAutoLoadtokenSubClasses as $_fedAutoLoadi) - $_fedAutoLoadtokens["php_token_{$_fedAutoLoadi}"] = '/Token.php'; -\Fedora\Autoloader\Autoload::addClassMap($_fedAutoLoadtokens, __DIR__); -}; -$_gentooFedAutoload(); -unset ($_gentooFedAutoload); - diff --git a/dev-php/PHP_TokenStream/metadata.xml b/dev-php/PHP_TokenStream/metadata.xml deleted file mode 100644 index 92954eeb18a6..000000000000 --- a/dev-php/PHP_TokenStream/metadata.xml +++ /dev/null @@ -1,11 +0,0 @@ -<?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> - <upstream> - <remote-id type="github">sebastianbergmann/php-token-stream</remote-id> - </upstream> -</pkgmetadata> |