From: "Michael Orlitzky" <mjo@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-php/PEAR-Console_CommandLine/
Date: Tue, 11 Jun 2024 16:35:38 +0000 (UTC) [thread overview]
Message-ID: <1718123638.26ff2830784f8ec2d0ae34ebd2fed92ddb88f10c.mjo@gentoo> (raw)
commit: 26ff2830784f8ec2d0ae34ebd2fed92ddb88f10c
Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
AuthorDate: Tue Jun 11 16:09:07 2024 +0000
Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Tue Jun 11 16:33:58 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=26ff2830
dev-php/PEAR-Console_CommandLine: add 1.2.6
Closes: https://bugs.gentoo.org/774768
Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>
dev-php/PEAR-Console_CommandLine/Manifest | 1 +
.../PEAR-Console_CommandLine-1.2.6.ebuild | 56 ++++++++++++++++++++++
2 files changed, 57 insertions(+)
diff --git a/dev-php/PEAR-Console_CommandLine/Manifest b/dev-php/PEAR-Console_CommandLine/Manifest
index 08a0a05aec75..c0ada322b9e5 100644
--- a/dev-php/PEAR-Console_CommandLine/Manifest
+++ b/dev-php/PEAR-Console_CommandLine/Manifest
@@ -1 +1,2 @@
DIST Console_CommandLine-1.2.2.tgz 40705 BLAKE2B 1cf2fd7ffdafe1b6e683d40e24c07bc12c9e41469e42595f40778f0bfef30457b32f80b966835a690724e29216348be0fb3f98a83947459d48f728896a5a056a SHA512 05dbde123d0d4fdbba2a959f4bea3b115e3629060a268d25a3007c2ee5a3530b8ebbd8c7d124a6c9d012cafa19f41690a888943a6c1e2e5ec1b9d83fa821d603
+DIST Console_CommandLine-1.2.6.tgz 36389 BLAKE2B a2ad049324653d9e2dc5b438619dec5caed3cba1703395da0838ec521c08b37bdc693aa79ed87e2cc4e3e2382c7ebcaa340da34716eeb3700c4242cf5c05afdd SHA512 bd3a04915b6cc1dc07d2aad4c5714d7b3ed373c938bc945f0bd71d1686788d2be9cb9a3cdf5021f34a200b361d76a664921334d4e462e011502e37d0a8fbd891
diff --git a/dev-php/PEAR-Console_CommandLine/PEAR-Console_CommandLine-1.2.6.ebuild b/dev-php/PEAR-Console_CommandLine/PEAR-Console_CommandLine-1.2.6.ebuild
new file mode 100644
index 000000000000..043f5229838d
--- /dev/null
+++ b/dev-php/PEAR-Console_CommandLine/PEAR-Console_CommandLine-1.2.6.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+MY_PN="${PN/PEAR-/}"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="A full-featured command-line options and arguments parser"
+HOMEPAGE="https://pear.php.net/package/Console_CommandLine"
+SRC_URI="https://github.com/pear/${MY_PN}/archive/refs/tags/v${PV}.tar.gz -> ${MY_P}.tgz"
+S="${WORKDIR}/${MY_P}"
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~hppa ~ppc64 ~sparc ~x86"
+IUSE="examples test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="dev-lang/php:*
+ dev-php/PEAR-Exception"
+
+# Beware, the test suite really needs PEAR-PEAR.
+DEPEND="test? ( ${RDEPEND} dev-php/PEAR-PEAR )"
+
+src_prepare() {
+ # There's one occurrence of @data_dir@ that needs to be replaced
+ # This location just has to agree with where we put the "data"
+ # directory during src_install().
+ default
+ sed -i "s|@data_dir@|${EPREFIX}/usr/share|" \
+ Console/CommandLine/XmlParser.php || die
+
+ # These two fail, but only due to the ordering of the associative
+ # arrays in the expected output. Github issue tracking is disabled
+ # but the current maintainer of the repo has been emailed about it.
+ rm tests/console_commandline_{addargument,addoption}.phpt || die
+}
+
+src_install() {
+ use examples && dodoc -r docs/examples
+
+ insinto "/usr/share/${MY_PN}"
+ doins -r data
+
+ insinto /usr/share/php
+ doins -r Console
+}
+
+src_test() {
+ # Requires the "pear" executable from dev-php/PEAR-PEAR.
+ pear run-tests tests || die
+
+ # The command succeeds regardless of whether or not the test suite
+ # passed, but this file is only written when there was a failure.
+ [[ -f run-tests.log ]] && die "test suite failed"
+}
next reply other threads:[~2024-06-11 16:35 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-11 16:35 Michael Orlitzky [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-06-21 8:05 [gentoo-commits] repo/gentoo:master commit in: dev-php/PEAR-Console_CommandLine/ Arthur Zamarin
2024-06-21 4:23 Arthur Zamarin
2024-06-20 20:24 Arthur Zamarin
2024-06-20 18:14 Arthur Zamarin
2024-06-20 17:53 Sam James
2024-06-20 17:53 Sam James
2024-06-11 19:26 Michael Orlitzky
2019-08-16 12:57 Brian Evans
2018-02-20 1:55 Brian Evans
2017-11-06 21:20 Sergei Trofimovich
2017-04-01 10:40 Michael Weber
2017-04-01 10:02 Michael Weber
2017-03-25 10:08 Jeroen Roovers
2017-03-04 1:38 Michael Orlitzky
2017-03-03 19:01 Markus Meier
2017-03-02 10:47 Agostino Sarubbo
2017-03-02 10:30 Agostino Sarubbo
2017-01-20 0:15 Michael Orlitzky
2016-12-23 15:05 Markus Meier
2016-05-21 15:47 Pacho Ramos
2016-03-02 19:26 Markus Meier
2016-02-09 14:27 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=1718123638.26ff2830784f8ec2d0ae34ebd2fed92ddb88f10c.mjo@gentoo \
--to=mjo@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