blob: 74a0e3621ea8940ee90279fc8063905d8ab1daa2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Created by: Michael Johnson <ahze@FreeBSD.org>
# $FreeBSD$
PORTNAME= system-config-printer
PORTVERSION= 1.4.7
PORTREVISION= 3
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:textproc/xmlto \
docbook-xml>0:textproc/docbook-xml
LIB_DEPENDS= libcups.so:print/cups
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/cups.so:print/py-pycups \
${PYTHON_SITELIBDIR}/pycurl.so:ftp/py-pycurl \
${LOCALBASE}/libexec/cups-pk-helper-mechanism: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>
|