mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-16 00:30:06 +02:00
x86_64 is used as a baseline: the "x86_64" entry, whatever status it has, is transformed into "all", and then the other entries in ARCHITECTURES either dropped or rearranged appropriately.
66 lines
1.6 KiB
Bash
66 lines
1.6 KiB
Bash
SUMMARY="A free, open-source file pager"
|
|
DESCRIPTION="GNU 'less' is a program similar to 'more', but which allows \
|
|
backward movement in the file as well as forward movement. Also, 'less' \
|
|
does not have to read the entire input file before starting, so with \
|
|
large input files it starts up faster than text editors like 'vi'.
|
|
Less uses 'termcap' (or 'terminfo' on some systems), so it can run on a \
|
|
variety of terminals. There is even limited support for hardcopy terminals."
|
|
HOMEPAGE="http://www.greenwoodsoftware.com/less/"
|
|
COPYRIGHT="1984-2015 Mark Nudelman"
|
|
LICENSE="GNU GPL v3"
|
|
REVISION="2"
|
|
SOURCE_URI="http://www.greenwoodsoftware.com/less/less-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="f3dc8455cb0b2b66e0c6b816c00197a71bf6d1787078adeee0bcf2aea4b12706"
|
|
PATCHES="less-$portVersion.patchset"
|
|
ADDITIONAL_FILES="sysless.in"
|
|
|
|
ARCHITECTURES="all"
|
|
|
|
GLOBAL_WRITABLE_FILES="
|
|
settings/etc/sysless.src keep-old
|
|
settings/etc/sysless keep-old
|
|
"
|
|
|
|
PROVIDES="
|
|
less = $portVersion
|
|
cmd:less
|
|
cmd:lessecho
|
|
cmd:lesskey
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libncurses$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libncurses$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:aclocal
|
|
cmd:autoconf
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:make
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
autoconf
|
|
runConfigure ./configure --with-editor=nano \
|
|
--sysconfdir=$settingsDir/etc
|
|
make
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
syslessDir=$settingsDir/etc
|
|
mkdir $syslessDir
|
|
cp "$portDir/additional-files/sysless.in" \
|
|
"$syslessDir/sysless.src"
|
|
$binDir/lesskey -o "$syslessDir/sysless" \
|
|
"$syslessDir/sysless.src"
|
|
}
|