summaryrefslogtreecommitdiff
path: root/dev-util/txt2regex
diff options
context:
space:
mode:
Diffstat (limited to 'dev-util/txt2regex')
-rw-r--r--dev-util/txt2regex/Manifest3
-rw-r--r--dev-util/txt2regex/files/txt2regex-0.9-disable-nls.patch13
-rw-r--r--dev-util/txt2regex/txt2regex-0.9.ebuild41
3 files changed, 57 insertions, 0 deletions
diff --git a/dev-util/txt2regex/Manifest b/dev-util/txt2regex/Manifest
index 23f69ee18db5..e2dde21c58a8 100644
--- a/dev-util/txt2regex/Manifest
+++ b/dev-util/txt2regex/Manifest
@@ -1,5 +1,8 @@
AUX txt2regex-0.8-disable-nls.patch 623 BLAKE2B 4a639d62b9535955638248ced1aa043788013ada053f35c47d48217363b634b88203e1d30a4cb8f8a08dd43692e16ece9d5a23fe370b159a40d5401a963930e5 SHA512 522132c89e9b4e88da1c77e189d4807f7612346a4980f77e31878835bb1d940216067515878908222960d6127953a11c6b60393d5534e7dbc9eeec0a2abb703f
AUX txt2regex-0.8-textdomaindir.patch 656 BLAKE2B f5c1ad923105896c3743f7d7a1c8deb831f9a61eae4071a0beba40d002646ff47db6bff3f763d598dcfe9306d81fffc47c74db1639188cd561912871a667c6f2 SHA512 ddb9fe094b39639df0597f58b8431916f877e7ec2e8873c31b6c3e7e9065a48828a90292aa1e4efb180253be15d709003e4cfe51f2ca25ec9d518660840dd0b3
+AUX txt2regex-0.9-disable-nls.patch 334 BLAKE2B 3221e3160947d284df9236da33a2160f599456d47494e577100b6578d4b342a6993931007286e0f24d984aa03010daa1f1a1a4d47593330d83ba19e08270ea0b SHA512 e23244387518f9537436a7242b3716e7b14904871a91d6a8ac175a93d2a1217cb7c5fea31d1127d28e10f5df7fc0dd889f8e964933c65da145de6661d8ee7326
DIST txt2regex-0.8.tgz 40514 BLAKE2B 938f8ec41ec1319d96928ed38985626d906788a8c2959661c2338104527a0ade3a72e4d7e13f17b2f6f9abc2589ff2aaf88dc99077bf2fd6a82a82d186efc580 SHA512 69d2a682471e3e35fbd0b2ad6f6ffab040803a17bda8082f3dd67baf3a03e7011cb20047940fb9403e180895a1258f720ca4d538187878c5989a1ec51168435f
+DIST txt2regex-0.9.tar.gz 67212 BLAKE2B 054a0a3f37bdbfb9a071b93d87b6c410c6daf3f330cbb2355f3a05b70e0665ec229b04ab2d6fc41940f44e680221638c74a937bce83825b311d78df0bc03d2b8 SHA512 1ef9173c7f4309ed30e254869b29e9919a573379191d3d8e6e78bd75f1ba776c8741c1a248e3cb65c6cb7f5402f4c30768c93c4b453888b91c9377de62af5e96
EBUILD txt2regex-0.8-r3.ebuild 889 BLAKE2B ee43a0b4c18c3e012ec530632c543267f28ce6a903ba2bef42b65568ad246abf3ec12e5d2b63bfd6a346109b6cd518649d8d3db69d2a597dd4c4e8837445f2bf SHA512 29d6f7c8a33dc786f6a15eb6a841c529ff083ed6964fbddcc5470416da6be466721b3d16f67a9d2a3432490543b5dc0914da4537fd3aeb3fa4e3fcd14a651380
+EBUILD txt2regex-0.9.ebuild 1051 BLAKE2B 4bdff5fddeba8b2396c18eb13b3ec5cdc164d2f0d085c208dc953731e4272f8b1bd66aae14e79a61397a7050049d19a3ecc6ae4de554ec5b05285da7c5b5d3f0 SHA512 450b138650204139d5a573273cab9751b2c64ead0ce1ead77f5dd593b6e516b596d9771495b25838aa7f978d0b7a2f1369486636bf529c9f08bfbc4126543651
MISC metadata.xml 408 BLAKE2B c897ff2786664088809d3d5e4c0b4e4427534c5f7d04b7f16e31d47509cea2143a656ccee9b3a8662205c2d6ee633d9ca041e4f024654b5c3a797f598fac7c3e SHA512 4e7470a29d9869d986b5e7bfa6a24798ae5259714df7afcca0dcb972852540deb36e39a545c531cf23060fb607000c2814636fe96b8afbfa9d8b6ee2e5c06477
diff --git a/dev-util/txt2regex/files/txt2regex-0.9-disable-nls.patch b/dev-util/txt2regex/files/txt2regex-0.9-disable-nls.patch
new file mode 100644
index 000000000000..fc0ae57fac94
--- /dev/null
+++ b/dev-util/txt2regex/files/txt2regex-0.9-disable-nls.patch
@@ -0,0 +1,13 @@
+diff --git a/Makefile b/Makefile
+index 89c1f85..6283b1f 100644
+--- a/Makefile
++++ b/Makefile
+@@ -128,7 +128,7 @@ check-po:
+ #-----------------------------------------------------------------------
+ # Release
+
+-install: install-mo install-bin
++install: install-bin
+
+ install-mo: mo
+ test -d $(LOCALEDIR) || mkdir -p $(LOCALEDIR); \
diff --git a/dev-util/txt2regex/txt2regex-0.9.ebuild b/dev-util/txt2regex/txt2regex-0.9.ebuild
new file mode 100644
index 000000000000..c0f0c722040f
--- /dev/null
+++ b/dev-util/txt2regex/txt2regex-0.9.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="A Regular Expression wizard that converts human sentences to regexs"
+HOMEPAGE="https://aurelio.net/projects/txt2regex/"
+SRC_URI="https://github.com/aureliojargas/txt2regex/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
+IUSE="nls cjk"
+RESTRICT="test" # tests need to run in a docker container it seems
+
+RDEPEND=">=app-shells/bash-2.04"
+BDEPEND="nls? ( sys-devel/gettext )"
+
+src_prepare() {
+ default
+
+ if use !nls ; then
+ eapply "${FILESDIR}"/${P}-disable-nls.patch # bug #93568
+ fi
+
+ if use cjk ; then
+ sed -e 's/\xa4/:+:/g' -i ${PN}.sh || die
+ fi
+}
+
+src_compile() {
+ # there is no building the program as it is a shell script
+ # but calling without target will run the tests and fail
+ :
+}
+
+src_install() {
+ emake DESTDIR="${ED}" MANDIR="${D}"/usr/share/man/man1 install
+ dodoc CHANGELOG.md README.md TODO
+ newman man/txt2regex.man txt2regex.6
+}