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

Contents of /sys-apps/groff/groff-1.20.1-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sat Nov 7 06:10:09 2009 UTC (4 years, 5 months ago) by matsuu
Branch: MAIN
Fixed japanese patch, bug #290103.
(Portage version: 2.1.7.3/cvs/Linux x86_64)

1 # Copyright 1999-2009 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.20.1-r1.ebuild,v 1.11 2009/08/16 04:38:31 mr_bones_ 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/${PF}-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 ~sparc-fbsd ~x86 ~x86-fbsd"
15 IUSE="examples X linguas_ja"
16
17 DEPEND=">=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
27 src_unpack() {
28 unpack ${A}
29 cd "${S}"
30
31 epatch "${FILESDIR}"/${PN}-1.19.2-man-unicode-dashes.patch #16108 #17580 #121502
32
33 # put the docs in the Gentoo-specific spot
34 sed -i \
35 -e '/^docdir=/s/=.*/=@docdir@/' \
36 Makefile.in \
37 || die "sed failed"
38
39 # Make sure we can cross-compile this puppy
40 if tc-is-cross-compiler ; then
41 sed -i \
42 -e '/^GROFFBIN=/s:=.*:=/usr/bin/groff:' \
43 -e '/^TROFFBIN=/s:=.*:=/usr/bin/troff:' \
44 -e '/^GROFF_BIN_PATH=/s:=.*:=:' \
45 -e '/^GROFF_BIN_DIR=/s:=.*:=:' \
46 contrib/*/Makefile.sub \
47 doc/Makefile.in \
48 doc/Makefile.sub || die "cross-compile sed failed"
49 fi
50
51 cat <<-EOF >> tmac/mdoc.local
52 .ds volume-operating-system Gentoo
53 .ds operating-system Gentoo/${KERNEL}
54 .ds default-operating-system Gentoo/${KERNEL}
55 EOF
56
57 if use linguas_ja ; then
58 epatch "${WORKDIR}"/${PF}-japanese.patch #255292
59 eautoconf
60 eautoheader
61 fi
62 }
63
64 src_compile() {
65 # Fix problems with not finding g++
66 # tc-export CC CXX
67 econf \
68 --with-appresdir=/usr/share/X11/app-defaults \
69 --docdir=/usr/share/doc/${PF} \
70 $(use_with X x) \
71 $(use linguas_ja && echo --enable-japanese)
72 emake || die
73 }
74
75 src_install() {
76 emake install DESTDIR="${D}" || die
77
78 # The following links are required for man #123674
79 dosym eqn /usr/bin/geqn
80 dosym tbl /usr/bin/gtbl
81
82 dodoc BUG-REPORT ChangeLog MORE.STUFF NEWS \
83 PROBLEMS PROJECTS README REVISION TODO VERSION
84
85 if ! use examples ; then
86 rm -rf "${D}"/usr/share/doc/${PF}/examples
87 fi
88 }

  ViewVC Help
Powered by ViewVC 1.1.20