Contents of /branches/R11-unstable/core/groff/groff-1.22.3-r1.smage2
Parent Directory | Revision Log
Revision 24973 -
(show annotations)
(download)
Tue Nov 25 02:45:01 2014 UTC (9 years, 10 months ago) by niro
File size: 1542 byte(s)
Tue Nov 25 02:45:01 2014 UTC (9 years, 10 months ago) by niro
File size: 1542 byte(s)
-release branches/R11-unstable
1 | # $Id$ |
2 | |
3 | PNAME="groff" |
4 | PVER="1.22.3" |
5 | PBUILD="r1" |
6 | |
7 | PCAT="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-libs/libstdc++-4.8 |
14 | >= sys-apps/texinfo-5" |
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 | sminclude mtools |
24 | |
25 | SRC_URI=( |
26 | gnu://${PNAME}/${SRCFILE} |
27 | mirror://${PNAME}/${SRCFILE} |
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 | # make dashes the same as minus on the keyboard so that you |
39 | # can search for it |
40 | mpatch ${PNAME}-1.19.2-man-unicode-dashes.patch || die |
41 | } |
42 | |
43 | src_compile() |
44 | { |
45 | cd ${SRCDIR} |
46 | |
47 | # do not use mconfigure, this package is broken |
48 | # and do not use the parallel-make patch from gentoo, its broken too!! |
49 | PAGE=${GROFFPAGE} ./configure \ |
50 | --prefix=/usr \ |
51 | --libdir='${prefix}'/$(mlibdir) \ |
52 | --without-x || die |
53 | |
54 | mmake -j1 || die |
55 | } |
56 | |
57 | src_install() |
58 | { |
59 | cd ${SRCDIR} |
60 | |
61 | # needed directories |
62 | minstalldir /usr || die |
63 | |
64 | make prefix=${BINDIR}/usr install || die |
65 | |
66 | mlink soelim /usr/bin/zsoelim || die |
67 | mlink eqn /usr/bin/geqn || die |
68 | mlink tbl /usr/bin/gtbl || die |
69 | |
70 | minstalldocs BUG-REPORT COPYING ChangeLog FDL LICENSE MANIFEST MORE.STUFF \ |
71 | NEWS PROBLEMS PROJECTS README REVISION TODO VERSION || die |
72 | } |