Files
haikuports/sys-libs/readline/readline-8.2.013.recipe
Adrien Destugues a3ab25e9b5 Switch some recipes from ftp to http
My employer blocks ftp on the company network, so I could not download
these.
2025-04-09 14:24:44 +02:00

115 lines
3.8 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-2024 Free Software Foundation, Inc."
LICENSE="GNU GPL v3"
REVISION="1"
SOURCE_URI="http://ftp.gnu.org/gnu/readline/readline-8.2.tar.gz"
SOURCE_DIR="readline-8.2"
for i in {001..013}; do
eval "SOURCE_URI_$i=\"https://ftp.gnu.org/gnu/readline/readline-8.2-patches/readline82-$i#noarchive\""
done
CHECKSUM_SHA256="3feb7171f16a84ee82ca18a36d7b9be109a52c04f492a053331d7d1095007c35"
CHECKSUM_SHA256_001="bbf97f1ec40a929edab5aa81998c1e2ef435436c597754916e6a5868f273aff7"
CHECKSUM_SHA256_002="e06503822c62f7bc0d9f387d4c78c09e0ce56e53872011363c74786c7cd4c053"
CHECKSUM_SHA256_003="24f587ba46b46ed2b1868ccaf9947504feba154bb8faabd4adaea63ef7e6acb0"
CHECKSUM_SHA256_004="79572eeaeb82afdc6869d7ad4cba9d4f519b1218070e17fa90bbecd49bd525ac"
CHECKSUM_SHA256_005="622ba387dae5c185afb4b9b20634804e5f6c1c6e5e87ebee7c35a8f065114c99"
CHECKSUM_SHA256_006="c7b45ff8c0d24d81482e6e0677e81563d13c74241f7b86c4de00d239bc81f5a1"
CHECKSUM_SHA256_007="5911a5b980d7900aabdbee483f86dab7056851e6400efb002776a0a4a1bab6f6"
CHECKSUM_SHA256_008="a177edc9d8c9f82e8c19d0630ab351f3fd1b201d655a1ddb5d51c4cee197b26a"
CHECKSUM_SHA256_009="3d9885e692e1998523fd5c61f558cecd2aafd67a07bd3bfe1d7ad5a31777a116"
CHECKSUM_SHA256_010="758e2ec65a0c214cfe6161f5cde3c5af4377c67d820ea01d13de3ca165f67b4c"
CHECKSUM_SHA256_011="e0013d907f3a9e6482cc0934de1bd82ee3c3c4fd07a9646aa9899af237544dd7"
CHECKSUM_SHA256_012="6c8adf8ed4a2ca629f7fd11301ed6293a6248c9da0c674f86217df715efccbd3"
CHECKSUM_SHA256_013="1ea434957d6ec3a7b61763f1f3552dad0ebdd6754d65888b5cd6d80db3a788a8"
PATCHES="readline-8.2.patchset"
ARCHITECTURES="all"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
readline$secondaryArchSuffix = $portVersion
lib:libhistory$secondaryArchSuffix = 8.2 compat >= 8
lib:libreadline$secondaryArchSuffix = 8.2 compat >= 8
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libncurses$secondaryArchSuffix
"
PROVIDES_devel="
readline${secondaryArchSuffix}_devel = $portVersion
devel:libhistory$secondaryArchSuffix = 8.1 compat >= 8
devel:libreadline$secondaryArchSuffix = 8.1 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.2 \
$libDir/libreadline.so.8.2
PATCH()
{
for i in {001..013}; do
echo "Applying patch $i..."
sed -e "s/\.\.\/readline-8.2\///" ../../sources-$i/readline82-$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
}