-# Copyright 1999-2011 Gentoo Foundation
+# 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"
LICENSE="GPL-2"
SLOT="0"
-KEYWORDS="alpha amd64 hppa ~mips ~ppc sparc x86"
+KEYWORDS="alpha amd64 hppa mips ppc ppc64 sparc x86"
IUSE="nls cjk"
DEPEND="nls? ( sys-devel/gettext )"
RDEPEND=">=app-shells/bash-2.04"
-src_unpack() {
- unpack ${A}
- cd "${S}"
+src_prepare() {
# See bug 93568
use nls || epatch "${FILESDIR}"/${P}-disable-nls.patch
use cjk && sed -i -e 's/\xa4/:+:/g' "${S}"/${P}.sh
}
src_install() {
- einstall DESTDIR="${D}" MANDIR="${D}"/usr/share/man/man1 || die
+ emake DESTDIR="${D}" MANDIR="${D}"/usr/share/man/man1 || die
dodoc Changelog NEWS README README.japanese TODO || die
newman txt2regex.man txt2regex.6 || die
}