Makefile 907 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # $OpenBSD: Makefile,v 1.5 2016/04/15 08:53:49 shadchin Exp $
  2. REVISION=2
  3. COMMENT = sqlalchemy support for flask
  4. MODPY_EGG_VERSION = 1.0
  5. DISTNAME = Flask-SQLAlchemy-${MODPY_EGG_VERSION}
  6. PKGNAME = py-${DISTNAME:L}
  7. CATEGORIES = databases www
  8. HOMEPAGE = https://github.com/mitsuhiko/flask-sqlalchemy/
  9. # BSD
  10. PERMIT_PACKAGE_CDROM = Yes
  11. MODPY_PI = Yes
  12. MODULES = lang/python
  13. MODPY_SETUPTOOLS = Yes
  14. BUILD_DEPENDS = databases/py-sqlalchemy \
  15. textproc/py-sphinx \
  16. www/py-flask
  17. RUN_DEPENDS = databases/py-sqlalchemy \
  18. www/py-flask
  19. TEST_DEPENDS = ${RUN_DEPENDS}
  20. MAKE_ENV = PYTHONPATH="${WRKSRC}"
  21. post-build:
  22. @cd ${WRKSRC}/docs && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} html
  23. post-install:
  24. ${INSTALL_DATA_DIR} \
  25. ${PREFIX}/share/doc/${MODPY_PY_PREFIX}flask-sqlalchemy
  26. cd ${WRKSRC}/docs/_build/html && \
  27. pax -rw * ${PREFIX}/share/doc/${MODPY_PY_PREFIX}flask-sqlalchemy
  28. .include <bsd.port.mk>