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 02:30:42
Message-Id: 1559701817.d6e0516deec8d5aeedd03a92d47c044d37ea062e.dilfridge@gentoo
1 commit: d6e0516deec8d5aeedd03a92d47c044d37ea062e
2 Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jun 5 02:29:37 2019 +0000
4 Commit: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
5 CommitDate: Wed Jun 5 02:30:17 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d6e0516d
7
8 sys-apps/texinfo: Add useflag xs (default off) toggling C in Perl
9
10 When pure Perl is used, texinfo will be slower, however, there is no need for
11 rebuilds on Perl upgrade. Since this is our most frequent road bump at the
12 moment, see portage bug 638914, we take the slowdown by default and hope that
13 things improve. Not sure how well this will work out, however, since texinfo
14 again depends on other Perl modules, which are installed in version dependent
15 paths.
16
17 Bug: https://bugs.gentoo.org/638914
18 Package-Manager: Portage-2.3.67, Repoman-2.3.13
19 Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>
20
21 sys-apps/texinfo/metadata.xml | 7 +++++
22 sys-apps/texinfo/texinfo-6.6-r2.ebuild | 47 ++++++++++++++++++++++++++++++++++
23 2 files changed, 54 insertions(+)
24
25 diff --git a/sys-apps/texinfo/metadata.xml b/sys-apps/texinfo/metadata.xml
26 index 56c12441305..e73fd846ffa 100644
27 --- a/sys-apps/texinfo/metadata.xml
28 +++ b/sys-apps/texinfo/metadata.xml
29 @@ -5,4 +5,11 @@
30 <email>base-system@g.o</email>
31 <name>Gentoo Base System</name>
32 </maintainer>
33 +<maintainer type="project">
34 + <email>perl@g.o</email>
35 + <name>Gentoo Perl Project</name>
36 +</maintainer>
37 +<use>
38 + <flag name="xs">Build Perl modules with embedded C code for speed; requires rebuilds on Perl update</flag>
39 +</use>
40 </pkgmetadata>
41
42 diff --git a/sys-apps/texinfo/texinfo-6.6-r2.ebuild b/sys-apps/texinfo/texinfo-6.6-r2.ebuild
43 new file mode 100644
44 index 00000000000..d142edb1221
45 --- /dev/null
46 +++ b/sys-apps/texinfo/texinfo-6.6-r2.ebuild
47 @@ -0,0 +1,47 @@
48 +# Copyright 1999-2019 Gentoo Authors
49 +# Distributed under the terms of the GNU General Public License v2
50 +
51 +# Note: if your package uses the texi2dvi utility, it must depend on the
52 +# virtual/texi2dvi package to pull in all the right deps. The tool is not
53 +# usable out-of-the-box because it requires the large tex packages.
54 +
55 +EAPI=6
56 +
57 +inherit flag-o-matic toolchain-funcs
58 +
59 +DESCRIPTION="The GNU info program and utilities"
60 +HOMEPAGE="https://www.gnu.org/software/texinfo/"
61 +SRC_URI="mirror://gnu/${PN}/${P}.tar.xz"
62 +
63 +LICENSE="GPL-3"
64 +SLOT="0"
65 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd"
66 +IUSE="nls static xs"
67 +
68 +RDEPEND="
69 + !=app-text/tetex-2*
70 + >=sys-libs/ncurses-5.2-r2:0=
71 + xs? ( dev-lang/perl:= )
72 + !xs? ( dev-lang/perl )
73 + dev-perl/libintl-perl
74 + dev-perl/Unicode-EastAsianWidth
75 + dev-perl/Text-Unidecode
76 + nls? ( virtual/libintl )"
77 +DEPEND="${RDEPEND}
78 + app-arch/xz-utils
79 + nls? ( >=sys-devel/gettext-0.19.6 )"
80 +
81 +src_configure() {
82 + # Respect compiler and CPPFLAGS/CFLAGS/LDFLAGS for Perl extensions. #622576
83 + local -x PERL_EXT_CC="$(tc-getCC)" PERL_EXT_CPPFLAGS="${CPPFLAGS}" PERL_EXT_CFLAGS="${CFLAGS}" PERL_EXT_LDFLAGS="${LDFLAGS}"
84 +
85 + use static && append-ldflags -static
86 + local myeconfargs=(
87 + --with-external-libintl-perl
88 + --with-external-Unicode-EastAsianWidth
89 + --with-external-Text-Unidecode
90 + $(use_enable nls)
91 + $(use_enable xs perl-xs)
92 + )
93 + econf "${myeconfargs[@]}"
94 +}