pkgsrc/devel/py-readline/Makefile
joerg 79e0a0b9a7 Require newer Python base version that has configure output with
readline installed. This fixes segmentation faults when using
command completition support. Bump revision.
2008-07-14 14:43:45 +00:00

39 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.15 2008/07/14 14:43:45 joerg Exp $
#
PKGNAME= ${PYPKGPREFIX}-readline-0
PKGREVISION= 3
CATEGORIES= devel misc python
MAINTAINER= tsarna@NetBSD.org
HOMEPAGE= http://www.python.org/doc/current/tut/node15.html
COMMENT= Line editing support for Python
PKG_DESTDIR_SUPPORT= user-destdir
EXTRACT_ELEMENTS= ${PYSUBDIR}/Modules/readline.c
USE_GNU_READLINE= # defined
PYDISTUTILSPKG= yes
PYBINMODULE= yes
PY_PATCHPLIST= yes
PY_SETUP_SUBST+= RLPREFIX=${BUILDLINK_PREFIX.readline}
PY_SETUP_SUBST+= RLRTPREFIX=${BUILDLINK_PREFIX.readline}
# ignore errors due to missing files (EXTRACT_ELEMENTS!)
do-patch:
(cd ${WRKSRC}; \
for f in ${PATCHDIR}/patch-*;do \
${PATCH} --batch <$$f || true; \
done)
BUILDLINK_API_DEPENDS.python21+= python21>=2.1.3nb16
BUILDLINK_API_DEPENDS.python23+= python23>=2.3.5nb11
BUILDLINK_API_DEPENDS.python24+= python24>=2.4.5nb1
BUILDLINK_API_DEPENDS.python25+= python25>=2.5.2nb2
.include "../../devel/readline/buildlink3.mk"
.include "../../lang/python/extension.mk"
.include "../../lang/python/srcdist.mk"
.include "../../mk/bsd.pkg.mk"