* [gentoo-commits] repo/gentoo:master commit in: dev-php/Text_Template/files/, dev-php/Text_Template/
@ 2022-02-17 18:02 Brian Evans
0 siblings, 0 replies; only message in thread
From: Brian Evans @ 2022-02-17 18:02 UTC (permalink / raw
To: gentoo-commits
commit: 26f13c66c86a50b1ccfc10a140d3a10285086983
Author: Brian Evans <grknight <AT> gentoo <DOT> org>
AuthorDate: Thu Feb 17 18:00:26 2022 +0000
Commit: Brian Evans <grknight <AT> gentoo <DOT> org>
CommitDate: Thu Feb 17 18:02:24 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=26f13c66
dev-php/Text_Template: Version bump for 2.0.4
Signed-off-by: Brian Evans <grknight <AT> gentoo.org>
dev-php/Text_Template/Manifest | 1 +
dev-php/Text_Template/Text_Template-2.0.4.ebuild | 31 ++++++++++++++++++++++++
dev-php/Text_Template/files/autoload-2.0.4.php | 16 ++++++++++++
dev-php/Text_Template/metadata.xml | 1 +
4 files changed, 49 insertions(+)
diff --git a/dev-php/Text_Template/Manifest b/dev-php/Text_Template/Manifest
index 5559be549989..bbb1f46df38f 100644
--- a/dev-php/Text_Template/Manifest
+++ b/dev-php/Text_Template/Manifest
@@ -1,2 +1,3 @@
DIST Text_Template-1.1.1.tgz 3444 BLAKE2B 7b063aefa5d1cd8b8faf4f68c12552a50eac8d2bb0007ccde632c88325974c32734cbd76d922e0132acdf9e6cb157eb229bf7edcf2697d7f1cfc789b3f33529e SHA512 0eaf43ab8c0810f63d81ddaf62a5e81b2e244161fe79fe09bec05ef732ee07012a1c6c3711885a118cf38334131c57ac1d326e0a711eb3e6d3099c5475f80e7f
DIST Text_Template-1.2.1.tar.gz 2561 BLAKE2B 24871781f622fbd35cc0f524a092eaed2de0988137a52f05a559e89bcdc9248807a677b164f5ef9a246848709d3bd3ae0c4cd5e738fe6cd42ff0a2ea8aba577c SHA512 d8277f24782d0897b26d2e4922c2658047c484cb86f477916d6ad6dad3e5150bfa0a1ad38c79463a3fde97702bc65edb207a481b6f6cd8346c5fcc33b4cff8ca
+DIST Text_Template-2.0.4.tar.gz 3391 BLAKE2B 717547f81637272194cd93e881b51cf49f95aa4f9768cd836ad1867c5ede06991da91dc0915575c53eb0cf8a26f72cf9c2e77be4ffb755fd8d608df14e713820 SHA512 84a6b64f2ba8b89a461a44dd85b3706e210ca1bda90e7bb290ef9bd3c975378c114a44ab8442fc98994473df87d6d7e0d1a70f63878f815d3709224447a032d1
diff --git a/dev-php/Text_Template/Text_Template-2.0.4.ebuild b/dev-php/Text_Template/Text_Template-2.0.4.ebuild
new file mode 100644
index 000000000000..177a57dccee6
--- /dev/null
+++ b/dev-php/Text_Template/Text_Template-2.0.4.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+MY_PN="php-text-template"
+
+DESCRIPTION="A simple template engine"
+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=""
+
+S="${WORKDIR}/${MY_PN}-${PV}"
+
+RDEPEND="dev-php/fedora-autoloader
+ >=dev-lang/php-7.3:*"
+
+src_install() {
+ insinto /usr/share/php/Text/Template
+ doins -r src/*
+ newins "${FILESDIR}/autoload-2.0.4.php" autoload.php
+}
+
+pkg_postinst() {
+ ewarn "This library now loads via /usr/share/php/Text/Template/autoload.php"
+ ewarn "Please update any scripts to require the autoloader"
+}
diff --git a/dev-php/Text_Template/files/autoload-2.0.4.php b/dev-php/Text_Template/files/autoload-2.0.4.php
new file mode 100644
index 000000000000..3ca8a33da12e
--- /dev/null
+++ b/dev-php/Text_Template/files/autoload-2.0.4.php
@@ -0,0 +1,16 @@
+<?php
+/* Autoloader for dev-php/Text_Template */
+
+if (!class_exists('Fedora\\Autoloader\\Autoload', false)) {
+ require_once '/usr/share/php/Fedora/Autoloader/autoload.php';
+}
+
+\Fedora\Autoloader\Autoload::addClassMap(
+ array(
+ 'sebastianbergmann\\template' => '/Template.php',
+ 'sebastianbergmann\\template\\exception' => '/exceptions/Exception.php',
+ 'sebastianbergmann\\template\\invalidargumentexception' => '/exceptions/InvalidArgumentException.php',
+ 'sebastianbergmann\\template\\runtimeexception' => '/exceptions/RuntimeException.php',
+ ),
+ __DIR__
+);
diff --git a/dev-php/Text_Template/metadata.xml b/dev-php/Text_Template/metadata.xml
index f96cbe73d4b7..37b21fe7db8e 100644
--- a/dev-php/Text_Template/metadata.xml
+++ b/dev-php/Text_Template/metadata.xml
@@ -5,6 +5,7 @@
<email>php-bugs@gentoo.org</email>
<name>PHP</name>
</maintainer>
+ <stabilize-allarches/>
<upstream>
<remote-id type="github">sebastianbergmann/php-text-template</remote-id>
</upstream>
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2022-02-17 18:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-17 18:02 [gentoo-commits] repo/gentoo:master commit in: dev-php/Text_Template/files/, dev-php/Text_Template/ Brian Evans
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox