Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/groff/files/, sys-apps/groff/
Date: Thu, 27 Sep 2018 13:52:01
Message-Id: 1538056310.37267a0171bfbc04b8abf2334bd7d203bbc301fc.polynomial-c@gentoo
1 commit: 37267a0171bfbc04b8abf2334bd7d203bbc301fc
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 27 13:51:35 2018 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 27 13:51:50 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=37267a01
7
8 sys-apps/groff: Bump to version 1.22.4_rc2
9
10 Package-Manager: Portage-2.3.50, Repoman-2.3.11
11
12 sys-apps/groff/Manifest | 1 +
13 .../files/groff-1.19.2-man-unicode-dashes.patch | 8 +-
14 sys-apps/groff/groff-1.22.4_rc2.ebuild | 97 ++++++++++++++++++++++
15 3 files changed, 102 insertions(+), 4 deletions(-)
16
17 diff --git a/sys-apps/groff/Manifest b/sys-apps/groff/Manifest
18 index bd92f6278b4..f650e00c674 100644
19 --- a/sys-apps/groff/Manifest
20 +++ b/sys-apps/groff/Manifest
21 @@ -1,3 +1,4 @@
22 DIST groff-1.22.1-japanese.patch.bz2 52968 BLAKE2B 8064ff973c9507536c4e6edb6146c33c6c3a994598f0bb925bd23307a5ed407af9fe744990735d640ea69def4a6aed69ee87b7abbacca401c0059cf63e6eb147 SHA512 883d15dd2f1420a067d35737c45431f33f05bbe3c7e7edab0e119416117b5d096972d71452eae94bfd3df23aa7d6595fc6e65208bd4fba86815162bdf9af8bef
23 DIST groff-1.22.2.tar.gz 4019913 BLAKE2B 904a2a6064cc70cf088224d6f608389eb56842142802636b94fef30f5e20b5c62db03087878d0e04e22c65754e0fd253aa7cfd23c1354057862f70e17db43366 SHA512 ea34db53f075b6816827b07ac3d6a19ed50529c939044337eb3124575ac3b41363e1d81bbd5bf552a7a10f6b1dd233d6e7acaf646e18cfe94464c59dc20ffe80
24 DIST groff-1.22.3.tar.gz 4188772 BLAKE2B 28c380d33719f4eb0c91a9761e76beb9a2f1f6fb632c731bb6b26f76fee1857e7340d62a2239b360e049351e2e291c420db18a4f6bf8f50221bf249457872693 SHA512 c526ab203d13a9c9d110bcd3149fe50d1cd0d309437e9e2731a7ce90d890507ebc0a2331899ecf4dba2938daa756b6094cf76fd347a0ded59797c70ccfd0c95c
25 +DIST groff-1.22.4.rc2.tar.gz 4118558 BLAKE2B db7b9a667a85eeea34bfa4cf53de77f3ca6bbc541c8130701b011c66b93df4d4f16e23d5e0dae18470daeb0393c980f0e0fc22fd3bb9d00ebf77b2c3ba9a1dd7 SHA512 831a3ab55e8f37626b3f51d0cd5f461449b977a4ec64a93f2485aff5ab97947781dfbdd7830439d139c5f2c46455534d733d722047290f76eedf2d29d4f70138
26
27 diff --git a/sys-apps/groff/files/groff-1.19.2-man-unicode-dashes.patch b/sys-apps/groff/files/groff-1.19.2-man-unicode-dashes.patch
28 index d85a8330d27..276460f10b6 100644
29 --- a/sys-apps/groff/files/groff-1.19.2-man-unicode-dashes.patch
30 +++ b/sys-apps/groff/files/groff-1.19.2-man-unicode-dashes.patch
31 @@ -4,8 +4,8 @@ http://bugs.gentoo.org/16108
32 http://bugs.gentoo.org/17580
33 http://bugs.gentoo.org/121502
34
35 ---- tmac/man.local
36 -+++ tmac/man.local
37 +--- a/tmac/man.local
38 ++++ b/tmac/man.local
39 @@ -1,2 +1,6 @@
40 .\" This file is loaded after an-old.tmac.
41 .\" Put any local modifications to an-old.tmac here.
42 @@ -13,8 +13,8 @@ http://bugs.gentoo.org/121502
43 +. char \- \N'45'
44 +. char - \N'45'
45 +.\}
46 ---- tmac/mdoc.local
47 -+++ tmac/mdoc.local
48 +--- a/tmac/mdoc.local
49 ++++ b/tmac/mdoc.local
50 @@ -1,2 +1,6 @@
51 .\" This file is loaded after doc.tmac.
52 .\" Put any local modifications to doc.tmac here.
53
54 diff --git a/sys-apps/groff/groff-1.22.4_rc2.ebuild b/sys-apps/groff/groff-1.22.4_rc2.ebuild
55 new file mode 100644
56 index 00000000000..ad57e91b4b4
57 --- /dev/null
58 +++ b/sys-apps/groff/groff-1.22.4_rc2.ebuild
59 @@ -0,0 +1,97 @@
60 +# Copyright 1999-2018 Gentoo Authors
61 +# Distributed under the terms of the GNU General Public License v2
62 +
63 +EAPI=6
64 +
65 +inherit toolchain-funcs
66 +
67 +MY_P="${P/_/.}"
68 +
69 +DESCRIPTION="Text formatter used for man pages"
70 +HOMEPAGE="https://www.gnu.org/software/groff/groff.html"
71 +SRC_URI="mirror://gnu/groff/${MY_P}.tar.gz
72 + mirror://gnu-alpha/groff/${MY_P}.tar.gz"
73 +
74 +LICENSE="GPL-2"
75 +SLOT="0"
76 +[[ "${PV}" == *_rc* ]] || \
77 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
78 +IUSE="examples X"
79 +
80 +RDEPEND="
81 + X? (
82 + x11-libs/libX11
83 + x11-libs/libXt
84 + x11-libs/libXmu
85 + x11-libs/libXaw
86 + x11-libs/libSM
87 + x11-libs/libICE
88 + )"
89 +DEPEND="${RDEPEND}
90 + dev-lang/perl"
91 +
92 +DOCS=( BUG-REPORT ChangeLog MORE.STUFF NEWS PROBLEMS PROJECTS README TODO )
93 +
94 +S="${WORKDIR}/${MY_P}"
95 +
96 +PATCHES=(
97 + "${FILESDIR}"/${PN}-1.19.2-man-unicode-dashes.patch #16108 #17580 #121502
98 +)
99 +
100 +src_prepare() {
101 + default
102 +
103 + # Make sure we can cross-compile this puppy
104 + if tc-is-cross-compiler ; then
105 + sed -i \
106 + -e '/^GROFFBIN=/s:=.*:=${EPREFIX}/usr/bin/groff:' \
107 + -e '/^TROFFBIN=/s:=.*:=${EPREFIX}/usr/bin/troff:' \
108 + -e '/^GROFF_BIN_PATH=/s:=.*:=:' \
109 + -e '/^GROFF_BIN_DIR=/s:=.*:=:' \
110 + contrib/*/Makefile.sub \
111 + doc/Makefile.in \
112 + doc/Makefile.sub || die "cross-compile sed failed"
113 + fi
114 +
115 + local pfx=$(usex prefix ' Prefix' '')
116 + cat <<-EOF >> tmac/mdoc.local
117 + .ds volume-operating-system Gentoo${pfx}
118 + .ds operating-system Gentoo${pfx}/${KERNEL}
119 + .ds default-operating-system Gentoo${pfx}/${KERNEL}
120 + EOF
121 +
122 + # make sure we don't get a crappy `g' nameprefix on UNIX systems with real
123 + # troff (GROFF_G macro runs some test to see, its own troff doesn't satisfy)
124 + sed -i -e 's/^[ \t]\+g=g$/g=/' configure || die
125 +}
126 +
127 +src_configure() {
128 + local myeconfargs=(
129 + --with-appresdir="${EPREFIX}"/usr/share/X11/app-defaults
130 + --docdir="${EPREFIX}"/usr/share/doc/${PF}
131 + $(use_with X x)
132 + )
133 + econf "${myeconfargs[@]}"
134 +}
135 +
136 +src_compile() {
137 + emake AR="$(tc-getAR)"
138 +}
139 +
140 +src_install() {
141 + default
142 +
143 + # The following links are required for man #123674
144 + dosym eqn /usr/bin/geqn
145 + dosym tbl /usr/bin/gtbl
146 +
147 + if ! use examples ; then
148 + # The pdf files might not be generated if ghostscript is unavailable. #602020
149 + local pdf="${ED%/}/usr/share/doc/${PF}/examples/mom/mom-pdf.pdf"
150 + if [[ -e ${pdf} ]] ; then
151 + # Keep mom-pdf.pdf since it's more of a manual than an example. #454196 #516732
152 + mv "${pdf}" "${ED%/}"/usr/share/doc/${PF}/pdf/ || die
153 + fi
154 + rm -rf "${ED%/}"/usr/share/doc/${PF}/examples
155 + fi
156 +}