1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 inherit autotools eutils
7 DESCRIPTION="Indent program source files"
8 HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage"
9 SRC_URI="https://dev.gentoo.org/~jer/${P}.tar.gz"
13 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"
17 nls? ( sys-devel/gettext )
21 nls? ( virtual/libintl )
27 for pofile in po/zh_TW*; do
28 mv ${pofile} ${pofile/.Big5} || die
30 sed -i po/LINGUAS -e 's|zh_TW\.Big5|zh_TW|g' || die
33 "${FILESDIR}"/${P}-segfault.patch \
34 "${FILESDIR}"/${P}-texi2html-5.patch
35 sed -e "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/" -i configure.ac || die
41 econf $(use_enable nls)
49 # htmldir as set in configure is ignored in doc/Makefile*
50 emake DESTDIR="${D}" htmldir="${EPREFIX}/usr/share/doc/${PF}/html" install
51 dodoc AUTHORS NEWS README ChangeLog ChangeLog-1990 ChangeLog-1998 ChangeLog-2001