diff options
author | Viorel Munteanu <ceamac@gentoo.org> | 2024-07-11 20:35:51 +0300 |
---|---|---|
committer | Viorel Munteanu <ceamac@gentoo.org> | 2024-07-11 21:43:38 +0300 |
commit | 4e79f8711635e9c75a6d1053524cead456303dbd (patch) | |
tree | e319b0b260495d0abc5296a07cad59e10cc406e4 /dev-php | |
parent | dev-php/PEAR-OLE: treeclean (diff) | |
download | gentoo-4e79f8711635e9c75a6d1053524cead456303dbd.tar.gz gentoo-4e79f8711635e9c75a6d1053524cead456303dbd.tar.bz2 gentoo-4e79f8711635e9c75a6d1053524cead456303dbd.zip |
dev-php/PEAR-PHP_Beautifier: treeclean
Bug: https://bugs.gentoo.org/933998
Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>
Diffstat (limited to 'dev-php')
4 files changed, 0 insertions, 107 deletions
diff --git a/dev-php/PEAR-PHP_Beautifier/Manifest b/dev-php/PEAR-PHP_Beautifier/Manifest deleted file mode 100644 index 973161acd3b8..000000000000 --- a/dev-php/PEAR-PHP_Beautifier/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST PHP_Beautifier-0.1.15.tgz 74408 BLAKE2B 9d9a59175b404592d43b2539f47bb33807c23268408e88d570974633f17c3bbd2a05909c80ec966df73e7571a23462a93ec789da14fad80d0361b4a2dea43bf6 SHA512 1e2c7060295c6a13424339e7d45a5dfa9b02749baeb96f8efe55b4951243a3285ddffc815ad0432aec7a710646bdae33bd40abe723faf4ff35a50dad2258efd6 diff --git a/dev-php/PEAR-PHP_Beautifier/PEAR-PHP_Beautifier-0.1.15-r2.ebuild b/dev-php/PEAR-PHP_Beautifier/PEAR-PHP_Beautifier-0.1.15-r2.ebuild deleted file mode 100644 index 0349d6ede1d7..000000000000 --- a/dev-php/PEAR-PHP_Beautifier/PEAR-PHP_Beautifier-0.1.15-r2.ebuild +++ /dev/null @@ -1,44 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -MY_PN="${PN/PEAR-/}" -MY_P="${MY_PN}-${PV}" - -DESCRIPTION="Code Beautifier for PHP" -HOMEPAGE="https://pear.php.net/package/PHP_Beautifier" -SRC_URI="http://download.pear.php.net/package/${MY_P}.tgz" -LICENSE="PHP-3.01" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="cli examples" - -# Require automagic dependencies unconditionally to avoid surprises. -RDEPEND="dev-lang/php:*[bzip2,cli?,tokenizer] - dev-php/PEAR-Archive_Tar - dev-php/PEAR-Log - dev-php/PEAR-PEAR - cli? ( dev-php/PEAR-Console_Getopt )" - -S="${WORKDIR}/${MY_P}" - -PATCHES=( "${FILESDIR}/use_default_error_reporting.patch" ) - -src_prepare() { - default - shopt -s globstar - for file in scripts/php_beautifier **/*.php; do - sed -i "s|@package_version@|${PV}|g" "${file}" || die - sed -i "s|@php_bin@|${EPREFIX}/usr/bin/php|g" "${file}" || die - done - shopt -u globstar -} - -src_install() { - insinto /usr/share/php/PHP - doins Beautifier.php - doins -r Beautifier - use examples && dodoc -r examples - use cli && dobin scripts/php_beautifier -} diff --git a/dev-php/PEAR-PHP_Beautifier/files/use_default_error_reporting.patch b/dev-php/PEAR-PHP_Beautifier/files/use_default_error_reporting.patch deleted file mode 100644 index cf1019b3399c..000000000000 --- a/dev-php/PEAR-PHP_Beautifier/files/use_default_error_reporting.patch +++ /dev/null @@ -1,44 +0,0 @@ -From 39e6b5605bd15db6a1f2f223dede9c8d2265140c Mon Sep 17 00:00:00 2001 -From: Michael Orlitzky <michael@orlitzky.com> -Date: Mon, 9 Jan 2017 22:34:30 -0500 -Subject: [PATCH 1/1] Use the default PHP error_reporting value. - -The php_beautifier script triggers some strict/deprecation warnings -with newer versions of PHP. With error_reporting = E_ALL, they are -shown to the user. Instead, we can at least respect the default -value of error_reporting from php.ini which (on Gentoo, anyway) -hides strict/deprecation warnings. ---- - Beautifier.php | 2 +- - scripts/php_beautifier | 2 +- - 2 files changed, 2 insertions(+), 2 deletions(-) - -diff --git a/Beautifier.php b/Beautifier.php -index 584ac4d..90d8d0b 100755 ---- a/Beautifier.php -+++ b/Beautifier.php -@@ -19,7 +19,7 @@ - * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id:$ - */ --error_reporting(E_ALL); -+// error_reporting(E_ALL); - // Before all, test the tokenizer extension - if (!extension_loaded('tokenizer')) { - throw new Exception("Compile php with tokenizer extension. Use --enable-tokenizer or don't use --disable-all on configure."); -diff --git a/scripts/php_beautifier b/scripts/php_beautifier -index 255a264..6e87f4e 100755 ---- a/scripts/php_beautifier -+++ b/scripts/php_beautifier -@@ -52,7 +52,7 @@ - */ - require_once 'PHP/Beautifier/Batch.php'; - define('PHP_Beautifier_WINDOWS', substr(PHP_OS, 0, 3) == 'WIN'); -- error_reporting(E_ALL); -+ // error_reporting(E_ALL); - // get log object - $oLog = PHP_Beautifier_Common::getLog(); - --- -2.10.2 - diff --git a/dev-php/PEAR-PHP_Beautifier/metadata.xml b/dev-php/PEAR-PHP_Beautifier/metadata.xml deleted file mode 100644 index b7ebf25c8498..000000000000 --- a/dev-php/PEAR-PHP_Beautifier/metadata.xml +++ /dev/null @@ -1,18 +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> - <use> - <flag name="cli"> - Require <pkg>dev-lang/php</pkg> to be built with the "cli" SAPI - and install the php_beautifier script. - </flag> - </use> - <upstream> - <remote-id type="github">clbustos/PHP_Beautifier</remote-id> - <remote-id type="pear">PHP_Beautifier</remote-id> - </upstream> -</pkgmetadata> |