Magellan Linux

Contents of /smage/trunk/core/groff/groff-1.21-r3.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1745 - (show annotations) (download)
Mon Sep 19 09:12:19 2011 UTC (12 years, 7 months ago) by niro
File size: 1659 byte(s)
auto added: ver bump to 1.21-r3
1 # $Id$
2
3 PNAME="groff"
4 PVER="1.21"
5 PBUILD="r3"
6
7 PCATEGORIE="sys-apps"
8
9 DESCRIPTION="Text formatter used for man pages."
10 HOMEPAGE="http://www.gnu.org/software/groff/groff.html"
11
12 DEPEND=">= virtual/glibc
13 >= sys-apps/texinfo-4"
14
15 SRCFILE="${PNAME}-${PVER}.tar.gz"
16 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
17
18 # defines default page layout, may become a virtual
19 # -> groff-A4, groff-letter = virtual/groff etc
20 GROFFPAGE=A4
21
22 sminclude mtools
23
24 SRC_URI=(
25 gnu://${PNAME}/${SRCFILE}
26 mirror://${PNAME}/${SRCFILE}
27 mirror://${PNAME}/${PNAME}-1.20.1-no-netpbm-depend.patch
28 mirror://${PNAME}/${PNAME}-1.19.2-man-unicode-dashes.patch
29 )
30
31 UP2DATE="updatecmd http://ftp.gnu.org/gnu/${PNAME}/|grep tar.gz$|sed 's/.*-\(.*\)\.t.*/\1/'|sort|sed -n '$ p'"
32
33 src_prepare()
34 {
35 munpack ${SRCFILE} || die
36 cd ${SRCDIR}
37
38 # do not depend on netpbm
39 mpatch ${PNAME}-1.20.1-no-netpbm-depend.patch || die
40
41 # make dashes the same as minus on the keyboard so that you
42 # can search for it
43 mpatch ${PNAME}-1.19.2-man-unicode-dashes.patch || die
44 }
45
46 src_compile()
47 {
48 cd ${SRCDIR}
49
50 # do not use mconfigure, this package is broken
51 # and do not use the parallel-make patch from gentoo, its broken too!!
52 PAGE=${GROFFPAGE} ./configure \
53 --prefix=/usr \
54 --libdir='${prefix}'/$(mlibdir) \
55 --without-x || die
56
57 mmake -j1 || die
58 }
59
60 src_install()
61 {
62 cd ${SRCDIR}
63
64 # needed directories
65 minstalldir /usr || die
66
67 make prefix=${BINDIR}/usr install || die
68
69 mlink soelim /usr/bin/zsoelim || die
70 mlink eqn /usr/bin/geqn || die
71 mlink tbl /usr/bin/gtbl || die
72
73 minstalldocs BUG-REPORT COPYING ChangeLog FDL LICENSE MANIFEST MORE.STUFF \
74 NEWS PROBLEMS PROJECTS README REVISION TODO VERSION || die
75 }