Magellan Linux

Annotation of /branches/magellan-next/core/less/less-443-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7568 - (hide annotations) (download)
Thu May 26 21:31:00 2011 UTC (12 years, 11 months ago) by niro
File size: 877 byte(s)
auto added: ver bump to 443-r1
1 niro 7568 # $Id$
2    
3     PNAME="less"
4     PVER="443"
5     PBUILD="r1"
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.9"
15    
16     SRCFILE="${PNAME}-${PVER}.tar.gz"
17     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
18    
19     sminclude mbuild 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_compile()
29     {
30     cd ${SRCDIR}
31     mconfigure --bindir=/bin || die
32     mmake || die
33     }
34    
35     src_install()
36     {
37     cd ${SRCDIR}
38     mmake DESTDIR=${BINDIR} install || die
39    
40     # needed for groff-1.18 and later ...
41     minstalldir /etc/env.d || die
42     echo "LESS=\"-R\"" > ${BINDIR}/etc/env.d/70less || die
43    
44     minstalldocs COPYING LICENSE NEWS README || die
45     }