aboutsummaryrefslogtreecommitdiff
path: root/print/kdeutils4-printer-applet
diff options
context:
space:
mode:
authorMax Brazhnikov <makc@FreeBSD.org>2009-05-09 19:38:16 +0000
committerMax Brazhnikov <makc@FreeBSD.org>2009-05-09 19:38:16 +0000
commitc4efb99db9a863fc5634862ec14c82f8eeeae58f (patch)
tree93caf9fe09ed5fca76b36388a4fe15de2b67e9e3 /print/kdeutils4-printer-applet
parentb1df87c2ed3148118da4eb634135e84b097a5983 (diff)
downloadports-c4efb99db9a863fc5634862ec14c82f8eeeae58f.tar.gz
ports-c4efb99db9a863fc5634862ec14c82f8eeeae58f.zip
Notes
Diffstat (limited to 'print/kdeutils4-printer-applet')
-rw-r--r--print/kdeutils4-printer-applet/Makefile45
-rw-r--r--print/kdeutils4-printer-applet/files/patch-printer-applet__cmake-modules__FindSystemConfigPrinter.py11
-rw-r--r--print/kdeutils4-printer-applet/files/patch-printer-applet__printer-applet-printers.ui11
-rw-r--r--print/kdeutils4-printer-applet/files/patch-printer-applet__printer-applet.py11
-rw-r--r--print/kdeutils4-printer-applet/pkg-descr8
-rw-r--r--print/kdeutils4-printer-applet/pkg-plist7
6 files changed, 93 insertions, 0 deletions
diff --git a/print/kdeutils4-printer-applet/Makefile b/print/kdeutils4-printer-applet/Makefile
new file mode 100644
index 000000000000..3c85dafb1928
--- /dev/null
+++ b/print/kdeutils4-printer-applet/Makefile
@@ -0,0 +1,45 @@
+# New ports collection makefile for: kdeutils4-printer-applet
+# Date created: 2009-05-04
+# Whom: Max Brazhnikov <makc@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= printer-applet
+PORTVERSION= ${KDE4_VERSION}
+CATEGORIES= print kde
+MASTER_SITES= ${MASTER_SITE_KDE}
+MASTER_SITE_SUBDIR= ${KDE4_BRANCH}/${PORTVERSION}/src
+PKGNAMEPREFIX= kdeutils-
+DISTNAME= kdeutils-${PORTVERSION}
+DIST_SUBDIR= KDE
+
+MAINTAINER= kde@FreeBSD.org
+COMMENT= Printer system tray utility for KDE4
+
+BUILD_DEPENDS= system-config-printer:${PORTSDIR}/print/system-config-printer \
+ ${PYTHON_SITELIBDIR}/cups.so:${PORTSDIR}/print/py-cups \
+ ${PYTHON_KDE4PREFIX_SITELIBDIR}/PyKDE4/kdeui.so:${PORTSDIR}/devel/kdebindings4-python-pykde4
+RUN_DEPENDS:= ${BUILD_DEPENDS} \
+ ${PYTHON_SITELIBDIR}/dbus/mainloop/qt.so:${PORTSDIR}/devel/py-qt4-dbus
+
+USE_BZIP2= yes
+USE_CMAKE= yes
+USE_KDE4= kdeprefix pimlibs automoc4
+USE_QT_VER= 4
+QT_COMPONENTS= qmake_build moc_build uic_build rcc_build
+USE_PYTHON= 2.5+
+MD5_FILE= ${PORTSDIR}/misc/kdeutils4/distinfo
+
+BUILD_WRKSRC= ${WRKSRC}/${PORTNAME}
+INSTALL_WRKSRC= ${BUILD_WRKSRC}
+
+PYTHON_KDE4PREFIX_SITELIBDIR= ${PYTHON_SITELIBDIR:S;${PYTHONBASE};${KDE4_PREFIX};}
+
+post-patch:
+ cd ${BUILD_WRKSRC} && ${REINPLACE_CMD} -e 's,%%LOCALBASE%%,${LOCALBASE},g' \
+ printer-applet-printers.ui \
+ printer-applet.py \
+ cmake-modules/FindSystemConfigPrinter.py
+
+.include <bsd.port.mk>
diff --git a/print/kdeutils4-printer-applet/files/patch-printer-applet__cmake-modules__FindSystemConfigPrinter.py b/print/kdeutils4-printer-applet/files/patch-printer-applet__cmake-modules__FindSystemConfigPrinter.py
new file mode 100644
index 000000000000..ecfd6230c84d
--- /dev/null
+++ b/print/kdeutils4-printer-applet/files/patch-printer-applet__cmake-modules__FindSystemConfigPrinter.py
@@ -0,0 +1,11 @@
+--- ./printer-applet/cmake-modules/FindSystemConfigPrinter.py.orig 2008-09-13 12:13:57.000000000 +0400
++++ ./printer-applet/cmake-modules/FindSystemConfigPrinter.py 2009-05-04 21:27:40.000000000 +0400
+@@ -4,7 +4,7 @@
+
+ import sys
+
+-SYSTEM_CONFIG_PRINTER_DIR = "/usr/share/system-config-printer"
++SYSTEM_CONFIG_PRINTER_DIR = "%%LOCALBASE%%/share/system-config-printer"
+ sys.path.append (SYSTEM_CONFIG_PRINTER_DIR)
+
+ try:
diff --git a/print/kdeutils4-printer-applet/files/patch-printer-applet__printer-applet-printers.ui b/print/kdeutils4-printer-applet/files/patch-printer-applet__printer-applet-printers.ui
new file mode 100644
index 000000000000..4b58e47f4523
--- /dev/null
+++ b/print/kdeutils4-printer-applet/files/patch-printer-applet__printer-applet-printers.ui
@@ -0,0 +1,11 @@
+--- ./printer-applet/printer-applet-printers.ui.orig 2008-05-07 13:05:17.000000000 +0400
++++ ./printer-applet/printer-applet-printers.ui 2009-05-04 21:25:51.000000000 +0400
+@@ -13,7 +13,7 @@
+ <string>Printer Status</string>
+ </property>
+ <property name="windowIcon" >
+- <iconset>/usr/share/system-config-printer/printer-128.png</iconset>
++ <iconset>%%LOCALBASE%%/share/system-config-printer/printer-128.png</iconset>
+ </property>
+ <layout class="QGridLayout" >
+ <property name="leftMargin" >
diff --git a/print/kdeutils4-printer-applet/files/patch-printer-applet__printer-applet.py b/print/kdeutils4-printer-applet/files/patch-printer-applet__printer-applet.py
new file mode 100644
index 000000000000..4c300bb07ffe
--- /dev/null
+++ b/print/kdeutils4-printer-applet/files/patch-printer-applet__printer-applet.py
@@ -0,0 +1,11 @@
+--- ./printer-applet/printer-applet.py.orig 2008-10-09 13:46:28.000000000 +0400
++++ ./printer-applet/printer-applet.py 2009-05-04 21:25:37.000000000 +0400
+@@ -36,7 +36,7 @@
+ import subprocess
+ import sys
+
+-SYSTEM_CONFIG_PRINTER_DIR = "/usr/share/system-config-printer"
++SYSTEM_CONFIG_PRINTER_DIR = "%%LOCALBASE%%/share/system-config-printer"
+
+ MIN_REFRESH_INTERVAL = 1 # seconds
+ CONNECTING_TIMEOUT = 60 # seconds
diff --git a/print/kdeutils4-printer-applet/pkg-descr b/print/kdeutils4-printer-applet/pkg-descr
new file mode 100644
index 000000000000..69193f500798
--- /dev/null
+++ b/print/kdeutils4-printer-applet/pkg-descr
@@ -0,0 +1,8 @@
+printer-applet is a system tray utility. It shows current print jobs,
+shows printer warnings and errors and shows when printers that have
+been plugged in for the first time are being auto-configured by
+hal-cups-utils.
+
+It replaces kjobviewer in KDE 3.
+
+WWW: http://www.kde.org
diff --git a/print/kdeutils4-printer-applet/pkg-plist b/print/kdeutils4-printer-applet/pkg-plist
new file mode 100644
index 000000000000..77b8ffa29909
--- /dev/null
+++ b/print/kdeutils4-printer-applet/pkg-plist
@@ -0,0 +1,7 @@
+bin/printer-applet
+share/apps/printer-applet/printer-applet-printers.ui
+share/apps/printer-applet/printer-applet.py
+share/apps/printer-applet/printer-applet.ui
+share/apps/printer-applet/printer-appletui.rc
+share/autostart/printer-applet.desktop
+@dirrm share/apps/printer-applet