Magellan Linux

Contents of /branches/magellan-next/core/less/less-444-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 8410 - (show annotations) (download)
Mon Jul 18 17:14:02 2011 UTC (12 years, 10 months ago) by niro
File size: 860 byte(s)
auto added: ver bump to 444-r1
1 # $Id$
2
3 PNAME="less"
4 PVER="444"
5 PBUILD="r1"
6
7 PCATEGORIE="sys-apps"
8
9 DESCRIPTION="Excellent text file viewer."
10 HOMEPAGE="http://www.greenwoodsoftware.com/less/"
11
12 DEPEND=">= virtual/glibc
13 >= sys-libs/ncurses-5.9"
14
15 SRCFILE="${PNAME}-${PVER}.tar.gz"
16 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
17
18 sminclude mbuild mtools
19
20 SRC_URI=(
21 http://www.greenwoodsoftware.com/${PNAME}/${SRCFILE}
22 mirror://${PNAME}/${SRCFILE}
23 )
24
25 UP2DATE="updatecmd ${HOMEPAGE}/download.html | grep -i 'recommended:.*(source)' | sed 's/.*version \(.*\) (source.*/\1/'"
26
27 src_compile()
28 {
29 cd ${SRCDIR}
30 mconfigure --bindir=/bin || die
31 mmake || die
32 }
33
34 src_install()
35 {
36 cd ${SRCDIR}
37 mmake DESTDIR=${BINDIR} install || die
38
39 # needed for groff-1.18 and later ...
40 minstalldir /etc/env.d || die
41 echo "LESS=\"-R\"" > ${BINDIR}/etc/env.d/70less || die
42
43 minstalldocs COPYING LICENSE NEWS README || die
44 }