Makefile 929 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # $OpenBSD: Makefile,v 1.28 2016/08/31 16:03:19 edd Exp $
  2. COMMENT = SQLite3 adapter for Python
  3. MODPY_EGG_VERSION = 2.8.3
  4. DISTNAME = pysqlite-${MODPY_EGG_VERSION}
  5. PKGNAME = py-sqlite2-${MODPY_EGG_VERSION}
  6. CATEGORIES = databases devel
  7. MAINTAINER = Eric Faurot <eric@openbsd.org>
  8. HOMEPAGE = https://github.com/ghaering/pysqlite/
  9. MODPY_PI = Yes
  10. # BSD-like
  11. PERMIT_PACKAGE_CDROM = Yes
  12. WANTLIB += ${MODPY_WANTLIB}
  13. WANTLIB += pthread sqlite3>=8.6
  14. BUILD_DEPENDS = textproc/py-sphinx
  15. MODULES = lang/python
  16. post-build:
  17. cd ${WRKSRC} && \
  18. ${LOCALBASE}/bin/sphinx-build -N -b text doc/sphinx \
  19. build/doc
  20. post-install:
  21. ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/py-sqlite2
  22. ${INSTALL_DATA} ${WRKSRC}/build/doc/sqlite3.txt \
  23. ${PREFIX}/share/doc/py-sqlite2/
  24. do-test: fake
  25. @cd ${WRKDIR} && \
  26. ${SETENV} PYTHONPATH=${WRKINST}${MODPY_SITEPKG} \
  27. ${MODPY_BIN} -c 'from pysqlite2 import test; test.test()'
  28. .include <bsd.port.mk>