1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
4 # Note: if your package uses the texi2dvi utility, it must depend on the
5 # virtual/texi2dvi package to pull in all the right deps. The tool is not
6 # usable out-of-the-box because it requires the large tex packages.
10 inherit flag-o-matic toolchain-funcs
12 DESCRIPTION="The GNU info program and utilities"
13 HOMEPAGE="https://www.gnu.org/software/texinfo/"
14 SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
18 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
19 IUSE="nls +standalone static"
23 >=sys-libs/ncurses-5.2-r2:0=
24 standalone? ( dev-lang/perl )
28 dev-perl/Unicode-EastAsianWidth
29 dev-perl/Text-Unidecode
31 nls? ( virtual/libintl )"
34 nls? ( >=sys-devel/gettext-0.19.6 )"
37 # Respect compiler and CPPFLAGS/CFLAGS/LDFLAGS for Perl extensions. #622576
38 local -x PERL_EXT_CC="$(tc-getCC)" PERL_EXT_CPPFLAGS="${CPPFLAGS}" PERL_EXT_CFLAGS="${CFLAGS}" PERL_EXT_LDFLAGS="${LDFLAGS}"
40 use static && append-ldflags -static
42 if use standalone ; then
44 --without-external-libintl-perl
45 --without-external-Unicode-EastAsianWidth
46 --without-external-Text-Unidecode
52 --with-external-libintl-perl
53 --with-external-Unicode-EastAsianWidth
54 --with-external-Text-Unidecode
59 econf "${myeconfargs[@]}"