Magellan Linux

Contents of /branches/magellan-next/core/less/less-436-r4.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7481 - (show annotations) (download)
Tue Mar 15 22:03:07 2011 UTC (13 years, 1 month ago) by niro
File size: 1243 byte(s)
auto added: ver bump to 436-r4
1 # $Id: less-436-r2.smage2 3612 2009-10-27 13:42:53Z niro $
2
3 PNAME="less"
4 PVER="436"
5 PBUILD="r4"
6
7 PCATEGORIE="sys-apps"
8 STATE="unstable"
9
10 DESCRIPTION="Excellent text file viewer."
11 HOMEPAGE="http://www.greenwoodsoftware.com/less/"
12
13 DEPEND=">= virtual/glibc
14 >= sys-libs/ncurses-5.8"
15
16 SRCFILE="${PNAME}-${PVER}.tar.gz"
17 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
18
19 sminclude mtools
20
21 SRC_URI=(
22 http://www.greenwoodsoftware.com/${PNAME}/${SRCFILE}
23 mirror://${PNAME}/${SRCFILE}
24 )
25
26 UP2DATE="updatecmd ${HOMEPAGE}/download.html | grep -i 'recommended:.*(source)' | sed 's/.*version \(.*\) (source.*/\1/'"
27
28 src_prepare()
29 {
30 munpack ${SRCFILE} || die
31 }
32
33 src_compile()
34 {
35 cd ${SRCDIR}
36 mconfigure --bindir=/bin || die
37 mmake || die
38 }
39
40 src_install()
41 {
42 cd ${SRCDIR}
43
44 # some needed directories
45 minstalldir /bin || die
46 minstalldir /usr/share/man/man1 || die
47 minstalldir /etc/env.d || die
48
49 minstallexec less /bin || die
50 minstallexec lessecho /bin || die
51 minstallexec lesskey /bin || die
52
53 # needed for groff-1.18 and later ...
54 echo "LESS=\"-R\"" > ${BINDIR}/etc/env.d/70less || die
55
56 minstallfile less.nro /usr/share/man/man1/less.1 || die
57 minstallfile lesskey.nro /usr/share/man/man1/lesskey.1 || die
58
59 minstalldocs COPYING LICENSE NEWS README || die
60 }