freebsd-ports/graphics/py-django-easy-thumbnails/Makefile
Kai Knoblich 74174b2661 graphics/py-pillow: Update to 7.0.0
* Repo-Copy the Pillow 6.2.2 release to graphics/py-pillow6 to retain
  backwards compatibility for Python 2 consumers as the Pillow 7.0.0 release
  dropped the support for Python 2.

* Apply conditional statements to use either Pillow 7.x or Pillow 6.x for
  consumers that can be built for Python 2 or newer.

* Exceptions are ports that can be built only for either Python 2 or
  Python 3.  For the first case, consumers are just assigned to the
  repo-copied graphics/py-pillow6.

* Also remove Pillow from BUILD_DEPENDS of math/py-PyWavelets as it is not
  listed in setup.py as a build dependency [1] and relax the version
  requirements of Pillow for www/py-wagtail.

Release Notes:

* https://pillow.readthedocs.io/en/latest/releasenotes/index.html

Backward Incompatible Changes (7.0.0):

* https://pillow.readthedocs.io/en/latest/releasenotes/7.0.0.html#backwards-incompatible-changes

Detailed Changelog:

* https://github.com/python-pillow/Pillow/blob/7.0.0/CHANGES.rst

PR:		243665
Submitted by:	sunpoet (patch for 7.0.0 and repo-copied version)
Reviewed by:	koobs [1], sunpoet
Approved by:	koobs (maintainer)
Differential Revision:	https://reviews.freebsd.org/D23713
2020-02-24 11:36:15 +00:00

47 lines
1.5 KiB
Makefile

# Created by: Matthew X. Economou <xenophon+fbsdports@irtnog.org>
# $FreeBSD$
PORTNAME= easy-thumbnails
PORTVERSION= 2.5
PORTREVISION= 1
CATEGORIES= graphics python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}django-
MAINTAINER= xenophon+fbsdports@irtnog.org
COMMENT= Easy thumbnails for Django
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django111>=1.8:www/py-django111@${PY_FLAVOR}
USES= python
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} \
${PYTHON_PKGNAMEPREFIX}sphinx>0:textproc/py-sphinx@${PY_FLAVOR}
DOCS_VARS= PYDISTUTILS_BUILD_TARGET+="build_sphinx -a -E"
.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
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")
.include <bsd.port.post.mk>