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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Fri Jun 8 05:17:13 2012 UTC (22 months, 1 week ago) by vapier
Branch: MAIN
Changes since 1.3: +4 -2 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-r1.ebuild,v 1.3 2012/04/26 15:12:59 aballier Exp $
4
5 EAPI="3"
6
7 inherit autotools eutils toolchain-funcs
8
9 DESCRIPTION="Text formatter used for man pages"
10 HOMEPAGE="http://www.gnu.org/software/groff/groff.html"
11 SRC_URI="mirror://gnu/groff/${P}.tar.gz
12 linguas_ja? ( mirror://gentoo/${P}-japanese.patch.bz2 )"
13
14 LICENSE="GPL-2"
15 SLOT="0"
16 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~ia64-hpux ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
17 IUSE="examples X linguas_ja"
18
19 RDEPEND=">=sys-apps/texinfo-4.7-r1
20 X? (
21 x11-libs/libX11
22 x11-libs/libXt
23 x11-libs/libXmu
24 x11-libs/libXaw
25 x11-libs/libSM
26 x11-libs/libICE
27 )"
28 DEPEND="${RDEPEND}
29 linguas_ja? ( virtual/yacc )"
30
31 src_prepare() {
32 epatch "${FILESDIR}"/${PN}-1.19.2-man-unicode-dashes.patch #16108 #17580 #121502
33 epatch "${FILESDIR}"/${PN}-1.20.1-pdfmark-parallel.patch
34
35 # Make sure we can cross-compile this puppy
36 if tc-is-cross-compiler ; then
37 sed -i \
38 -e '/^GROFFBIN=/s:=.*:=${EPREFIX}/usr/bin/groff:' \
39 -e '/^TROFFBIN=/s:=.*:=${EPREFIX}/usr/bin/troff:' \
40 -e '/^GROFF_BIN_PATH=/s:=.*:=:' \
41 -e '/^GROFF_BIN_DIR=/s:=.*:=:' \
42 contrib/*/Makefile.sub \
43 doc/Makefile.in \
44 doc/Makefile.sub || die "cross-compile sed failed"
45 fi
46
47 local pfx=
48 use prefix && pfx=" Prefix"
49 cat <<-EOF >> tmac/mdoc.local
50 .ds volume-operating-system Gentoo${pfx}
51 .ds operating-system Gentoo${pfx}/${KERNEL}
52 .ds default-operating-system Gentoo${pfx}/${KERNEL}
53 EOF
54
55 if use linguas_ja ; then
56 epatch "${WORKDIR}"/${P}-japanese.patch #255292 #350534
57 eautoconf
58 eautoheader
59 fi
60
61 # from upstream, #353287, #353377
62 epatch "${FILESDIR}"/groff-1.21-makefile.patch
63 epatch "${FILESDIR}"/groff-1.21-gnulib.patch
64 # make sure we don't get a crappy `g' nameprefix on UNIX systems with real
65 # troff (GROFF_G macro runs some test to see, its own troff doesn't satisfy)
66 sed -i -e 's/^[ \t]\+g=g$/g=/' configure || die
67 }
68
69 src_configure() {
70 econf \
71 --with-appresdir="${EPREFIX}"/usr/share/X11/app-defaults \
72 --docdir="${EPREFIX}"/usr/share/doc/${PF} \
73 $(use_with X x) \
74 $(use linguas_ja && echo --enable-japanese)
75 }
76
77 src_install() {
78 emake install DESTDIR="${D}" || die
79
80 # The following links are required for man #123674
81 dosym eqn /usr/bin/geqn
82 dosym tbl /usr/bin/gtbl
83
84 dodoc BUG-REPORT ChangeLog MORE.STUFF NEWS \
85 PROBLEMS PROJECTS README REVISION TODO VERSION
86
87 use examples || rm -rf "${ED}"/usr/share/doc/${PF}/examples
88 }

  ViewVC Help
Powered by ViewVC 1.1.20