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"
10 https://dev.gentoo.org/~jer/${P/_p*/}.tar.gz
11 http://http.debian.net/debian/pool/main/i/${PN}/${PN}_${PV/_p*/}-${PV/*_p/}.debian.tar.xz
16 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"
20 nls? ( sys-devel/gettext )
24 nls? ( virtual/libintl )
27 "${FILESDIR}"/${P/_p*/}-segfault.patch
28 "${FILESDIR}"/${P/_p*/}-texi2html-5.patch
29 "${FILESDIR}"/${P/_p*/}-ac_config_headers.patch
30 "${FILESDIR}"/${P/_p*/}-linguas.patch
32 S=${WORKDIR}/${P/_p*/}
37 eapply "${WORKDIR}"/debian/patches/*.patch
40 for pofile in po/zh_TW*; do
41 mv ${pofile} ${pofile/.Big5} || 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