aboutsummaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2020-05-29 02:00:00 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2020-05-29 02:00:00 +0000
commitdef36eb9cfd0d54562e795c0f4675f848ffba7c9 (patch)
treee208653f95d7ebdd2ed9c872ddcb698a48bfbbe4 /print
parent766cbd5476a5a8710096a26344fc7a778df2b167 (diff)
downloadports-def36eb9cfd0d54562e795c0f4675f848ffba7c9.tar.gz
ports-def36eb9cfd0d54562e795c0f4675f848ffba7c9.zip
Update RUN_DEPENDS for py-pycups 2.0.1 update
- Bump PORTREVISION for dependency change
Notes
Notes: svn path=/head/; revision=536874
Diffstat (limited to 'print')
-rw-r--r--print/cups-cloud-print/Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/print/cups-cloud-print/Makefile b/print/cups-cloud-print/Makefile
index b92da99c2e60..4523551ca28c 100644
--- a/print/cups-cloud-print/Makefile
+++ b/print/cups-cloud-print/Makefile
@@ -2,6 +2,7 @@
PORTNAME= cups-cloud-print
PORTVERSION= 20160502
+PORTREVISION= 1
CATEGORIES= print
MAINTAINER= ports@FreeBSD.org
@@ -13,7 +14,6 @@ LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= cups-config:print/cups
RUN_DEPENDS= cancel:print/cups \
bash:shells/bash \
- ${PYTHON_PKGNAMEPREFIX}pycups>0:print/py-pycups@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}httplib2>0:www/py-httplib2@${PY_FLAVOR}
USE_GITHUB= yes
@@ -32,6 +32,14 @@ DOCSDIR= ${PREFIX}/share/doc/cloudprint-cups
OPTIONS_DEFINE= DOCS
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} < 3500
+RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}pycups1>=0:print/py-pycups1@${PY_FLAVOR}
+.else
+RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}pycups>=0:print/py-pycups@${PY_FLAVOR}
+.endif
+
post-patch:
@${REINPLACE_CMD} -e \
'/README.md/s|^|#| ; \
@@ -41,4 +49,4 @@ post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>