Gentoo Archives: gentoo-commits

From: "Andreas K. Hüttel" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/texinfo/
Date: Wed, 05 Jun 2019 05:04:02
Message-Id: 1559711001.f0c46737f8e44a069d1b5aba3f2882dd57f4c8c3.dilfridge@gentoo
1 commit: f0c46737f8e44a069d1b5aba3f2882dd57f4c8c3
2 Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jun 5 05:03:21 2019 +0000
4 Commit: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
5 CommitDate: Wed Jun 5 05:03:21 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f0c46737
7
8 sys-apps/texinfo: -r3, agressively optimizes stability (no keywords)
9
10 Package-Manager: Portage-2.3.67, Repoman-2.3.13
11 Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>
12
13 sys-apps/texinfo/metadata.xml | 1 +
14 sys-apps/texinfo/texinfo-6.6-r3.ebuild | 60 ++++++++++++++++++++++++++++++++++
15 2 files changed, 61 insertions(+)
16
17 diff --git a/sys-apps/texinfo/metadata.xml b/sys-apps/texinfo/metadata.xml
18 index e73fd846ffa..c939b6a3e97 100644
19 --- a/sys-apps/texinfo/metadata.xml
20 +++ b/sys-apps/texinfo/metadata.xml
21 @@ -11,5 +11,6 @@
22 </maintainer>
23 <use>
24 <flag name="xs">Build Perl modules with embedded C code for speed; requires rebuilds on Perl update</flag>
25 + <flag name="standalone">Build standalone version that survives all Portage bugs</flag>
26 </use>
27 </pkgmetadata>
28
29 diff --git a/sys-apps/texinfo/texinfo-6.6-r3.ebuild b/sys-apps/texinfo/texinfo-6.6-r3.ebuild
30 new file mode 100644
31 index 00000000000..f2545ebfff4
32 --- /dev/null
33 +++ b/sys-apps/texinfo/texinfo-6.6-r3.ebuild
34 @@ -0,0 +1,60 @@
35 +# Copyright 1999-2019 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +# Note: if your package uses the texi2dvi utility, it must depend on the
39 +# virtual/texi2dvi package to pull in all the right deps. The tool is not
40 +# usable out-of-the-box because it requires the large tex packages.
41 +
42 +EAPI=6
43 +
44 +inherit flag-o-matic toolchain-funcs
45 +
46 +DESCRIPTION="The GNU info program and utilities"
47 +HOMEPAGE="https://www.gnu.org/software/texinfo/"
48 +SRC_URI="mirror://gnu/${PN}/${P}.tar.xz"
49 +
50 +LICENSE="GPL-3"
51 +SLOT="0"
52 +KEYWORDS=""
53 +IUSE="nls +standalone static"
54 +
55 +RDEPEND="
56 + !=app-text/tetex-2*
57 + >=sys-libs/ncurses-5.2-r2:0=
58 + standalone? ( dev-lang/perl )
59 + !standalone? (
60 + dev-lang/perl:=
61 + dev-perl/libintl-perl
62 + dev-perl/Unicode-EastAsianWidth
63 + dev-perl/Text-Unidecode
64 + )
65 + nls? ( virtual/libintl )"
66 +DEPEND="${RDEPEND}
67 + app-arch/xz-utils
68 + nls? ( >=sys-devel/gettext-0.19.6 )"
69 +
70 +src_configure() {
71 + # Respect compiler and CPPFLAGS/CFLAGS/LDFLAGS for Perl extensions. #622576
72 + local -x PERL_EXT_CC="$(tc-getCC)" PERL_EXT_CPPFLAGS="${CPPFLAGS}" PERL_EXT_CFLAGS="${CFLAGS}" PERL_EXT_LDFLAGS="${LDFLAGS}"
73 +
74 + use static && append-ldflags -static
75 + local myeconfargs
76 + if use standalone ; then
77 + myeconfargs=(
78 + --without-external-libintl-perl
79 + --without-external-Unicode-EastAsianWidth
80 + --without-external-Text-Unidecode
81 + $(use_enable nls)
82 + --disable-perl-xs
83 + )
84 + else
85 + myeconfargs=(
86 + --with-external-libintl-perl
87 + --with-external-Unicode-EastAsianWidth
88 + --with-external-Text-Unidecode
89 + $(use_enable nls)
90 + --enable-perl-xs
91 + )
92 + fi
93 + econf "${myeconfargs[@]}"
94 +}