2795ba2341
py-setuptools. Also change the lang/python module to use the new devel/py2-setuptools for python2 ports ok sthen@
47 lines
1.0 KiB
Makefile
47 lines
1.0 KiB
Makefile
# $OpenBSD: Makefile,v 1.21 2021/05/21 19:50:22 kmos Exp $
|
|
|
|
COMMENT= small expressive ORM
|
|
|
|
MODPY_EGG_VERSION= 2.8.3
|
|
DISTNAME= peewee-${MODPY_EGG_VERSION}
|
|
PKGNAME= py-${DISTNAME}
|
|
REVISION= 6
|
|
|
|
GH_ACCOUNT= coleifer
|
|
GH_PROJECT= peewee
|
|
GH_TAGNAME= ${MODPY_EGG_VERSION}
|
|
|
|
CATEGORIES= databases
|
|
|
|
HOMEPAGE= http://docs.peewee-orm.com/
|
|
|
|
# MIT
|
|
PERMIT_PACKAGE= Yes
|
|
|
|
BUILD_DEPENDS= textproc/py-sphinx,python3>=1.5
|
|
|
|
FLAVORS= python3
|
|
FLAVOR?=
|
|
|
|
MODULES= lang/python
|
|
MODPY_SETUPTOOLS= Yes
|
|
|
|
MAKE_ENV += PYTHONPATH=${WRKSRC}
|
|
DOCSRC = ${WRKSRC}/docs
|
|
post-build:
|
|
cd ${DOCSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} html
|
|
|
|
DOCS = ${PREFIX}/share/doc/${MODPY_PY_PREFIX}peewee
|
|
EXAMPLES = ${PREFIX}/share/examples/${MODPY_PY_PREFIX}peewee
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${DOCS}
|
|
cd ${DOCSRC}/_build/html && pax -rw * ${DOCS}
|
|
${INSTALL_DATA_DIR} ${EXAMPLES}
|
|
cd ${WRKSRC}/examples && pax -rw * ${EXAMPLES}
|
|
mv ${PREFIX}/bin/pwiz.py ${PREFIX}/bin/pwiz${MODPY_BIN_SUFFIX}
|
|
|
|
do-test:
|
|
cd ${WRKSRC} && ${MODPY_BIN} tests.py
|
|
|
|
.include <bsd.port.mk>
|