Changeset View
Changeset View
Standalone View
Standalone View
graphics/py-wand/Makefile
PORTNAME= Wand | PORTNAME= Wand | ||||
PORTVERSION= 0.6.7 | DISTVERSION= 0.6.7 | ||||
PORTREVISION= 1 | |||||
CATEGORIES= graphics python | CATEGORIES= graphics python | ||||
MASTER_SITES= CHEESESHOP | MASTER_SITES= CHEESESHOP | ||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} | PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} | ||||
MAINTAINER= sunpoet@FreeBSD.org | MAINTAINER= rsmith@xs4all.nl | ||||
COMMENT= Ctypes-based simple MagickWand API binding for Python | COMMENT= Ctypes-based simple MagickWand API binding for Python | ||||
LICENSE= MIT | LICENSE= MIT | ||||
LICENSE_FILE= ${WRKSRC}/LICENSE | LICENSE_FILE= ${WRKSRC}/LICENSE | ||||
USES= python:3.6+ | USES= python | ||||
USE_PYTHON= autoplist concurrent distutils | USE_PYTHON= autoplist concurrent distutils | ||||
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \ | |||||
${PYTHON_PKGNAMEPREFIX}pytest-xdist>0:devel/py-pytest-xdist@${PY_FLAVOR} \ | |||||
${PYTHON_PKGNAMEPREFIX}psutil>0:sysutils/py-psutil@${PY_FLAVOR} \ | |||||
koobs: Leftover trailing `\`, but i would add numpy here for additional (optional) tests to be run | |||||
NO_ARCH= yes | NO_ARCH= yes | ||||
PORTDOCS= * | |||||
Done Inline ActionsI wonder if >=0,1 is not a typo. lbartoletti: I wonder if `>=0,1` is not a typo.
`>=0` should be sufficient? | |||||
OPTIONS_DEFINE= X11 | OPTIONS_DEFINE= DOCS X11 | ||||
OPTIONS_SINGLE= IMAGEMAGICK | OPTIONS_DEFAULT= X11 | ||||
OPTIONS_SINGLE_IMAGEMAGICK= IMAGEMAGICK6 IMAGEMAGICK7 | |||||
OPTIONS_DEFAULT=IMAGEMAGICK7 X11 | |||||
IMAGEMAGICK6_DESC= Use ImageMagick 6.x (graphics/ImageMagick6*) | |||||
IMAGEMAGICK7_DESC= Use ImageMagick 7.x (graphics/ImageMagick7*) | |||||
.include <bsd.port.options.mk> | DOCS_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sphinx>=0:textproc/py-sphinx@${PY_FLAVOR} | ||||
DOCS_VARS= PYDISTUTILS_BUILD_TARGET+="build_sphinx -a -E" | |||||
.if ${PORT_OPTIONS:MX11} | X11_LIB_DEPENDS= libMagickWand-${IMAGEMAGICK_DEFAULT}.so:graphics/ImageMagick${IMAGEMAGICK_DEFAULT} | ||||
.if ${PORT_OPTIONS:MIMAGEMAGICK7} | X11_LIB_DEPENDS_OFF= libMagickWand-${IMAGEMAGICK_DEFAULT}.so:graphics/ImageMagick${IMAGEMAGICK_DEFAULT}-nox11 | ||||
LIB_DEPENDS= libMagickWand-7.so:graphics/ImageMagick7 | |||||
.else | do-test: | ||||
LIB_DEPENDS= libMagickWand-6.so:graphics/ImageMagick6 | cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -v -rs -o addopts= | ||||
.endif | |||||
.else | post-install-DOCS-on: | ||||
.if ${PORT_OPTIONS:MIMAGEMAGICK7} | @${MKDIR} ${STAGEDIR}${DOCSDIR} | ||||
LIB_DEPENDS= libMagickWand-7.so:graphics/ImageMagick7-nox11 | (cd ${WRKSRC}/build/sphinx/html && \ | ||||
.else | ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} \ | ||||
LIB_DEPENDS= libMagickWand-6.so:graphics/ImageMagick6-nox11 | "! -name .buildinfo -and ! -name objects.inv") | ||||
.endif | |||||
.endif | |||||
.include <bsd.port.mk> | .include <bsd.port.mk> | ||||
Not Done Inline ActionsIs it possible to just have straight X11_LIB_DEPENDS= and X11_LIB_DEPENDS_OFF lines here instead of the shared/indirect variable? Prefer explicit/readability over 'deduplication' koobs: Is it possible to just have straight X11_LIB_DEPENDS= and X11_LIB_DEPENDS_OFF lines here… |
Leftover trailing \, but i would add numpy here for additional (optional) tests to be run