Contents of /trunk/deprecated/man/man-1.6g-r3.smage2
Parent Directory | Revision Log
Revision 10560 -
(show annotations)
(download)
Wed Jan 25 18:59:19 2012 UTC (12 years, 8 months ago) by niro
File size: 2365 byte(s)
Wed Jan 25 18:59:19 2012 UTC (12 years, 8 months ago) by niro
File size: 2365 byte(s)
-moved to 'deprecated'
1 | # $Id$ |
2 | |
3 | PNAME="man" |
4 | PVER="1.6g" |
5 | PBUILD="r3" |
6 | |
7 | PCATEGORIE="sys-apps" |
8 | |
9 | DESCRIPTION="Standard commands to read man pages." |
10 | HOMEPAGE="http://freshmeat.net/projects/man/" |
11 | |
12 | DEPEND=">= virtual/glibc" |
13 | SDEPEND=">= sys-apps/sed-4" |
14 | PROVIDE="virtual/man" |
15 | |
16 | SRCFILE="${PNAME}-${PVER}.tar.gz" |
17 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
18 | |
19 | sminclude mtools |
20 | |
21 | SRC_URI=( |
22 | http://primates.ximian.com/~flucifredi/${PNAME}/${SRCFILE} |
23 | mirror://${PNAME}/${SRCFILE} |
24 | mirror://${PNAME}/man-1.6f-unicode.patch |
25 | mirror://${PNAME}/man-1.5m2-apropos.patch |
26 | mirror://${PNAME}/man-1.5p-defmanpath-symlinks.patch |
27 | mirror://${PNAME}/man-1.5p-search-order.patch |
28 | mirror://${PNAME}/man-1.6b-more-sections.patch |
29 | mirror://${PNAME}/man-1.6c-cut-duplicate-manpaths.patch |
30 | mirror://${PNAME}/man-1.6e-headers.patch |
31 | mirror://${PNAME}/man-1.6e-man2html-bzip2.patch |
32 | mirror://${PNAME}/man-1.6e-readonly-whatis2.patch |
33 | mirror://${PNAME}/makewhatis.cron |
34 | ) |
35 | |
36 | UP2DATE="updatecmd http://primates.ximian.com/~flucifredi/man | firsttarball gz" |
37 | |
38 | src_prepare() |
39 | { |
40 | munpack ${SRCFILE} || die |
41 | cd ${SRCDIR} |
42 | |
43 | # unicode fixups |
44 | mpatch man-1.6f-unicode.patch || die |
45 | # fix the look of some man pages on some locales |
46 | mpatch man-1.5m2-apropos.patch || die |
47 | # fix man pathes; some of them are symlinks and |
48 | # it is not neccessary to process them twice |
49 | mpatch man-1.5p-defmanpath-symlinks.patch || die |
50 | # fix the search order that system man-pages will be found first |
51 | mpatch man-1.5p-search-order.patch || die |
52 | # add more sections to respect xorg man pages |
53 | mpatch man-1.6b-more-sections.patch || die |
54 | # remove duplicate man pathes when they are symlinked |
55 | mpatch man-1.6c-cut-duplicate-manpaths.patch || die |
56 | # fixed some missing headers |
57 | mpatch man-1.6e-headers.patch || die |
58 | # add bzip2 support to man2html |
59 | mpatch man-1.6e-man2html-bzip2.patch || die |
60 | |
61 | # adds the -R switch to the PAGER variable |
62 | sed -i 's@-is@&R@g' configure || die |
63 | |
64 | # forces the use of ${CFLAGS} |
65 | sed -i "s/CFLAGS = /CFLAGS = ${CFLAGS} /" man2html/Makefile.in || die |
66 | |
67 | # prevents redundant results when using programs such as whatis |
68 | sed -i 's@MANPATH./usr/man@#&@g' src/man.conf.in || die |
69 | } |
70 | |
71 | src_compile() |
72 | { |
73 | cd ${SRCDIR} |
74 | |
75 | ./configure -default -confdir=/etc || die |
76 | mmake || die |
77 | } |
78 | |
79 | src_install() |
80 | { |
81 | cd ${SRCDIR} |
82 | make PREFIX=${BINDIR} install || die |
83 | minstallcron daily makewhatis.cron makewhatis || die |
84 | minstalldocs COPYING HISTORY README TODO || die |
85 | } |