freebsd-ports/print/system-config-printer/Makefile
Koop Mast 7ee16b703b Update system-config-printer to 1.4.7.
Restrict to python 2.
Add PORTSCOUT to ignore the 1.5 series for now, which are for python 3.
2015-02-10 13:19:03 +00:00

50 lines
1.6 KiB
Makefile

# Created by: Michael Johnson <ahze@FreeBSD.org>
# $FreeBSD$
PORTNAME= system-config-printer
PORTVERSION= 1.4.7
CATEGORIES= print gnome
MASTER_SITES= http://cyberelk.net/tim/data/${PORTNAME}/${PORTVERSION:R}/
MAINTAINER= gnome@FreeBSD.org
COMMENT= CUPS configuration Gtk+2.0 GUI
BUILD_DEPENDS= xmlto:${PORTSDIR}/textproc/xmlto \
docbook-xml>0:${PORTSDIR}/textproc/docbook-xml
LIB_DEPENDS= libcups.so:${PORTSDIR}/print/cups-client
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/cups.so:${PORTSDIR}/print/py-cups \
${PYTHON_SITELIBDIR}/pycurl.so:${PORTSDIR}/ftp/py-curl \
${LOCALBASE}/libexec/cups-pk-helper-mechanism:${PORTSDIR}/print/cups-pk-helper
# 1.5 series is python3 ignore them for now.
PORTSCOUT= limitw:1,even
GNU_CONFIGURE= yes
USES= desktop-file-utils gettext gmake pathfix pkgconfig python:2 \
shebangfix tar:xz
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
USE_GNOME= intlhack pygobject3
CONFIGURE_ARGS= --without-udev-rules \
--without-systemdsystemunitdir
PLIST_SUB= PYTHON_VER=${PYTHON_VERSION:S/python//}
SHEBANG_FILES= *.py troubleshoot/*.py xml/validate.py
PYDISTUTILS_PKGNAME= cupshelpers
PYDISTUTILS_PKGVERSION= 1.0
post-patch:
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g; \
s|%%PREFIX%%|${PREFIX}|g' \
${WRKSRC}/applet.py ${WRKSRC}/check-device-ids.py \
${WRKSRC}/cupshelpers/cupshelpers.py \
${WRKSRC}/cupshelpers/xmldriverprefs.py \
${WRKSRC}/dbus/org.fedoraproject.Config.Printing.service \
${WRKSRC}/newprinter.py ${WRKSRC}/probe_printer.py
@${REINPLACE_CMD} -e 's|setup.py install.*|setup.py install -c -O1 --prefix=${PREFIX} --root=${STAGEDIR}|g' \
${WRKSRC}/Makefile.in
.include <bsd.port.mk>