Contents of /branches/magellan-next/core/less/less-436-r3.smage2
Parent Directory | Revision Log
Revision 5934 -
(show annotations)
(download)
Tue Aug 17 17:56:04 2010 UTC (14 years, 1 month ago) by niro
File size: 1243 byte(s)
Tue Aug 17 17:56:04 2010 UTC (14 years, 1 month ago) by niro
File size: 1243 byte(s)
auto added: ver bump to 436-r3
1 | # $Id: less-436-r2.smage2 3612 2009-10-27 13:42:53Z niro $ |
2 | |
3 | PNAME="less" |
4 | PVER="436" |
5 | PBUILD="r3" |
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.7" |
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 | } |