/[gentoo-x86]/app-text/unac/unac-1.8.0.ebuild
Gentoo

Contents of /app-text/unac/unac-1.8.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Fri May 25 11:35:40 2012 UTC (2 years, 3 months ago) by ago
Branch: MAIN
Changes since 1.2: +2 -2 lines
Stable for amd64, wrt bug #417359

(Portage version: 2.1.10.49/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-text/unac/unac-1.8.0.ebuild,v 1.2 2012/05/24 13:12:35 johu Exp $
4
5 EAPI="4"
6
7 inherit autotools eutils
8
9 DESCRIPTION="Library and command-line tool for removing accents from characters"
10 HOMEPAGE="http://www.nongnu.org/unac/"
11 SRC_URI="mirror://debian/pool/main/u/unac/${P/-/_}.orig.tar.gz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="amd64 x86"
16 IUSE="static-libs test"
17
18 RDEPEND="virtual/libiconv"
19 DEPEND="${RDEPEND}
20 test? ( dev-lang/perl )"
21
22 S="${WORKDIR}/${P}.orig"
23
24 DOCS="AUTHORS ChangeLog NEWS README THANKS"
25
26 src_prepare() {
27 epatch "${FILESDIR}/${P}-debian-gcc-4.4-bug-556379.patch"
28 # otherwise automake will fail
29 touch config.rpath
30 eautoreconf
31 }
32
33 src_configure() {
34 econf $(use_enable static-libs static)
35 }
36
37 src_install() {
38 default
39 find "${D}" -name '*.la' -exec rm -f {} +
40 }
41
42 pkg_postinst() {
43 einfo "Examples of using unaccent from the command line:"
44 einfo "unaccent utf8 été"
45 einfo "echo -e '\\\\0303\\\\0251t\\\\0303\\\\0251' | unaccent utf8"
46 einfo "unaccent ISO-8859-1 < myfile > myfile.unaccent"
47 einfo
48 einfo "See man unaccent and man unac for more information."
49 }

  ViewVC Help
Powered by ViewVC 1.1.20