mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
LibEditLine: new recipe (#5785)
This commit is contained in:
71
dev-libs/editline/libeditline-1.17.1.recipe
Normal file
71
dev-libs/editline/libeditline-1.17.1.recipe
Normal file
@@ -0,0 +1,71 @@
|
||||
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="?x86_gcc2 ?x86 x86_64 ?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
|
||||
}
|
||||
Reference in New Issue
Block a user