You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-text/unac/unac-1.8.0.ebuild

50 lines
1.2 KiB

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-text/unac/unac-1.8.0.ebuild,v 1.2 2012/05/24 13:12:35 johu Exp $
EAPI="4"
inherit autotools eutils
DESCRIPTION="Library and command-line tool for removing accents from characters"
HOMEPAGE="http://www.nongnu.org/unac/"
SRC_URI="mirror://debian/pool/main/u/unac/${P/-/_}.orig.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 x86"
IUSE="static-libs test"
RDEPEND="virtual/libiconv"
DEPEND="${RDEPEND}
test? ( dev-lang/perl )"
S="${WORKDIR}/${P}.orig"
DOCS="AUTHORS ChangeLog NEWS README THANKS"
src_prepare() {
epatch "${FILESDIR}/${P}-debian-gcc-4.4-bug-556379.patch"
# otherwise automake will fail
touch config.rpath
eautoreconf
}
src_configure() {
econf $(use_enable static-libs static)
}
src_install() {
default
find "${D}" -name '*.la' -exec rm -f {} +
}
pkg_postinst() {
einfo "Examples of using unaccent from the command line:"
einfo "unaccent utf8 été"
einfo "echo -e '\\\\0303\\\\0251t\\\\0303\\\\0251' | unaccent utf8"
einfo "unaccent ISO-8859-1 < myfile > myfile.unaccent"
einfo
einfo "See man unaccent and man unac for more information."
}