Files
haikuports/sys-libs/readline/readline-7.0.recipe
Zoltán Mizsei 2cef30afc7 Fixed hash.
2016-09-17 18:05:02 +02:00

82 lines
2.2 KiB
Bash

SUMMARY="The GNU Readline library"
DESCRIPTION="The GNU Readline library provides a set of functions for use by \
applications that allow users to edit command lines as they are typed in. \
Both Emacs and vi editing modes are available. The Readline library includes \
additional functions to maintain a list of previously-entered command lines, \
to recall and perhaps reedit those lines, and perform csh-like history \
expansion on previous commands.
The history facilites are also placed into a separate library, the History \
library, as part of the build process. The History library may be used without \
Readline in applications which desire its capabilities."
HOMEPAGE="http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html"
COPYRIGHT="1989-2016 Free Software Foundation, Inc."
LICENSE="GNU GPL v3"
REVISION="1"
SOURCE_URI="ftp://ftp.gnu.org/gnu/readline/readline-$portVersion.tar.gz"
CHECKSUM_SHA256="750d437185286f40a369e1e4f4764eda932b9459b5ec9a731628393dd3d32334"
PATCHES="readline-$portVersion.patch"
ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
PROVIDES="
readline$secondaryArchSuffix = $portVersion compat >= 7
lib:libhistory$secondaryArchSuffix = $portVersion compat >= 7
lib:libreadline$secondaryArchSuffix = $portVersion compat >= 7
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libncurses$secondaryArchSuffix
"
PROVIDES_devel="
readline${secondaryArchSuffix}_devel = $portVersion
devel:libhistory$secondaryArchSuffix = $portVersion compat >= 7
devel:libreadline$secondaryArchSuffix = $portVersion compat >= 7
"
REQUIRES_devel="
readline$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libncurses$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:aclocal
cmd:autoconf
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:libtoolize
cmd:make
"
defineDebugInfoPackage readline \
$libDir/libhistory.so.7.0 \
$libDir/libreadline.so.7.0
BUILD()
{
libtoolize --force --copy --install
aclocal
autoconf
runConfigure ./configure \
--with-curses
make $jobArgs SHLIB_LIBS=-lncurses
}
INSTALL()
{
make install
prepareInstalledDevelLibs libhistory libreadline
rmdir $binDir
# devel package
packageEntries devel \
$dataDir \
$developDir \
$documentationDir
}