|
|
# Distributed under the terms of the GNU General Public License v2 | # Distributed under the terms of the GNU General Public License v2 |
# $Header: /var/cvsroot/gentoo-x86/app-text/diction/diction-1.09-r1.ebuild,v 1.8 2007/07/12 04:37:47 mr_bones_ Exp $ | # $Header: /var/cvsroot/gentoo-x86/app-text/diction/diction-1.09-r1.ebuild,v 1.8 2007/07/12 04:37:47 mr_bones_ Exp $ |
| |
inherit eutils |
inherit eutils versionator |
|
|
|
MY_PV=$(replace_version_separator 2 -) |
| |
DESCRIPTION="Diction and style checkers for english and german texts" | DESCRIPTION="Diction and style checkers for english and german texts" |
HOMEPAGE="http://www.gnu.org/software/diction/diction.html" | HOMEPAGE="http://www.gnu.org/software/diction/diction.html" |
SRC_URI="http://www.moria.de/~michael/diction/${P}.tar.gz" |
SRC_URI="http://www.moria.de/~michael/diction/${PN}-${MY_PV}.tar.gz" |
| |
LICENSE="GPL-2" | LICENSE="GPL-2" |
SLOT="0" | SLOT="0" |
|
|
DEPEND="sys-devel/gettext" | DEPEND="sys-devel/gettext" |
RDEPEND="virtual/libintl" | RDEPEND="virtual/libintl" |
| |
|
S="${WORKDIR}/${PN}-$(get_version_component_range 1-2)" |
|
|
src_unpack() { | src_unpack() { |
unpack ${A}; cd ${S} | unpack ${A}; cd ${S} |
| |
epatch ${FILESDIR}/${P}-style-fail-on-bad-lang.patch |
|
if use unicode; then | if use unicode; then |
iconv -f ISO-8859-1 -t UTF-8 de > de.new || die "charset conversion failed." | iconv -f ISO-8859-1 -t UTF-8 de > de.new || die "charset conversion failed." |
mv de.new de | mv de.new de |