diff options
author | makc <makc@FreeBSD.org> | 2009-05-10 03:38:16 +0800 |
---|---|---|
committer | makc <makc@FreeBSD.org> | 2009-05-10 03:38:16 +0800 |
commit | 1768b2fcb3619eabf27ce76ae1ad1c6325774ca8 (patch) | |
tree | 8745af9d2fad4b8b324541c7b1b3d734f15fe10e /print | |
parent | 187e5f78b1fb15beef257209076e6592b589b93c (diff) | |
download | freebsd-ports-gnome-1768b2fcb3619eabf27ce76ae1ad1c6325774ca8.tar.gz freebsd-ports-gnome-1768b2fcb3619eabf27ce76ae1ad1c6325774ca8.tar.zst freebsd-ports-gnome-1768b2fcb3619eabf27ce76ae1ad1c6325774ca8.zip |
Update KDE ports to 4.2.3
See original release announcement for details:
http://kde.org/announcements/announce-4.2.3.php
New ports:
devel/kdebindings4:
Meta port of KDE bindings for C#, Java, PHP, Python and Ruby.
Currently only Python bindings are supported.
devel/kdebindings4-python, devel/kdebindings4-python-krosspython,
devel/kdebindings4-python-pykde4:
Python bindings for KDE.
print/kdeutils4-printer-applet:
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.
print/system-config-printer-kde
A port of Gnome system-config-printer to KDE.
Diffstat (limited to 'print')
12 files changed, 197 insertions, 0 deletions
diff --git a/print/Makefile b/print/Makefile index ab9ebd01128a..cfc5adbbda3c 100644 --- a/print/Makefile +++ b/print/Makefile @@ -129,6 +129,7 @@ SUBDIR += kaspaliste SUBDIR += kcdlabel SUBDIR += kde_poster + SUBDIR += kdeutils4-printer-applet SUBDIR += kover SUBDIR += kpdftool SUBDIR += latex @@ -310,6 +311,7 @@ SUBDIR += splix SUBDIR += sv-acroread8 SUBDIR += system-config-printer + SUBDIR += system-config-printer-kde SUBDIR += t1utils SUBDIR += teTeX SUBDIR += teTeX-base 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 diff --git a/print/system-config-printer-kde/Makefile b/print/system-config-printer-kde/Makefile new file mode 100644 index 000000000000..86f749c4e3fd --- /dev/null +++ b/print/system-config-printer-kde/Makefile @@ -0,0 +1,43 @@ +# New ports collection makefile for: system-config-printer-kde +# Date created: 2009-05-04 +# Whom: Max Brazhnikov <makc@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= system-config-printer-kde +PORTVERSION= ${KDE4_VERSION} +CATEGORIES= print kde +MASTER_SITES= ${MASTER_SITE_KDE} +MASTER_SITE_SUBDIR= ${KDE4_BRANCH}/${PORTVERSION}/src +DISTNAME= kdeadmin-${PORTVERSION} +DIST_SUBDIR= KDE + +MAINTAINER= kde@FreeBSD.org +COMMENT= KDE4 frontend for system-config-printer + +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}/sysutils/kdeadmin4/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' \ + system-config-printer-kde.py \ + cmake-modules/FindSystemConfigPrinter.py + +.include <bsd.port.mk> diff --git a/print/system-config-printer-kde/files/patch-system-config-printer-kde__cmake-modules__FindSystemConfigPrinter.py b/print/system-config-printer-kde/files/patch-system-config-printer-kde__cmake-modules__FindSystemConfigPrinter.py new file mode 100644 index 000000000000..cd6028d9f0c2 --- /dev/null +++ b/print/system-config-printer-kde/files/patch-system-config-printer-kde__cmake-modules__FindSystemConfigPrinter.py @@ -0,0 +1,11 @@ +--- ./system-config-printer-kde/cmake-modules/FindSystemConfigPrinter.py.orig 2008-09-13 12:16:28.000000000 +0400 ++++ ./system-config-printer-kde/cmake-modules/FindSystemConfigPrinter.py 2009-05-04 22:46:32.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/system-config-printer-kde/files/patch-system-config-printer-kde__system-config-printer-kde.py b/print/system-config-printer-kde/files/patch-system-config-printer-kde__system-config-printer-kde.py new file mode 100644 index 000000000000..216bbe4f4bdb --- /dev/null +++ b/print/system-config-printer-kde/files/patch-system-config-printer-kde__system-config-printer-kde.py @@ -0,0 +1,38 @@ +--- ./system-config-printer-kde/system-config-printer-kde.py.orig 2008-12-21 23:20:45.000000000 +0300 ++++ ./system-config-printer-kde/system-config-printer-kde.py 2009-05-04 22:50:28.000000000 +0400 +@@ -33,7 +33,7 @@ + import thread + + #load modules from system-config-printer-common (debug, smburi), change path here if you have it installed elsewhere +-SYSTEM_CONFIG_PRINTER_DIR = "/usr/share/system-config-printer" ++SYSTEM_CONFIG_PRINTER_DIR = "%%LOCALBASE%%/share/system-config-printer" + if os.path.exists(SYSTEM_CONFIG_PRINTER_DIR + "/debug.py"): + sys.path.append(SYSTEM_CONFIG_PRINTER_DIR) + +@@ -2265,7 +2265,7 @@ + # Try to get make and model via SNMP + if host: + os.environ["HOST"] = host +- cmd = '/usr/lib/cups/backend/snmp "${HOST}"' ++ cmd = '%%LOCALBASE%%/libexec/cups/backend/snmp "${HOST}"' + debugprint (host + ": " + cmd) + stdout = None + try: +@@ -2920,7 +2920,7 @@ + os.environ["PPD"] = filename + # We want this to be in the current natural language, + # so we intentionally don't set LC_ALL=C here. +- p = os.popen ('/usr/bin/cupstestppd -rvv "$PPD"', 'r') ++ p = os.popen ('%%LOCALBASE%%/bin/cupstestppd -rvv "$PPD"', 'r') + output = p.readlines () + p.close () + err += reduce (lambda x, y: x + y, output) +@@ -3168,7 +3168,7 @@ + (pkgs, exes) = cupshelpers.missingPackagesAndExecutables (ppd) + if len (pkgs) > 0 or len (exes) > 0: + # We didn't find a necessary executable. Complain. +- install = "/usr/bin/system-install-packages" ++ install = "/usr/bin/true" + if len (pkgs) > 0 and os.access (install, os.X_OK): + pkg = pkgs[0] + install_text = ('<span weight="bold" size="larger">' + diff --git a/print/system-config-printer-kde/pkg-descr b/print/system-config-printer-kde/pkg-descr new file mode 100644 index 000000000000..2bbde24ce18a --- /dev/null +++ b/print/system-config-printer-kde/pkg-descr @@ -0,0 +1,4 @@ +system-config-printer-kde is a port of Red Hat's Gnome +system-config-printer to KDE. + +WWW: http://www.kde.org diff --git a/print/system-config-printer-kde/pkg-plist b/print/system-config-printer-kde/pkg-plist new file mode 100644 index 000000000000..0044f4893f4b --- /dev/null +++ b/print/system-config-printer-kde/pkg-plist @@ -0,0 +1,6 @@ +bin/system-config-printer-kde +share/applications/kde4/system-config-printer-kde.desktop +share/apps/system-config-printer-kde/new-printer.ui +share/apps/system-config-printer-kde/system-config-printer-kde.py +share/apps/system-config-printer-kde/system-config-printer.ui +@dirrm share/apps/system-config-printer-kde |