2009-03-12 04:27:23 +00:00
|
|
|
# Template build file for 'readline'.
|
2008-11-26 14:45:08 +00:00
|
|
|
pkgname=readline
|
2010-01-26 23:22:18 +00:00
|
|
|
_dist_ver=6.1
|
2011-01-19 10:25:07 +00:00
|
|
|
_patch_ver=002
|
2009-10-09 08:17:52 +00:00
|
|
|
version=${_dist_ver}.${_patch_ver}
|
|
|
|
wrksrc=${pkgname}-${_dist_ver}
|
2010-01-26 23:22:18 +00:00
|
|
|
distfiles="http://ftp.gnu.org/gnu/readline/${pkgname}-${_dist_ver}.tar.gz"
|
2008-11-26 14:45:08 +00:00
|
|
|
build_style=gnu_configure
|
2009-10-09 08:17:52 +00:00
|
|
|
configure_args="--with-curses --enable-multibyte"
|
2008-11-26 14:45:08 +00:00
|
|
|
make_build_args="SHLIB_LIBS=-lncurses"
|
|
|
|
short_desc="The GNU Readline Library"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2010-01-26 23:22:18 +00:00
|
|
|
checksum=f0caf608c06ccd6d56b3bee1843458d509c53f9b53dffffe07cc11d8f03fa969
|
2008-11-26 14:45:08 +00: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 07:31:44 +00:00
|
|
|
subpackages="$pkgname-devel"
|
2010-01-26 23:22:18 +00:00
|
|
|
Add_dependency run glibc
|
2009-03-12 04:27:23 +00:00
|
|
|
Add_dependency run ncurses-libs
|
2010-01-26 23:22:18 +00:00
|
|
|
Add_dependency build ncurses-devel
|
2009-10-30 21:14:09 +00:00
|
|
|
Add_dependency build texinfo
|
2009-02-12 23:17:47 +00:00
|
|
|
|
2009-10-09 08:17:52 +00:00
|
|
|
pre_configure()
|
|
|
|
{
|
2010-01-26 23:22:18 +00:00
|
|
|
local url="http://ftp.gnu.org/gnu/$pkgname/$pkgname-6.1-patches"
|
2009-10-17 01:16:09 +00:00
|
|
|
|
2009-10-09 08:17:52 +00:00
|
|
|
if [ "${_patch_ver}" -gt 000 ]; then
|
|
|
|
for p in $(seq -w 001 ${_patch_ver}); do
|
2009-12-19 03:53:07 +00:00
|
|
|
cd ${XBPS_SRCDISTDIR} || return 1
|
2010-01-26 23:22:18 +00:00
|
|
|
[ -f ${XBPS_SRCDISTDIR}/readline61-${p} ] && continue
|
2010-12-19 23:22:12 +00:00
|
|
|
msg_normal " Fetching $url/readline61-$p ...\n"
|
2010-01-26 23:22:18 +00:00
|
|
|
$XBPS_FETCH_CMD ${url}/readline61-$p
|
2009-10-09 08:17:52 +00:00
|
|
|
done
|
|
|
|
fi
|
|
|
|
cd ${wrksrc}
|
|
|
|
for p in $(seq -w 001 ${_patch_ver}); do
|
2010-01-26 23:22:18 +00:00
|
|
|
patch -s -Np0 -i ${XBPS_SRCDISTDIR}/readline61-${p} && \
|
2010-12-19 23:22:12 +00:00
|
|
|
msg_normal " Applying patch readline61-$p.\n"
|
2009-10-09 08:17:52 +00:00
|
|
|
done
|
|
|
|
sed -i 's|-Wl,-rpath,$(libdir) ||g' support/shobj-conf
|
|
|
|
}
|
|
|
|
|
2008-11-26 14:45:08 +00:00
|
|
|
post_install()
|
|
|
|
{
|
2009-10-09 08:17:52 +00:00
|
|
|
# Move shared libs to /.
|
2010-04-22 06:10:28 +00:00
|
|
|
mkdir -p ${DESTDIR}/lib
|
|
|
|
mv ${DESTDIR}/usr/lib/lib*.so.* ${DESTDIR}/lib
|
|
|
|
chmod 755 ${DESTDIR}/lib/*.so*
|
2010-04-22 10:04:42 +00:00
|
|
|
rm -f ${DESTDIR}/usr/lib/*.so
|
|
|
|
for f in history readline; do
|
|
|
|
cd ${DESTDIR}/usr/lib && \
|
|
|
|
ln -s ../../lib/lib${f}.so.6 lib${f}.so
|
|
|
|
done
|
2008-11-26 14:45:08 +00:00
|
|
|
}
|