svn commit: r547894 - head/print/hplip
Tijl Coosemans
tijl at FreeBSD.org
Mon Sep 7 14:55:54 UTC 2020
Author: tijl
Date: Mon Sep 7 14:55:54 2020
New Revision: 547894
URL: https://svnweb.freebsd.org/changeset/ports/547894
Log:
The Python 2 support in HPLIP depends on devel/py-gobject, not py-gobject3.
PR: 225724
Modified:
head/print/hplip/Makefile
Modified: head/print/hplip/Makefile
==============================================================================
--- head/print/hplip/Makefile Mon Sep 7 14:27:25 2020 (r547893)
+++ head/print/hplip/Makefile Mon Sep 7 14:55:54 2020 (r547894)
@@ -21,8 +21,7 @@ RUN_DEPENDS= cups-filters>=0:print/cups-filters \
CONFLICTS_INSTALL= hpijs-[0-9]*
INSTALL_TARGET= install-strip
-USES= dos2unix gnome jpeg libtool pkgconfig python shebangfix
-USE_GNOME= pygobject3
+USES= dos2unix jpeg libtool pkgconfig python shebangfix
USE_LDCONFIG= yes
SHEBANG_GLOB= *.py hpps pstotiff
DOS2UNIX_FILES= scan/sane/orblite.c
@@ -70,6 +69,14 @@ XSANE_DESC= Install XSane for scanning (implies SCAN)
XSANE_IMPLIES= SCAN
XSANE_RUN_DEPENDS= xsane:graphics/xsane
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_MAJOR_VER} >= 3
+RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}gobject3>=0:devel/py-gobject3@${PY_FLAVOR}
+.else
+RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}gobject>=0:devel/py-gobject@${PY_FLAVOR}
+.endif
+
post-patch:
@${REINPLACE_CMD} -e 's|-ldld||g;' \
-e 's|-ldl||g' \
@@ -131,4 +138,4 @@ post-install-SCAN-on:
${MV} ${STAGEDIR}${PREFIX}/etc/sane.d/dll.conf \
${STAGEDIR}${PREFIX}/etc/sane.d/dll.d/hpaio
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
More information about the svn-ports-head
mailing list