pkgsrc/databases/py-sqlite3/Makefile
obache 68c5a2a000 Change version number of python buitin module packages
form fixed `0' to main Python distribution version (PY_DISTVERSION)
so that packages will be updated with main Python distribution update.

no objection in tech-pkg@ for a week.
2013-04-20 09:38:04 +00:00

30 lines
872 B
Makefile

# $NetBSD: Makefile,v 1.16 2013/04/20 09:38:04 obache Exp $
PKGNAME= ${PYPKGPREFIX}-sqlite3-${PY_DISTVERSION}
CATEGORIES= databases python
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.python.org/
COMMENT= Built-in sqlite support for Python 2.5 and up
USE_TOOLS+= patch
EXTRACT_ELEMENTS= ${PYSUBDIR}/Modules/_sqlite
PYDISTUTILSPKG= yes
PYTHON_VERSIONS_INCLUDE_3X= yes
PY_SETUP_SUBST+= SQLITE_PREFIX=${BUILDLINK_PREFIX.sqlite3}
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 "../../databases/sqlite3/buildlink3.mk"
.include "../../lang/python/extension.mk"
.include "../../lang/python/srcdist.mk"
.include "../../mk/bsd.pkg.mk"