blob: 67355ef1f3c1a8dc2f0795c6f767516a12a7ca2f (
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
|
# $NetBSD: Makefile,v 1.11 2015/01/07 14:55:21 kleink Exp $
DISTNAME= Flask-Admin-1.0.9
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:tl}
CATEGORIES= www python
MASTER_SITES= http://pypi.python.org/packages/source/F/Flask-Admin/
MAINTAINER= kleink@NetBSD.org
HOMEPAGE= https://github.com/mrjoes/flask-admin/
COMMENT= Simple and extensible administrative interface framework for Flask
LICENSE= modified-bsd
USE_LANGUAGES= # empty
USE_TOOLS+= pax
DEPENDS+= ${PYPKGPREFIX}-flask>=0.7:../../www/py-flask
DEPENDS+= ${PYPKGPREFIX}-wtforms-[0-9]*:../../www/py-wtforms
EGDIR= share/examples/${PKGBASE}
PLIST_SUBST+= EGDIR=${EGDIR}
INSTALLATION_DIRS+= ${EGDIR}
post-extract:
rm -f ${WRKSRC}/examples/__init__.py
post-install:
.for i in LICENSE select2.css select2.min.js
${CHMOD} -x \
${DESTDIR}${PREFIX}/${PYSITELIB}/flask_admin/static/vendor/select2/${i}
.endfor
${TOUCH} ${DESTDIR}${PREFIX}/${EGDIR}/__init__.py
cd ${WRKSRC}/examples && pax -rwppm . ${DESTDIR}${PREFIX}/${EGDIR}
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"
|