Makefile 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # $OpenBSD: Makefile,v 1.21 2016/04/15 08:53:48 shadchin Exp $
  2. COMMENT = Python library for working with CouchDB
  3. MODPY_EGG_VERSION = 1.0
  4. DISTNAME = CouchDB-${MODPY_EGG_VERSION}
  5. PKGNAME = py-${DISTNAME:L}
  6. REVISION = 1
  7. CATEGORIES = databases devel
  8. HOMEPAGE = https://github.com/djc/couchdb-python
  9. # BSD
  10. PERMIT_PACKAGE_CDROM = Yes
  11. MODPY_PI = Yes
  12. MODULES = lang/python
  13. BUILD_DEPENDS = textproc/py-sphinx
  14. TEST_DEPENDS = databases/apache-couchdb \
  15. ${BASE_PKGPATH}
  16. MODPY_SETUPTOOLS = Yes
  17. # To run the tests, start apache-couchdb using the default configuration.
  18. # Alternatively, the tests will use the COUCHDB_URI environment variable
  19. # to connect to the database.
  20. TEST_IS_INTERACTIVE = Yes
  21. post-build:
  22. ${MODPY_CMD} build_sphinx
  23. post-install:
  24. $(INSTALL_DATA_DIR) ${PREFIX}/share/doc/py-couchdb
  25. cd ${WRKSRC}/doc/build/html && \
  26. pax -rw * ${PREFIX}/share/doc/py-couchdb
  27. rm -rf ${PREFIX}/share/doc/py-couchdb/_sources
  28. $(INSTALL_DATA_DIR) ${PREFIX}/share/examples/py-couchdb
  29. ${SUBST_DATA} ${FILESDIR}/python.ini \
  30. ${PREFIX}/share/examples/py-couchdb/python.ini
  31. do-test:
  32. @cd ${WRKSRC} && \
  33. ${SETENV} ${MAKE_ENV} ${MODPY_BIN} lib/couchdb/tests
  34. .include <bsd.port.mk>