readline: update to 6.0.

--HG--
extra : convert_revision : 526bc47b36389f92185fe63d6fab910843354d51
This commit is contained in:
Juan RP 2009-03-12 05:27:23 +01:00
parent 4c963b2828
commit 3e7068b45d

View file

@ -1,13 +1,12 @@
# Template build file for 'readline'.
pkgname=readline
readline_distver=5.2
readline_patchver=013
version=${readline_distver}.${readline_patchver}
distfiles=ftp://ftp.cwru.edu/pub/bash/$pkgname-$readline_distver.tar.gz
version=6.0
distfiles="ftp://ftp.cwru.edu/pub/bash/${pkgname}-${version}.tar.gz"
build_style=gnu_configure
make_build_args="SHLIB_LIBS=-lncurses"
short_desc="The GNU Readline Library"
maintainer="Juan RP <xtraeme@gmail.com>"
checksum=12e88d96aee2cd1192500356f0535540db499282ca7f76339fb4228c31249f45
checksum=1199d905c025735b34cf67d03078585e18f84707052413279fe68ce48c1cc1de
long_desc="
The GNU Readline library provides a set of functions for use by
applications that allow users to edit command lines as they are
@ -17,24 +16,11 @@ long_desc="
those lines, and perform csh-like history expansion on previous
commands."
build_depends="ncurses-5.6"
run_depends="glibc-2.8 $build_depends"
base_chroot=yes
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
}
Add_dependency full glibc
Add_dependency build ncurses
Add_dependency run ncurses-libs
post_install()
{