2009-03-12 04:27:23 +00:00
|
|
|
# Template build file for 'readline'.
|
2008-11-26 14:45:08 +00:00
|
|
|
pkgname=readline
|
2011-02-14 15:11:13 +00:00
|
|
|
_dist_ver=6.2
|
2012-07-20 05:48:21 +00:00
|
|
|
_patch_ver=004
|
2011-11-24 06:57:26 +00:00
|
|
|
version=${_dist_ver}.${_patch_ver}
|
2013-03-25 19:06:55 +00:00
|
|
|
revision=3
|
2011-11-24 06:57:26 +00:00
|
|
|
#version=${_dist_ver}
|
2009-10-09 08:17:52 +00:00
|
|
|
wrksrc=${pkgname}-${_dist_ver}
|
2011-10-24 12:14:47 +00:00
|
|
|
build_style=gnu-configure
|
2013-03-25 19:06:55 +00:00
|
|
|
configure_args="--enable-static --with-curses --enable-multibyte"
|
2008-11-26 14:45:08 +00:00
|
|
|
make_build_args="SHLIB_LIBS=-lncurses"
|
2012-05-23 16:26:56 +00:00
|
|
|
makedepends="ncurses-devel"
|
2008-11-26 14:45:08 +00:00
|
|
|
short_desc="The GNU Readline Library"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2013-01-31 11:39:48 +00:00
|
|
|
homepage="http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html"
|
|
|
|
license="GPL-3"
|
2013-02-06 20:00:02 +00:00
|
|
|
distfiles="http://ftp.gnu.org/gnu/readline/${pkgname}-${_dist_ver}.tar.gz"
|
|
|
|
checksum=79a696070a058c233c72dd6ac697021cc64abd5ed51e59db867d66d196a89381
|
2008-11-26 14:45:08 +00:00
|
|
|
|
2012-01-30 16:04:41 +00:00
|
|
|
pre_configure() {
|
|
|
|
local url="http://ftp.gnu.org/gnu/$pkgname/$pkgname-${_dist_ver}-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
|
2013-03-25 20:25:47 +00:00
|
|
|
cd ${XBPS_SRCDISTDIR}
|
|
|
|
if [ -f ${XBPS_SRCDISTDIR}/readline62-${p} ]; then
|
|
|
|
continue
|
|
|
|
fi
|
2012-01-30 16:04:41 +00:00
|
|
|
msg_normal " Fetching $url/readline62-$p ...\n"
|
|
|
|
$XBPS_FETCH_CMD ${url}/readline62-$p
|
2009-10-09 08:17:52 +00:00
|
|
|
done
|
|
|
|
fi
|
|
|
|
cd ${wrksrc}
|
|
|
|
for p in $(seq -w 001 ${_patch_ver}); do
|
2013-03-25 20:25:47 +00:00
|
|
|
patch -s -Np0 -i ${XBPS_SRCDISTDIR}/readline62-${p}
|
|
|
|
msg_normal " Applying patch readline62-$p.\n"
|
2009-10-09 08:17:52 +00:00
|
|
|
done
|
|
|
|
sed -i 's|-Wl,-rpath,$(libdir) ||g' support/shobj-conf
|
|
|
|
}
|
2013-04-10 13:04:53 +00:00
|
|
|
|
|
|
|
readline-devel_package() {
|
|
|
|
depends="ncurses-devel readline>=${version}"
|
|
|
|
short_desc+=" - development files"
|
|
|
|
|
|
|
|
pkg_install() {
|
2013-04-10 14:50:24 +00:00
|
|
|
vmove usr/include
|
|
|
|
vmove usr/share
|
|
|
|
vmove "usr/lib/*.a"
|
2013-04-10 13:04:53 +00:00
|
|
|
}
|
|
|
|
}
|