2009-03-12 05:27:23 +01:00
|
|
|
# Template build file for 'readline'.
|
2008-11-26 15:45:08 +01:00
|
|
|
pkgname=readline
|
2009-10-09 10:17:52 +02:00
|
|
|
_dist_ver=6.0
|
|
|
|
_patch_ver=004
|
|
|
|
version=${_dist_ver}.${_patch_ver}
|
|
|
|
wrksrc=${pkgname}-${_dist_ver}
|
|
|
|
distfiles="http://savory.googlecode.com/files/${pkgname}-${_dist_ver}.tar.gz"
|
2008-11-26 15:45:08 +01: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>"
|
2009-03-12 05:27:23 +01:00
|
|
|
checksum=1199d905c025735b34cf67d03078585e18f84707052413279fe68ce48c1cc1de
|
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-03-12 15:54:53 +01:00
|
|
|
subpackages="devel"
|
2009-03-12 05:27:23 +01:00
|
|
|
Add_dependency full glibc
|
|
|
|
Add_dependency build ncurses
|
|
|
|
Add_dependency run ncurses-libs
|
2009-02-13 00:17:47 +01:00
|
|
|
|
2009-10-09 10:17:52 +02:00
|
|
|
pre_configure()
|
|
|
|
{
|
2009-10-17 03:16:09 +02:00
|
|
|
local url="http://ftp.gnu.org/gnu/$pkgname/$pkgname-6.0-patches"
|
|
|
|
|
2009-10-09 10:17:52 +02:00
|
|
|
if [ "${_patch_ver}" -gt 000 ]; then
|
|
|
|
for p in $(seq -w 001 ${_patch_ver}); do
|
|
|
|
[ -f ${XBPS_SRCDISTDIR}/readline60-${p} ] && continue
|
2009-10-17 03:16:09 +02:00
|
|
|
$XBPS_FETCH_CMD ${url}/readline60-$p
|
2009-10-09 10:17:52 +02:00
|
|
|
done
|
|
|
|
fi
|
|
|
|
cd ${wrksrc}
|
|
|
|
for p in $(seq -w 001 ${_patch_ver}); do
|
|
|
|
patch -s -Np0 -i ${XBPS_SRCDISTDIR}/readline60-${p} && \
|
|
|
|
msg_normal "Applying patch readline60-$p."
|
|
|
|
done
|
|
|
|
sed -i 's|-Wl,-rpath,$(libdir) ||g' support/shobj-conf
|
|
|
|
}
|
|
|
|
|
2008-11-26 15:45:08 +01:00
|
|
|
post_install()
|
|
|
|
{
|
2009-10-09 10:17:52 +02:00
|
|
|
# Move shared libs to /.
|
2009-03-11 06:31:56 +01:00
|
|
|
mkdir -p $DESTDIR/lib
|
2009-10-09 10:17:52 +02:00
|
|
|
mv $DESTDIR/usr/lib/lib*.so.* $DESTDIR/lib
|
|
|
|
rm -f ${DESTDIR}/usr/lib/lib*.so
|
2008-11-26 15:45:08 +01:00
|
|
|
}
|