readline: update to 6.0.004.

--HG--
extra : convert_revision : f3d4e34f3fce73e61a4febba06485496c8df133f
This commit is contained in:
Juan RP 2009-10-09 10:17:52 +02:00
parent 2b3a51362c
commit 951ec736a5
2 changed files with 28 additions and 4 deletions

View File

@ -16,8 +16,11 @@ do_install()
mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr
mv ${SRCPKGDESTDIR}/usr/lib/*.*a ${DESTDIR}/usr/lib
cd ${DESTDIR}/usr/lib && \
ln -s ../../lib/libreadline.so.6 libreadline.so
mv ${SRCPKGDESTDIR}/usr/share/readline ${DESTDIR}/usr/share
mv ${SRCPKGDESTDIR}/usr/share/man/man3 ${DESTDIR}/usr/share/man
touch -f ${DESTDIR}/usr/share/info/dir
for f in history rluserman; do
mv ${SRCPKGDESTDIR}/usr/share/info/${f}.info \
${DESTDIR}/usr/share/info

View File

@ -1,8 +1,12 @@
# Template build file for 'readline'.
pkgname=readline
version=6.0
distfiles="http://savory.googlecode.com/files/${pkgname}-${version}.tar.gz"
_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"
build_style=gnu_configure
configure_args="--with-curses --enable-multibyte"
make_build_args="SHLIB_LIBS=-lncurses"
short_desc="The GNU Readline Library"
maintainer="Juan RP <xtraeme@gmail.com>"
@ -21,9 +25,26 @@ Add_dependency full glibc
Add_dependency build ncurses
Add_dependency run ncurses-libs
pre_configure()
{
if [ "${_patch_ver}" -gt 000 ]; then
for p in $(seq -w 001 ${_patch_ver}); do
[ -f ${XBPS_SRCDISTDIR}/readline60-${p} ] && continue
wget http://ftp.gnu.org/gnu/$pkgname/$pkgname-6.0-patches/readline60-$p
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
}
post_install()
{
# Move shared libs into /lib.
# Move shared libs to /.
mkdir -p $DESTDIR/lib
mv $DESTDIR/usr/lib/lib*.so* $DESTDIR/lib
mv $DESTDIR/usr/lib/lib*.so.* $DESTDIR/lib
rm -f ${DESTDIR}/usr/lib/lib*.so
}