diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-php/PEAR-PHP_Beautifier |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-php/PEAR-PHP_Beautifier')
4 files changed, 112 insertions, 0 deletions
diff --git a/dev-php/PEAR-PHP_Beautifier/Manifest b/dev-php/PEAR-PHP_Beautifier/Manifest new file mode 100644 index 000000000000..3fe13acd3d9b --- /dev/null +++ b/dev-php/PEAR-PHP_Beautifier/Manifest @@ -0,0 +1,6 @@ +AUX use_default_error_reporting.patch 1576 SHA256 c8c13794e5ee62d8bc5a62f7cd5242028870bbdf24c1bf539b38adac44726de0 SHA512 f1e6c53c9dda6d15ea5609e07986d3ed8206152b554cdb2ad20c702128d8b3a9e757f3fcc2ef2c6e9ef7501ca169786301261bd6fb4bc57d946322853d20c2c8 WHIRLPOOL 8b0a82cfdcf1cd958ec3d367f9851a7558f218e7e57146abdcecf1600f089982b66eae3e57715be387c434742afa60bd9aa81b66126a6ea1fa4af93ac2e6d1fa +DIST PHP_Beautifier-0.1.15.tgz 74408 SHA256 f4617b1597436e563140c4bd598c247c58d2edc9b32f52ed258940073142955e SHA512 1e2c7060295c6a13424339e7d45a5dfa9b02749baeb96f8efe55b4951243a3285ddffc815ad0432aec7a710646bdae33bd40abe723faf4ff35a50dad2258efd6 WHIRLPOOL 6a846746fc7427849a408df5f8ccbaa147f22c60b425518211fc71bb9c7982fa6249a1c057a00a5e631a82e061edf1ffe1ccc2233bc3a33bcfb3eac92fc566d3 +EBUILD PEAR-PHP_Beautifier-0.1.15-r2.ebuild 1087 SHA256 b3fe33c161486f9707c222f5c5a3d0fb02acc39411b536bb437214cf345d13c5 SHA512 94a57982857cc96268104bd74b4198f9aa9478d798bfe3b8c21066c2522b8dfea6365b61be70dc27073d69aa98ae40d99bdd06d9a29839cbbc8ec079f9d69aac WHIRLPOOL 113427d568930c7f8e9532ef6c38bef309aac057ca9e2d6b2cfbddd3bb10fb8e1c4374218e77d6c30b69363d11f7bc0d3789ad799b245a264ba95ce7d831e646 +MISC ChangeLog 2470 SHA256 2e8e11367ed000f04414e9847cfdc341fcb7df7a446ebc833d9c1ee45971a016 SHA512 10d4c4c09e23c93648fd3a848feca145f92ba33df61e4b698cf5094cd4daec74f48401da08b8db074d2da2711c499babdfe40da3a37eac46501eee231b7ea4a5 WHIRLPOOL 40ad1e18087aa8697677637a4e42c2a5274ede86db04ab936c23c85cb220110de0941a1f826df4e8b67aff9614325c7c1eafc3a8bd8f521d4d4cd1ca15362409 +MISC ChangeLog-2015 1382 SHA256 d435d389cf77b16a0505dbeb1bf481abf50bb7ab3734adcd9956df274dc3b7e9 SHA512 b37f5b7f2fb308a8294adb56542a7ef49c7c27841992184b9c5bf1f2916d09651b164c2912541fc816e5e22806d8abfc04657908885b74edd183407cdb7bf17c WHIRLPOOL ebec30542e947bf70e4f3424082144e9b8b371a0b8803a389f3a9c0516e05a23f92b3062eecdcd6a6bdd7c933ce48df0319d8a8719a099093957e93d83f086eb +MISC metadata.xml 557 SHA256 3ca73654bd488b2377b650b005bb5102db4c6f31a28d7c772391d699d2653263 SHA512 da17e6471c97a0ed98107a29a6569ecc69c54c1bf984eab09a3402858a18a69d7471ae55571bea4c9b84fae96ef8bde166c94a4b587327d7d20249cd06653e8f WHIRLPOOL 66223a71117a1f200e631516aefde3d247f9c62de14417bc7c3aece52651c972c66c8555903c461c308ba022a3a1dd5157814e82b7211043d9c5bbbb8fcb7208 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 new file mode 100644 index 000000000000..933671ed3713 --- /dev/null +++ b/dev-php/PEAR-PHP_Beautifier/PEAR-PHP_Beautifier-0.1.15-r2.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2017 Gentoo Foundation +# 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="http://pear.php.net/package/${MY_PN}" +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 new file mode 100644 index 000000000000..cf1019b3399c --- /dev/null +++ b/dev-php/PEAR-PHP_Beautifier/files/use_default_error_reporting.patch @@ -0,0 +1,44 @@ +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 new file mode 100644 index 000000000000..6ef7bb57383b --- /dev/null +++ b/dev-php/PEAR-PHP_Beautifier/metadata.xml @@ -0,0 +1,18 @@ +<?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> + <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> |