Magellan Linux

Contents of /smage/trunk/core/groff/groff-1.22.4-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 13908 - (show annotations) (download)
Sat Jun 27 17:28:30 2020 UTC (3 years, 10 months ago) by niro
File size: 1591 byte(s)
auto added: ver bump to 1.22.4-r2
1 # $Id$
2
3 PNAME="groff"
4 PVER="1.22.4"
5 PBUILD="r2"
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++-9.3
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 ALX_PKG_KEEP="usr/bin usr/share/groff"
24 sminclude mtools alx-split
25
26 SRC_URI=(
27 gnu://${PNAME}/${SRCFILE}
28 mirror://${PNAME}/${SRCFILE}
29 mirror://${PNAME}/${PNAME}-1.19.2-man-unicode-dashes.patch
30 )
31
32 UP2DATE="updatecmd http://ftp.gnu.org/gnu/${PNAME}/|grep tar.gz$|sed 's/.*-\(.*\)\.t.*/\1/'|sort|sed -n '$ p'"
33
34 src_prepare()
35 {
36 munpack ${SRCFILE} || die
37 cd ${SRCDIR}
38
39 # make dashes the same as minus on the keyboard so that you
40 # can search for it
41 mpatch ${PNAME}-1.19.2-man-unicode-dashes.patch || die
42 }
43
44 src_compile()
45 {
46 cd ${SRCDIR}
47
48 # do not use mconfigure, this package is broken
49 # and do not use the parallel-make patch from gentoo, its broken too!!
50 PAGE=${GROFFPAGE} ./configure \
51 --prefix=/usr \
52 --libdir='${prefix}'/$(mlibdir) \
53 --without-x || die
54
55 mmake -j1 || die
56 }
57
58 src_install()
59 {
60 cd ${SRCDIR}
61
62 # needed directories
63 minstalldir /usr || die
64
65 make prefix=${BINDIR}/usr install || die
66
67 mlink soelim /usr/bin/zsoelim || die
68 mlink eqn /usr/bin/geqn || die
69 mlink tbl /usr/bin/gtbl || die
70
71 minstalldocs BUG-REPORT COPYING ChangeLog FDL LICENSE MANIFEST MORE.STUFF \
72 NEWS PROBLEMS PROJECTS README REVISION TODO VERSION || die
73 }