From: "John Helmert III" <ajak@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-php/twig/
Date: Wed, 19 Apr 2023 04:12:43 +0000 (UTC) [thread overview]
Message-ID: <1681877548.5663f7e15244378caa1c3c94c1b657a0057268bb.ajak@gentoo> (raw)
commit: 5663f7e15244378caa1c3c94c1b657a0057268bb
Author: John Helmert III <ajak <AT> gentoo <DOT> org>
AuthorDate: Wed Apr 19 04:09:26 2023 +0000
Commit: John Helmert III <ajak <AT> gentoo <DOT> org>
CommitDate: Wed Apr 19 04:12:28 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5663f7e1
dev-php/twig: add 1.44.7
Closes: https://bugs.gentoo.org/873358
Signed-off-by: John Helmert III <ajak <AT> gentoo.org>
dev-php/twig/Manifest | 1 +
dev-php/twig/twig-1.44.7.ebuild | 49 +++++++++++++++++++++++++++++++++++++++++
2 files changed, 50 insertions(+)
diff --git a/dev-php/twig/Manifest b/dev-php/twig/Manifest
index 9dd8fb8fdb33..4c387b5ab2f5 100644
--- a/dev-php/twig/Manifest
+++ b/dev-php/twig/Manifest
@@ -1 +1,2 @@
DIST twig-1.44.6.tar.gz 126880 BLAKE2B a838a5ae8bc82b6e0a39b55ba7d3817dd0ac0c2995881662fc5e7327a5dea83dea4740952282c9320016b379c08f02cb53a850004ecd2c919ca84da6267d0a56 SHA512 a443a700b71f982ea47187d9753ba9903e879f272ed53ff399211f5a76e7dd84774d5071a24cb8d5df6ffa754ce989fac152d0fe124ca460b8f167a553be86e7
+DIST twig-1.44.7.tar.gz 126915 BLAKE2B 2a88840cbea671dae367d39422d4b222e275236aab511fa8f5e4704093b53c3c8e5f335aac4930d84d43b05bcbe759993228de40d1aa2dd90e7b84ca8e5af7e6 SHA512 134d43f310f4277902ea06d632a7946de475ce1907cb33176f82cc49ffefc1c13b9d3f4cf76846c0084bb5a1636b001b6eb72d25e3770e118b7c1e4e4a30a373
diff --git a/dev-php/twig/twig-1.44.7.ebuild b/dev-php/twig/twig-1.44.7.ebuild
new file mode 100644
index 000000000000..01310215fa64
--- /dev/null
+++ b/dev-php/twig/twig-1.44.7.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+MY_PN="Twig"
+S="${WORKDIR}/${MY_PN}-${PV}"
+
+DESCRIPTION="PHP templating engine with syntax similar to Django"
+HOMEPAGE="https://twig.symfony.com/"
+SRC_URI="https://github.com/twigphp/${MY_PN}/archive/v${PV}.tar.gz
+ -> ${P}.tar.gz"
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc test"
+
+RDEPEND="dev-lang/php:*[ctype] dev-php/fedora-autoloader"
+BDEPEND="test? ( dev-php/phpunit ${RDEPEND} )"
+# Test fail due to missing Symphony dependencies
+RESTRICT="test"
+
+src_install() {
+ # The autoloader requires the 'T' in "Twig" capitalized.
+ insinto "/usr/share/php/${MY_PN}/lib/${MY_PN}"
+ doins -r lib/"${MY_PN}"/*
+ insinto "/usr/share/php/${MY_PN}/src"
+ doins -r src/*
+ insinto "/usr/share/php/${MY_PN}"
+ doins "${FILESDIR}/Autoloader.php"
+
+ dodoc README.rst CHANGELOG
+
+ # This installs the reStructuredText source documents. There's got
+ # to be some way to turn them into HTML using Sphinx, but upstream
+ # doesn't provide for it.
+ use doc && dodoc -r doc
+}
+
+src_test() {
+ cp "${FILESDIR}/Autoloader.php" "${S}" || die
+ phpunit --bootstrap Autoloader.php || die "test suite failed"
+ rm "${S}/Autoloader.php" || die
+}
+
+pkg_postinst() {
+ elog "${PN} has been installed in /usr/share/php/${MY_PN}/."
+ elog "To use it in a script, require('${MY_PN}/Autoloader.php')"
+}
next reply other threads:[~2023-04-19 4:12 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-19 4:12 John Helmert III [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-04-30 23:38 [gentoo-commits] repo/gentoo:master commit in: dev-php/twig/ John Helmert III
2022-04-29 4:49 Sam James
2022-03-25 16:42 Brian Evans
2022-03-25 16:42 Brian Evans
2019-11-25 15:57 Brian Evans
2019-08-26 13:37 Brian Evans
2019-07-07 18:42 Dirkjan Ochtman
2019-05-08 20:00 Dirkjan Ochtman
2018-03-27 20:36 Brian Evans
2018-03-22 1:29 Brian Evans
2017-01-25 14:44 Michael Orlitzky
2017-01-06 22:39 Michael Orlitzky
2017-01-06 21:51 Michael Orlitzky
2016-12-22 0:58 Michael Orlitzky
2015-08-22 13:56 Brian Evans
2015-08-22 13:56 Brian Evans
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1681877548.5663f7e15244378caa1c3c94c1b657a0057268bb.ajak@gentoo \
--to=ajak@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox