1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit autotools eutils
9 DESCRIPTION="Indent program source files"
10 HOMEPAGE="http://indent.isidore-it.eu/beautify.html https://www.gnu.org/software/indent/"
11 SRC_URI="http://${PN}.isidore-it.eu/${P}.tar.gz"
15 KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x86-solaris"
19 nls? ( sys-devel/gettext )
23 nls? ( virtual/libintl )
27 ca da de eo et fi fr gl hu it ja ko nl pl pt_BR ru sk sv tr zh_TW
30 for indent_lingua in ${INDENT_LINGUAS}; do
31 IUSE+=" linguas_${indent_lingua}"
37 for pofile in po/zh_TW*; do
38 mv ${pofile} ${pofile/.Big5} || die
40 sed -i po/LINGUAS -e 's|zh_TW\.Big5|zh_TW|g' || die
43 "${FILESDIR}"/${PV}-segfault.patch \
44 "${FILESDIR}"/${PV}-texi2html-5.patch
45 sed -e "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/" -i configure.ac || die
50 econf $(use_enable nls)
58 # htmldir as set in configure is ignored in doc/Makefile*
59 emake DESTDIR="${D}" htmldir="${EPREFIX}/usr/share/doc/${PF}/html" install
60 dodoc AUTHORS NEWS README ChangeLog ChangeLog-1990 ChangeLog-1998 ChangeLog-2001