blob: f3c75a483437c55f7050eeac483052ddf9ed476e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# $NetBSD: Makefile,v 1.32 2018/04/14 07:34:14 adam Exp $
DISTNAME= peewee-3.2.2
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
PKGREVISION= 2
CATEGORIES= databases
MASTER_SITES= ${MASTER_SITE_GITHUB:=coleifer/}
MAINTAINER= filip@joyent.com
HOMEPAGE= http://www.peewee-orm.com/
COMMENT= Small, expressive ORM for PostgreSQL, MySQL and SQLite
LICENSE= mit
GITHUB_PROJECT= peewee
USE_LANGUAGES= c
USE_TOOLS+= bash
BUILD_DEPENDS+= ${PYPKGPREFIX}-sphinx-[0-9]*:../../textproc/py-sphinx
TEST_DEPENDS+= ${PYPKGPREFIX}-sqlite3-[0-9]*:../../databases/py-sqlite3
MAKE_FLAGS+= SPHINXBUILD=sphinx-build${PYVERSSUFFIX}
FILES_SUBST+= PKGMANDIR=${PKGMANDIR}
MESSAGE_SUBST+= PYPKGPREFIX=${PYPKGPREFIX}
REPLACE_PYTHON+= pwiz.py
PYDISTUTILSPKG= yes
INSTALLATION_DIRS+= ${PKGMANDIR}/man1
post-build:
cd ${WRKSRC}/docs && ${BUILD_MAKE_CMD} man
post-install:
${MV} ${DESTDIR}${PREFIX}/bin/pwiz.py \
${DESTDIR}${PREFIX}/bin/pwiz${PYVERSSUFFIX}
${INSTALL_MAN} ${WRKSRC}/docs/_build/man/peewee.1 \
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/peewee${PYVERSSUFFIX}.1
do-test:
cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHONBIN} runtests.py
.include "../../databases/sqlite3/buildlink3.mk"
.include "../../devel/py-cython/buildlink3.mk"
.include "../../lang/python/application.mk"
.include "../../lang/python/extension.mk"
.include "../../mk/bsd.pkg.mk"
|