Magellan Linux

Contents of /trunk/core/less/less-530-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 30656 - (show annotations) (download)
Mon Mar 5 13:03:46 2018 UTC (6 years, 1 month ago) by niro
File size: 914 byte(s)
auto added: ver bump to 530-r1
1 # $Id$
2
3 PNAME="less"
4 PVER="530"
5 PBUILD="r1"
6
7 PCAT="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-6.0"
14
15 PROVIDE="virtual/less"
16
17 SRCFILE="${PNAME}-${PVER}.tar.gz"
18 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
19
20 sminclude mbuild mtools
21
22 SRC_URI=(
23 http://www.greenwoodsoftware.com/${PNAME}/${SRCFILE}
24 mirror://${PNAME}/${SRCFILE}
25 )
26
27 UP2DATE="updatecmd ${HOMEPAGE}/download.html | grep -i 'recommended:.*(source)' | sed 's/.*version \(.*\) (source.*/\1/'"
28
29 src_prepare()
30 {
31 # regular tarball, not a tar.gz
32 tar xvf ${SOURCEDIR}/${PNAME}/${SRCFILE} -C ${BUILDDIR} || 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 }