diff options
author | Patrice Clement <monsieurp@gentoo.org> | 2015-10-13 20:34:45 +0000 |
---|---|---|
committer | Patrice Clement <monsieurp@gentoo.org> | 2015-10-13 20:38:13 +0000 |
commit | 9ede820eaec81dd81d767a90d8793052daa70696 (patch) | |
tree | cbda53b79ff8f13965cf5f3c96e32b33f299f737 /dev-util/txt2regex/txt2regex-0.8-r3.ebuild | |
parent | sys-apps/irqbalance: Merge improvements to service unit (diff) | |
download | gentoo-9ede820eaec81dd81d767a90d8793052daa70696.tar.gz gentoo-9ede820eaec81dd81d767a90d8793052daa70696.tar.bz2 gentoo-9ede820eaec81dd81d767a90d8793052daa70696.zip |
dev-util/txt2regex: Add patch to actually install txt2regex script courtesy of René Rhéaume <rene.rheaume@gmail.com>. Fixes bug 562856.
Package-Manager: portage-2.2.20.1
Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
Diffstat (limited to 'dev-util/txt2regex/txt2regex-0.8-r3.ebuild')
-rw-r--r-- | dev-util/txt2regex/txt2regex-0.8-r3.ebuild | 35 |
1 files changed, 35 insertions, 0 deletions
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..072f94d38f15 --- /dev/null +++ b/dev-util/txt2regex/txt2regex-0.8-r3.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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 +} |