/[gentoo-x86]/sys-apps/groff/groff-1.21.ebuild
Gentoo

Contents of /sys-apps/groff/groff-1.21.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Fri Jun 8 05:17:13 2012 UTC (22 months, 1 week ago) by vapier
Branch: MAIN
Changes since 1.9: +5 -3 lines
Depend on yacc when LINGUAS=ja #385613 by Bryan Gardiner.

(Portage version: 2.2.0_alpha110/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sys-apps/groff/groff-1.21.ebuild,v 1.9 2011/12/21 19:33:24 vapier Exp $
4
5 inherit autotools eutils toolchain-funcs
6
7 DESCRIPTION="Text formatter used for man pages"
8 HOMEPAGE="http://www.gnu.org/software/groff/groff.html"
9 SRC_URI="mirror://gnu/groff/${P}.tar.gz
10 linguas_ja? ( mirror://gentoo/${P}-japanese.patch.bz2 )"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd"
15 IUSE="examples X linguas_ja"
16
17 RDEPEND=">=sys-apps/texinfo-4.7-r1
18 X? (
19 x11-libs/libX11
20 x11-libs/libXt
21 x11-libs/libXmu
22 x11-libs/libXaw
23 x11-libs/libSM
24 x11-libs/libICE
25 )"
26 DEPEND="${RDEPEND}
27 linguas_ja? ( virtual/yacc )"
28
29 src_unpack() {
30 unpack ${A}
31 cd "${S}"
32
33 epatch "${FILESDIR}"/${PN}-1.19.2-man-unicode-dashes.patch #16108 #17580 #121502
34 epatch "${FILESDIR}"/${PN}-1.20.1-pdfmark-parallel.patch
35
36 # Make sure we can cross-compile this puppy
37 if tc-is-cross-compiler ; then
38 sed -i \
39 -e '/^GROFFBIN=/s:=.*:=/usr/bin/groff:' \
40 -e '/^TROFFBIN=/s:=.*:=/usr/bin/troff:' \
41 -e '/^GROFF_BIN_PATH=/s:=.*:=:' \
42 -e '/^GROFF_BIN_DIR=/s:=.*:=:' \
43 contrib/*/Makefile.sub \
44 doc/Makefile.in \
45 doc/Makefile.sub || die "cross-compile sed failed"
46 fi
47
48 cat <<-EOF >> tmac/mdoc.local
49 .ds volume-operating-system Gentoo
50 .ds operating-system Gentoo/${KERNEL}
51 .ds default-operating-system Gentoo/${KERNEL}
52 EOF
53
54 if use linguas_ja ; then
55 epatch "${WORKDIR}"/${P}-japanese.patch #255292 #350534
56 eautoconf
57 eautoheader
58 fi
59 }
60
61 src_compile() {
62 econf \
63 --with-appresdir=/usr/share/X11/app-defaults \
64 --docdir=/usr/share/doc/${PF} \
65 $(use_with X x) \
66 $(use linguas_ja && echo --enable-japanese)
67 emake || die
68 }
69
70 src_install() {
71 emake install DESTDIR="${D}" || die
72
73 # The following links are required for man #123674
74 dosym eqn /usr/bin/geqn
75 dosym tbl /usr/bin/gtbl
76
77 dodoc BUG-REPORT ChangeLog MORE.STUFF NEWS \
78 PROBLEMS PROJECTS README REVISION TODO VERSION
79
80 use examples || rm -rf "${D}"/usr/share/doc/${PF}/examples
81 }

  ViewVC Help
Powered by ViewVC 1.1.20