summaryrefslogtreecommitdiff
path: root/dev-util/txt2regex
diff options
context:
space:
mode:
Diffstat (limited to 'dev-util/txt2regex')
-rw-r--r--dev-util/txt2regex/Manifest7
-rw-r--r--dev-util/txt2regex/files/txt2regex-0.8-disable-nls.patch19
-rw-r--r--dev-util/txt2regex/files/txt2regex-0.8-textdomaindir.patch21
-rw-r--r--dev-util/txt2regex/metadata.xml11
-rw-r--r--dev-util/txt2regex/txt2regex-0.8-r3.ebuild34
5 files changed, 92 insertions, 0 deletions
diff --git a/dev-util/txt2regex/Manifest b/dev-util/txt2regex/Manifest
new file mode 100644
index 000000000000..1949aaaa15fe
--- /dev/null
+++ b/dev-util/txt2regex/Manifest
@@ -0,0 +1,7 @@
+AUX txt2regex-0.8-disable-nls.patch 696 SHA256 41f8ddd3f84c95cf014feb92b726a748869641d6e7116b3e20c36b67afb3adc0 SHA512 8b3fb8e37695d44078325687e8b7d4ac929578a03a46693f2854445a798f1ecfeae60d2da5212c395d00dae53eca63043865c8ea4a04d26a620d20c3a4aa1c7a WHIRLPOOL 09d91463b088cd938c067f204176633c10c64b100b1fad319bc52ae9fc91eab8c3742b69587430a0dc795e78f4fda5f269fe6d2b8de04ea7ba93d908bebfb2db
+AUX txt2regex-0.8-textdomaindir.patch 729 SHA256 e94df4242b4cba507dc7a76ad6c9aa233d9b915d3d5ce132341dda99266620df SHA512 85178d5cb8cdf9b8faf11c4b66247c8c5102b8035825cb08a4aaf0d8a5148965260e4df85bf1ab5e3aeaa20dad9bbb5d6fa5a6ddc1576c9949eb48bcb6844aa0 WHIRLPOOL bbe75b259608359c867e82bc724e38d92d0d686dcd4465adcaf39703b028a8b1720e87c2b40e4fa102e78f84d03dbaa4fa79eaaa7d7401e5652b3a36e878353c
+DIST txt2regex-0.8.tgz 40514 SHA256 19a10fbcc144ab80d1998488be380e5c4b307101e2740491d9f90685a5c0fc8d SHA512 69d2a682471e3e35fbd0b2ad6f6ffab040803a17bda8082f3dd67baf3a03e7011cb20047940fb9403e180895a1258f720ca4d538187878c5989a1ec51168435f WHIRLPOOL adb6ba8975ea5159ea61a652e0aa0ae8f3661c07a26a65490a0656db35351e67a78557a05490fa783fa8be97cb01cbe33f1443eede1171f6f6877c632a0c94e0
+EBUILD txt2regex-0.8-r3.ebuild 859 SHA256 5862fc4b89b27b6e5e10b26cc62310283c80de112f5e92880184af415d6ef422 SHA512 dc79e8737f3736b765915965d8e754d7d936c6b07e1836d2d55c173c3f73ded6776f7d2758bccda77a045e9565dedbabe08b6a933e6ba70f2a4d70bba988f622 WHIRLPOOL 75591291c58a29bd0069e050ab31f80e02516ed1ffdfe9f0740b6e028650d130ad21e397969e3847fdb83d51d3ce3156ab7eca754235dc54d66a2aaaeb96d5e6
+MISC ChangeLog 4182 SHA256 2d9532c54a0f003be5d51680f4e522b66ee136bfda0408f382a68476c747130a SHA512 d2cdc07169376a281ea99620fcb8a9618ac8a002b3a2e28981fea5a1258a5d8eb07944731ae098fd148f53d29811154b3f0af802ba4a84cc12a2fe1faf2dda8e WHIRLPOOL 221bb9a45bd4c54db7bb023e3638261085b696843540a957e536e0c8f743fc20ea4ec12295b3d3ceb46bf37f4552fd6797af6fd78d627a2d9200b75688030a41
+MISC ChangeLog-2015 2454 SHA256 8ff9a421bdd5215e6fc8a84c7f7d9e7e863e088e23831a0a5654f80502f6ed97 SHA512 33bf82b1158e6902aaf22bcbf40cbcc2626ac0dfc4d052f1f2e5cd75a16ec2e5c5ab1eae766e51c7739305c675685a9151980de95aa32cb6bbfd6a8f352618f0 WHIRLPOOL 7138240008f0ebb4051616f8f3295b1f14da12971bc6dd0b9c7504f0766acd9e5547dac2c4a0d67b83fff06479dceddc16a5fbdc3663ddae26f905a4214ab868
+MISC metadata.xml 344 SHA256 b1c1e7524116a2e0e61876991a098a25223fdd9bf7ee31876d00ad4f4bec410f SHA512 b16ae2357ca3ea0aaa63733fc657cf348df2ff8dca5f4471c8a828c63b535f6c4b0b658935081e14c8e5f40affeea743e3c6028f8d673e1f037ab61e93278731 WHIRLPOOL 428991919a1c614af505c64a78404e68f955f7855ce34c7a80edeb94687fcfa77e5263e871a3af1501e5b258748da1ede057c4f338d86733357e16bb46c11eee
diff --git a/dev-util/txt2regex/files/txt2regex-0.8-disable-nls.patch b/dev-util/txt2regex/files/txt2regex-0.8-disable-nls.patch
new file mode 100644
index 000000000000..878b84a7e3ea
--- /dev/null
+++ b/dev-util/txt2regex/files/txt2regex-0.8-disable-nls.patch
@@ -0,0 +1,19 @@
+--- Makefile.orig 2015-10-13 20:09:55.612486000 +0000
++++ Makefile 2015-10-13 20:11:19.166486000 +0000
+@@ -81,15 +81,9 @@
+ rm -rf $(DISTDIR)
+
+ #TODO install man page and README
+-install: mo
++install:
+ @[ -d $(LOCALEDIR) ] || mkdir -p $(LOCALEDIR); \
+ [ -d $(BINDIR) ] || mkdir -p $(BINDIR); \
+- for pot in `cd $(PODIR) && ls *.mo`; do \
+- poti=`echo $$pot | sed 's/\.mo$$//'`; \
+- modir=$(LOCALEDIR)/$$poti/LC_MESSAGES; \
+- [ -d $$modir ] || mkdir -p $$modir; \
+- install -m644 $(PODIR)/$$pot $$modir/$(NAME).mo; \
+- done; \
+ sed -e '/^TEXTDOMAINDIR=/s,=.*,=$(BLOCALEDIR),' \
+ -e '/^VERSION=/s/=.*/=$(VERSION)/' $(SHSKEL) > $(BINDIR)/$(NAME) && \
+ chmod +x $(BINDIR)/$(NAME) && \
diff --git a/dev-util/txt2regex/files/txt2regex-0.8-textdomaindir.patch b/dev-util/txt2regex/files/txt2regex-0.8-textdomaindir.patch
new file mode 100644
index 000000000000..524f2af8b02e
--- /dev/null
+++ b/dev-util/txt2regex/files/txt2regex-0.8-textdomaindir.patch
@@ -0,0 +1,21 @@
+--- Makefile.orig 2015-10-13 19:24:21.799486000 +0000
++++ Makefile 2015-10-13 19:26:05.187486000 +0000
+@@ -11,7 +11,8 @@
+
+ DESTDIR =
+ BINDIR = $(DESTDIR)/usr/bin
+-LOCALEDIR = $(DESTDIR)/usr/share/locale
++BLOCALEDIR = /usr/share/locale
++LOCALEDIR = $(DESTDIR)$(BLOCALEDIR)
+ MANDIR = $(DESTDIR)/usr/share/man/man1
+
+ TARGET=all
+@@ -89,7 +90,7 @@
+ [ -d $$modir ] || mkdir -p $$modir; \
+ install -m644 $(PODIR)/$$pot $$modir/$(NAME).mo; \
+ done; \
+- sed -e '/^TEXTDOMAINDIR=/s,=.*,=$(LOCALEDIR),' \
++ sed -e '/^TEXTDOMAINDIR=/s,=.*,=$(BLOCALEDIR),' \
+ -e '/^VERSION=/s/=.*/=$(VERSION)/' $(SHSKEL) > $(BINDIR)/$(NAME) && \
+ chmod +x $(BINDIR)/$(NAME) && \
+ echo "program '$(NAME)' installed. just run $(BINDIR)/$(NAME)"
diff --git a/dev-util/txt2regex/metadata.xml b/dev-util/txt2regex/metadata.xml
new file mode 100644
index 000000000000..5228121b668a
--- /dev/null
+++ b/dev-util/txt2regex/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>shell-tools@gentoo.org</email>
+ <name>Gentoo Shell Tools Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">txt2regex</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-util/txt2regex/txt2regex-0.8-r3.ebuild b/dev-util/txt2regex/txt2regex-0.8-r3.ebuild
new file mode 100644
index 000000000000..4eba479be662
--- /dev/null
+++ b/dev-util/txt2regex/txt2regex-0.8-r3.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils
+
+DESCRIPTION="A Regular Expression wizard that converts human sentences to regexs"
+HOMEPAGE="http://txt2regex.sourceforge.net/"
+SRC_URI="http://txt2regex.sourceforge.net/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 hppa ~mips ppc ppc64 sparc x86"
+IUSE="nls cjk"
+
+DEPEND="nls? ( sys-devel/gettext )"
+RDEPEND=">=app-shells/bash-2.04"
+
+src_prepare() {
+ # bug #562856
+ epatch "${FILESDIR}"/"${P}-textdomaindir.patch"
+
+ # bug #93568
+ use nls || epatch "${FILESDIR}"/"${P}-disable-nls.patch"
+
+ use cjk && sed -i -e 's/\xa4/:+:/g' "${S}"/${P}.sh
+}
+
+src_install() {
+ emake install DESTDIR="${D}" MANDIR="${D}"/usr/share/man/man1 install
+ dodoc Changelog NEWS README README.japanese TODO
+ newman txt2regex.man txt2regex.6
+}