2013-09-20 20:35:44 +02:00
|
|
|
# Created by: Matthew X. Economou <xenophon+fbsdports@irtnog.org>
|
2012-06-24 17:19:38 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= easy-thumbnails
|
2018-05-11 18:54:28 +02:00
|
|
|
PORTVERSION= 2.5
|
2020-02-24 12:36:15 +01:00
|
|
|
PORTREVISION= 1
|
2012-06-24 17:19:38 +02:00
|
|
|
CATEGORIES= graphics python
|
|
|
|
MASTER_SITES= CHEESESHOP
|
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}django-
|
|
|
|
|
|
|
|
MAINTAINER= xenophon+fbsdports@irtnog.org
|
|
|
|
COMMENT= Easy thumbnails for Django
|
|
|
|
|
2014-12-06 23:13:42 +01:00
|
|
|
LICENSE= BSD3CLAUSE
|
2018-05-11 18:54:28 +02:00
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
2012-06-24 17:19:38 +02:00
|
|
|
|
2020-02-24 12:36:15 +01:00
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django111>=1.8:www/py-django111@${PY_FLAVOR}
|
2012-06-24 17:19:38 +02:00
|
|
|
|
2014-10-21 18:36:12 +02:00
|
|
|
USES= python
|
2018-05-11 18:54:28 +02:00
|
|
|
USE_PYTHON= autoplist concurrent distutils
|
|
|
|
NO_ARCH= yes
|
|
|
|
|
|
|
|
PORTDOCS= *
|
|
|
|
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
DOCS_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django111>=1.8:www/py-django111@${PY_FLAVOR} \
|
2020-02-24 12:36:15 +01:00
|
|
|
${PYTHON_PKGNAMEPREFIX}sphinx>0:textproc/py-sphinx@${PY_FLAVOR}
|
2018-05-11 18:54:28 +02:00
|
|
|
DOCS_VARS= PYDISTUTILS_BUILD_TARGET+="build_sphinx -a -E"
|
|
|
|
|
2020-02-24 12:36:15 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${PYTHON_REL} < 3500
|
|
|
|
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}pillow6>=0:graphics/py-pillow6@${PY_FLAVOR}
|
|
|
|
DOCS_BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}pillow6>0:graphics/py-pillow6@${PY_FLAVOR}
|
|
|
|
.else
|
|
|
|
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}pillow>=0:graphics/py-pillow@${PY_FLAVOR}
|
|
|
|
DOCS_BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}pillow>0:graphics/py-pillow@${PY_FLAVOR}
|
|
|
|
.endif
|
|
|
|
|
2018-05-11 18:54:28 +02:00
|
|
|
post-patch-DOCS-on:
|
|
|
|
@${REINPLACE_CMD} -e 's|^\(release = \)\(easy_thumbnails.get_version()\)|\1version|' ${WRKSRC}/docs/conf.py
|
|
|
|
|
|
|
|
post-install-DOCS-on:
|
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
(cd ${WRKSRC}/build/sphinx/html && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} "! -name .buildinfo -and ! -name objects.inv")
|
2012-06-24 17:19:38 +02:00
|
|
|
|
2020-02-24 12:36:15 +01:00
|
|
|
.include <bsd.port.post.mk>
|