72 lines
1.7 KiB
Bash
72 lines
1.7 KiB
Bash
SUMMARY="Line editing library for UNIX call compatible with the FSF readline"
|
|
DESCRIPTION="This is a line editing library for UNIX. It can be linked into \
|
|
almost any program to provide command line editing and history. It is call \
|
|
compatible with the FSF readline library, but is a fraction of the size \
|
|
(and offers fewer features)."
|
|
HOMEPAGE="https://troglobit.com/projects/editline/"
|
|
COPYRIGHT="1992,1993 Simmule Turner and Rich Salz"
|
|
LICENSE="Apache v2"
|
|
REVISION="1"
|
|
SOURCE_URI="https://github.com/troglobit/editline/releases/download/$portVersion/editline-$portVersion.tar.xz"
|
|
CHECKSUM_SHA256="df223b3333a545fddbc67b49ded3d242c66fadf7a04beb3ada20957fcd1ffc0e"
|
|
SOURCE_DIR="editline-$portVersion"
|
|
|
|
ARCHITECTURES="all ?x86_gcc2 ?x86 ?sparc ?m68k"
|
|
SECONDARY_ARCHITECTURES="x86 ?x86_gcc2"
|
|
|
|
libVersion="1.0.2"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
libeditline$secondaryArchSuffix = $portVersion
|
|
lib:libeditline$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libeditline${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libeditline$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
libeditline$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:aclocal
|
|
cmd:autoreconf
|
|
cmd:awk
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:makeinfo
|
|
"
|
|
|
|
defineDebugInfoPackage libeditline$secondaryArchSuffix \
|
|
$libDir/libeditline.so.$libVersion
|
|
|
|
BUILD()
|
|
{
|
|
autoreconf -fi
|
|
runConfigure ./configure
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
rm $libDir/libeditline.la
|
|
prepareInstalledDevelLib libeditline
|
|
fixPkgconfig
|
|
packageEntries devel $developDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check $jobArgs
|
|
}
|