mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-10 13:50:08 +02:00
Not referencing them caused them to be missing from the source packages. This also moves all files that were in different dirs under the common additional-files dir.
64 lines
1.6 KiB
Bash
64 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.gnu.org/software/less/"
|
|
SOURCE_URI="http://ftp.gnu.org/gnu/less/less-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="9fe8287c647afeafb4149c5dedaeacfd20971ed7c26c7553794bb750536b5f57"
|
|
PATCHES="less-451.patch"
|
|
ADDITIONAL_FILES="sysless.in"
|
|
LICENSE="GNU GPL v3"
|
|
COPYRIGHT="1984-2012 Mark Nudelman"
|
|
REVISION="4"
|
|
ARCHITECTURES="x86_gcc2 x86 x86_64"
|
|
|
|
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:gcc$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:autoconf
|
|
cmd:aclocal
|
|
"
|
|
|
|
GLOBAL_WRITABLE_FILES="
|
|
settings/etc/sysless.src keep-old
|
|
settings/etc/sysless keep-old
|
|
"
|
|
|
|
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"
|
|
}
|