pkgsrc/devel/py-readline/Makefile

34 lines
930 B
Makefile

# $NetBSD: Makefile,v 1.25 2013/01/21 11:49:18 wiz Exp $
#
PKGNAME= ${PYPKGPREFIX}-readline-0
PKGREVISION= 5
CATEGORIES= devel misc python
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.python.org/doc/current/tut/node15.html
COMMENT= Line editing support for Python
PYTHON_VERSIONS_INCLUDE_3X= yes
EXTRACT_ELEMENTS= ${PYSUBDIR}/Modules/readline.c
USE_GNU_READLINE= # defined
PYDISTUTILSPKG= yes
PY_PATCHPLIST= yes
PY_SETUP_SUBST+= RLPREFIX=${BUILDLINK_PREFIX.readline}
PY_SETUP_SUBST+= RLRTPREFIX=${BUILDLINK_PREFIX.readline}
PYSETUPINSTALLARGS+= --install-lib ${PREFIX}/${PYLIB}/lib-dynload
# ignore errors due to missing files (EXTRACT_ELEMENTS!)
do-patch:
(cd ${WRKSRC}; \
for f in ${PATCHDIR}/patch-*;do \
${PATCH} --batch <$$f || true; \
done)
.include "../../devel/readline/buildlink3.mk"
.include "../../lang/python/extension.mk"
.include "../../lang/python/srcdist.mk"
.include "../../mk/bsd.pkg.mk"