2009-03-12 05:27:23 +01:00
|
|
|
# Template build file for 'readline'.
|
2008-11-26 15:45:08 +01:00
|
|
|
pkgname=readline
|
2011-02-14 16:11:13 +01:00
|
|
|
_dist_ver=6.2
|
2011-11-24 07:57:26 +01:00
|
|
|
_patch_ver=002
|
|
|
|
version=${_dist_ver}.${_patch_ver}
|
2012-01-30 17:04:41 +01:00
|
|
|
revision=1
|
2011-11-24 07:57:26 +01:00
|
|
|
#version=${_dist_ver}
|
2009-10-09 10:17:52 +02:00
|
|
|
wrksrc=${pkgname}-${_dist_ver}
|
2010-01-27 00:22:18 +01:00
|
|
|
distfiles="http://ftp.gnu.org/gnu/readline/${pkgname}-${_dist_ver}.tar.gz"
|
2011-10-24 14:14:47 +02:00
|
|
|
build_style=gnu-configure
|
2009-10-09 10:17:52 +02:00
|
|
|
configure_args="--with-curses --enable-multibyte"
|
2008-11-26 15:45:08 +01:00
|
|
|
make_build_args="SHLIB_LIBS=-lncurses"
|
|
|
|
short_desc="The GNU Readline Library"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-02-14 16:11:13 +01:00
|
|
|
checksum=79a696070a058c233c72dd6ac697021cc64abd5ed51e59db867d66d196a89381
|
2008-11-26 15:45:08 +01:00
|
|
|
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
|
|
|
|
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."
|
|
|
|
|
2009-11-22 08:31:44 +01:00
|
|
|
subpackages="$pkgname-devel"
|
2011-02-14 16:11:13 +01:00
|
|
|
Add_dependency build ncurses-devel
|
2009-02-13 00:17:47 +01:00
|
|
|
|
2012-01-30 17:04:41 +01:00
|
|
|
pre_configure() {
|
|
|
|
local url="http://ftp.gnu.org/gnu/$pkgname/$pkgname-${_dist_ver}-patches"
|
2009-10-17 03:16:09 +02:00
|
|
|
|
2009-10-09 10:17:52 +02:00
|
|
|
if [ "${_patch_ver}" -gt 000 ]; then
|
|
|
|
for p in $(seq -w 001 ${_patch_ver}); do
|
2009-12-19 04:53:07 +01:00
|
|
|
cd ${XBPS_SRCDISTDIR} || return 1
|
2012-01-30 17:04:41 +01:00
|
|
|
[ -f ${XBPS_SRCDISTDIR}/readline62-${p} ] && continue
|
|
|
|
msg_normal " Fetching $url/readline62-$p ...\n"
|
|
|
|
$XBPS_FETCH_CMD ${url}/readline62-$p
|
2009-10-09 10:17:52 +02:00
|
|
|
done
|
|
|
|
fi
|
|
|
|
cd ${wrksrc}
|
|
|
|
for p in $(seq -w 001 ${_patch_ver}); do
|
2012-01-30 17:04:41 +01:00
|
|
|
patch -s -Np0 -i ${XBPS_SRCDISTDIR}/readline62-${p} && \
|
|
|
|
msg_normal " Applying patch readline62-$p.\n"
|
2009-10-09 10:17:52 +02:00
|
|
|
done
|
|
|
|
sed -i 's|-Wl,-rpath,$(libdir) ||g' support/shobj-conf
|
|
|
|
}
|