mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-06 15:08:57 +02:00
105 lines
3.0 KiB
Bash
105 lines
3.0 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://tiswww.case.edu/php/chet/readline/rltop.html"
|
|
COPYRIGHT="1989-2019 Free Software Foundation, Inc."
|
|
LICENSE="GNU GPL v3"
|
|
REVISION="1"
|
|
SOURCE_URI="ftp://ftp.gnu.org/gnu/readline/readline-8.0.tar.gz"
|
|
CHECKSUM_SHA256="e339f51971478d369f8a053a330a190781acb9864cf4c541060f12078948e461"
|
|
SOURCE_DIR="readline-8.0"
|
|
for i in {001..004}; do
|
|
eval "SOURCE_URI_$i=\"https://ftp.gnu.org/gnu/readline/readline-8.0-patches/readline80-$i#noarchive\""
|
|
done
|
|
CHECKSUM_SHA256_001="d8e5e98933cf5756f862243c0601cb69d3667bb33f2c7b751fe4e40b2c3fd069"
|
|
CHECKSUM_SHA256_002="36b0febff1e560091ae7476026921f31b6d1dd4c918dcb7b741aa2dad1aec8f7"
|
|
CHECKSUM_SHA256_003="94ddb2210b71eb5389c7756865d60e343666dfb722c85892f8226b26bb3eeaef"
|
|
CHECKSUM_SHA256_004="b1aa3d2a40eee2dea9708229740742e649c32bb8db13535ea78f8ac15377394c"
|
|
PATCHES="readline-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="x86_gcc2 x86 x86_64 sparc m68k"
|
|
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
|
|
|
PROVIDES="
|
|
readline$secondaryArchSuffix = $portVersion
|
|
lib:libhistory$secondaryArchSuffix = 8.0 compat >= 8
|
|
lib:libreadline$secondaryArchSuffix = 8.0 compat >= 8
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libncurses$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
readline${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libhistory$secondaryArchSuffix = 8.0 compat >= 8
|
|
devel:libreadline$secondaryArchSuffix = 8.0 compat >= 8
|
|
"
|
|
REQUIRES_devel="
|
|
readline$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libncurses$secondaryArchSuffix >= 6
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:aclocal
|
|
cmd:autoconf
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
defineDebugInfoPackage readline$secondaryArchSuffix \
|
|
$libDir/libhistory.so.8.0 \
|
|
$libDir/libreadline.so.8.0
|
|
|
|
PATCH()
|
|
{
|
|
for i in {001..004}; do
|
|
echo "Applying patch $i..."
|
|
cat ../../sources-$i/readline80-$i | patch -p0
|
|
done
|
|
}
|
|
|
|
BUILD()
|
|
{
|
|
libtoolize --force --copy --install
|
|
aclocal
|
|
autoconf
|
|
runConfigure ./configure \
|
|
--with-curses
|
|
make $jobArgs SHLIB_LIBS=-lncurses
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
rm $libDir/lib*.a
|
|
|
|
mkdir -p $libDir/pkgconfig
|
|
cp $sourceDir/readline.pc $libDir/pkgconfig/
|
|
|
|
prepareInstalledDevelLibs libhistory libreadline
|
|
rmdir $binDir
|
|
fixPkgconfig
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
$dataDir \
|
|
$developDir \
|
|
$documentationDir
|
|
}
|