pkgsrc/www/py-flask-admin/Makefile
kleink 7c9fff08a9 Update py-flask-admin to 1.4.0.
1.4.0
-----

* Updated and reworked documentation
* FileAdmin went through minor refactoring and now supports remote
  file systems. Comes with the new, optional, AWS S3 file management
  interface
* Configurable CSV export for model views
* Added overridable URL generation logic. Allows using custom URLs with
  parameters for administrative views
* Added column_display_actions to ModelView control visibility of the
  action column without overriding the template
* Added support for the latest MongoEngine
* New SecureForm base class for easier CSRF validation
* Lots of translation-related fixes and updated translations
* Bug fixes
2016-01-08 17:05:47 +00:00

35 lines
1 KiB
Makefile

# $NetBSD: Makefile,v 1.16 2016/01/08 17:05:47 kleink Exp $
DISTNAME= Flask-Admin-1.4.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:tl}
CATEGORIES= www python
MASTER_SITES= ${MASTER_SITE_PYPI:=F/Flask-Admin/}
MAINTAINER= kleink@NetBSD.org
HOMEPAGE= https://github.com/flask-admin/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"