From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id BE01715817D for ; Tue, 11 Jun 2024 15:56:22 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E058CE29C3; Tue, 11 Jun 2024 15:56:21 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BBD66E29C3 for ; Tue, 11 Jun 2024 15:56:21 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 94D26335D63 for ; Tue, 11 Jun 2024 15:56:20 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 742231A31 for ; Tue, 11 Jun 2024 15:56:18 +0000 (UTC) From: "Michael Orlitzky" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michael Orlitzky" Message-ID: <1718121123.fff161c635ada6f1323ede843f935e661e579c2d.mjo@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-php/PEAR-Console_Table/files/, dev-php/PEAR-Console_Table/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-php/PEAR-Console_Table/PEAR-Console_Table-1.3.1-r1.ebuild dev-php/PEAR-Console_Table/files/fromArray-is-static.patch X-VCS-Directories: dev-php/PEAR-Console_Table/files/ dev-php/PEAR-Console_Table/ X-VCS-Committer: mjo X-VCS-Committer-Name: Michael Orlitzky X-VCS-Revision: fff161c635ada6f1323ede843f935e661e579c2d X-VCS-Branch: master Date: Tue, 11 Jun 2024 15:56:18 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 08713e90-5fad-4918-8dd0-aac0e79290cc X-Archives-Hash: 1ec086a161d2703fc9c19456cceef4a8 commit: fff161c635ada6f1323ede843f935e661e579c2d Author: Michael Orlitzky gentoo org> AuthorDate: Tue Jun 11 15:51:07 2024 +0000 Commit: Michael Orlitzky gentoo org> CommitDate: Tue Jun 11 15:52:03 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fff161c6 dev-php/PEAR-Console_Table: update EAPI 7 -> 8 Closes: https://bugs.gentoo.org/774816 Signed-off-by: Michael Orlitzky gentoo.org> .../PEAR-Console_Table-1.3.1-r1.ebuild | 26 ++++++++++++++++++++++ .../files/fromArray-is-static.patch | 22 ++++++++++++++++++ 2 files changed, 48 insertions(+) diff --git a/dev-php/PEAR-Console_Table/PEAR-Console_Table-1.3.1-r1.ebuild b/dev-php/PEAR-Console_Table/PEAR-Console_Table-1.3.1-r1.ebuild new file mode 100644 index 000000000000..2e39a052a20f --- /dev/null +++ b/dev-php/PEAR-Console_Table/PEAR-Console_Table-1.3.1-r1.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit php-pear-r2 + +DESCRIPTION="Class that makes it easy to build console style tables" +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~hppa ~ppc64 ~sparc ~x86" +IUSE="test" +RESTRICT="!test? ( test )" +BDEPEND="test? ( dev-php/pear )" + +PATCHES=( "${FILESDIR}/fromArray-is-static.patch" ) + +src_install() { + insinto /usr/share/php/Console + doins Table.php + php-pear-r2_install_packagexml +} + +src_test() { + pear run-tests tests || die "Tests failed" +} diff --git a/dev-php/PEAR-Console_Table/files/fromArray-is-static.patch b/dev-php/PEAR-Console_Table/files/fromArray-is-static.patch new file mode 100644 index 000000000000..8b068d8f2668 --- /dev/null +++ b/dev-php/PEAR-Console_Table/files/fromArray-is-static.patch @@ -0,0 +1,22 @@ +From 4eea320592cc1766b8f679df22c3431a93a74d7e Mon Sep 17 00:00:00 2001 +From: Remi Collet +Date: Thu, 1 Apr 2021 10:37:33 +0200 +Subject: [PATCH] fromArray is static + +--- + Table.php | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Table.php b/Table.php +index dbfec73..139433b 100755 +--- a/Table.php ++++ b/Table.php +@@ -223,7 +223,7 @@ function __construct($align = CONSOLE_TABLE_ALIGN_LEFT, + * @return Console_Table|string A Console_Table object or the generated + * table. + */ +- function fromArray($headers, $data, $returnObject = false) ++ static function fromArray($headers, $data, $returnObject = false) + { + if (!is_array($headers) || !is_array($data)) { + return false;