readline: add official patches for 5.2.
--HG-- extra : convert_revision : e346d1b9d83bce77e97101dba76479e655ef80dc
This commit is contained in:
parent
756c0a77d8
commit
5b841b8a7d
@ -1,7 +1,8 @@
|
|||||||
# Template file for 'readline'
|
|
||||||
pkgname=readline
|
pkgname=readline
|
||||||
version=5.2
|
readline_distver=5.2
|
||||||
distfiles=ftp://ftp.cwru.edu/pub/bash/$pkgname-$version.tar.gz
|
readline_patchver=013
|
||||||
|
version=${readline_distver}.${readline_patchver}
|
||||||
|
distfiles=ftp://ftp.cwru.edu/pub/bash/$pkgname-$readline_distver.tar.gz
|
||||||
build_style=gnu_configure
|
build_style=gnu_configure
|
||||||
make_build_args="SHLIB_LIBS=-lncurses"
|
make_build_args="SHLIB_LIBS=-lncurses"
|
||||||
short_desc="The GNU Readline Library"
|
short_desc="The GNU Readline Library"
|
||||||
@ -16,10 +17,25 @@ long_desc="
|
|||||||
those lines, and perform csh-like history expansion on previous
|
those lines, and perform csh-like history expansion on previous
|
||||||
commands."
|
commands."
|
||||||
|
|
||||||
base_chroot=yes
|
|
||||||
build_depends="ncurses-5.6"
|
build_depends="ncurses-5.6"
|
||||||
run_depends="glibc-2.8 $build_depends"
|
run_depends="glibc-2.8 $build_depends"
|
||||||
|
|
||||||
|
pre_configure()
|
||||||
|
{
|
||||||
|
# Apply all patches for current version.
|
||||||
|
local URL="ftp://ftp.cwru.edu/pub/bash/$pkgname-$readline_distver-patches/"
|
||||||
|
local lver="readline52"
|
||||||
|
|
||||||
|
for p in $(seq -w 001 $readline_patchver); do
|
||||||
|
if [ ! -f "$XBPS_SRCDISTDIR/$lver-$p" ]; then
|
||||||
|
msg_normal "Fetching $pkgname-$version patch: $lver-$p."
|
||||||
|
cd $XBPS_SRCDISTDIR && $fetch_cmd $URL/$lver-$p || bye 1
|
||||||
|
fi
|
||||||
|
msg_normal "Applying patch: $lver-$p."
|
||||||
|
cd $wrksrc && patch -s -p0 < $XBPS_SRCDISTDIR/$lver-$p || bye 1
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
post_install()
|
post_install()
|
||||||
{
|
{
|
||||||
local destdir=$XBPS_DESTDIR/$pkgname-$version
|
local destdir=$XBPS_DESTDIR/$pkgname-$version
|
||||||
|
Loading…
x
Reference in New Issue
Block a user