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