pkgsrc/devel/py-curses/Makefile
leot 73fe1afb09 python27: Remove patches/patch-ah (no longer needed)
Since Python 2.7.15 patches/patch-ah is no longer needed and badly interfere
(e.g. with it `curses.KEY_*' are no longer exposed):

 - Prototypes of NetBSD curses(3) are as described, no need to patch them
 - Avoid {lines,columns} -> {nlines,columns} rename, they are properly
   undef-ed due HAVE_TERM_H.
 - Use keyname() (it should be present since NetBSD 2.0)

Bump PKGREVISION for devel/py-curses so it will be properly rebuild.

Fixes PR pkg/53330 reported by <oster>.
2018-06-03 07:49:27 +00:00

34 lines
1,015 B
Makefile

# $NetBSD: Makefile,v 1.47 2018/06/03 07:49:27 leot Exp $
PKGNAME= ${PYPKGPREFIX}-curses-${PY_DISTVERSION}
PKGREVISION= 5
CATEGORIES= devel python
MAINTAINER= pkgsrc-users@NetBSD.org
#HOMEPAGE= https://www.python.org/doc/current/lib/module-curses.html
COMMENT= Curses module for Python
EXTRACT_ELEMENTS= ${PYSUBDIR}/Modules/_cursesmodule.c
PYDISTUTILSPKG= yes
PY_PATCHPLIST= yes
# NetBSD-8 curses has enough support for py-curses
USE_CURSES= getsyx
# But we build as ncurses still to get the full feature set easily
FAKE_NCURSES= yes
PY_SETUP_SUBST= NCURSESPREFIX=${BUILDLINK_PREFIX.ncurses}
PYSETUPINSTALLARGS+= --install-lib ${PREFIX}/${PYLIB}/lib-dynload
# ignore errors due to missing files (EXTRACT_ELEMENTS!)
do-patch:
set -e; \
cd ${WRKSRC}; \
for f in ${PATCHDIR}/patch-*; do \
${PATCH} --batch < "$$f" || ${TRUE}; \
done
.include "../../lang/python/extension.mk"
.include "../../lang/python/srcdist.mk"
.include "../../mk/curses.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"