summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhasufell <julian.ospald@googlemail.com>2012-04-06 12:28:40 +0200
committerhasufell <julian.ospald@googlemail.com>2012-04-06 12:28:40 +0200
commite37a05c8237bb125f75c3852b08d2908bbbea69f (patch)
treee33d25943f90b7df7e390147666fcc1ad7b205b2 /net-print
parentdev-db/cppdb: New ebuild for bug #410713 thanks to people from #gentoo-sunrise (diff)
downloadsunrise-e37a05c8237bb125f75c3852b08d2908bbbea69f.tar.gz
sunrise-e37a05c8237bb125f75c3852b08d2908bbbea69f.tar.bz2
sunrise-e37a05c8237bb125f75c3852b08d2908bbbea69f.zip
net-print/gnome-manual-duplex: New Ebuild for bug 394761 thanks to Tommy[D]
Diffstat (limited to 'net-print')
-rw-r--r--net-print/gnome-manual-duplex/Manifest4
-rw-r--r--net-print/gnome-manual-duplex/files/gnome-manual-duplex-0.43-makefile.patch164
-rw-r--r--net-print/gnome-manual-duplex/gnome-manual-duplex-0.43.ebuild63
-rw-r--r--net-print/gnome-manual-duplex/metadata.xml7
4 files changed, 238 insertions, 0 deletions
diff --git a/net-print/gnome-manual-duplex/Manifest b/net-print/gnome-manual-duplex/Manifest
new file mode 100644
index 000000000..d1c3244e1
--- /dev/null
+++ b/net-print/gnome-manual-duplex/Manifest
@@ -0,0 +1,4 @@
+AUX gnome-manual-duplex-0.43-makefile.patch 5002 RMD160 a635d9c2761ef17bcdbb56f30b70fb0c937cf2b1 SHA1 baa0142749bfd1e3b4e5677f2561b632e3267558 SHA256 0c3f7b505d30f54315c1dad039f1b2593c1b2a864cadf638c300e080948fc243
+DIST gnome-manual-duplex-0.43.tar.gz 48906 RMD160 c203ad8c367614294ae72600c80c1d130852fcd2 SHA1 6c8b433f89d588f4dc7c1af11d3cfbd52a6133e5 SHA256 f69ba51fb30e6f53ca5c838fc641852aefbb4563ef0e61a9fd3c1c0a4e4120e0
+EBUILD gnome-manual-duplex-0.43.ebuild 1166 RMD160 7446dadcaec37ff4416bae8e8c1bcb82074fa4e8 SHA1 02f6afe85c4bc253fc40bca64f9057422db8f724 SHA256 0260893f796d70cc2267e75bb2fa2fe906965cad07d3ecc16b0037f14c5b615e
+MISC metadata.xml 214 RMD160 efd8175069efb91061298ff4584218b633e44678 SHA1 d372fdbfcb7fd07a4082961d3f3527be4fca1d60 SHA256 c1f09dc7d5313cd2da7b82259c7846ed23144d62b15e59680ada90e2b6b4d154
diff --git a/net-print/gnome-manual-duplex/files/gnome-manual-duplex-0.43-makefile.patch b/net-print/gnome-manual-duplex/files/gnome-manual-duplex-0.43-makefile.patch
new file mode 100644
index 000000000..b2d30ddab
--- /dev/null
+++ b/net-print/gnome-manual-duplex/files/gnome-manual-duplex-0.43-makefile.patch
@@ -0,0 +1,164 @@
+From: hasufell <julian.ospald@googlemail.com>
+Date: Thu Apr 5 10:54:55 UTC 2012
+
+make paths modifiable, clean up and split install-rules
+
+--- Makefile
++++ Makefile
+@@ -2,23 +2,28 @@
+ PROG=gnome-manual-duplex
+ VERSION=0.43
+
+-INSTALL=install
+-LPADMIN=/usr/sbin/lpadmin
+-
+-BIN=$(DESTDIR)/usr/bin
+-SHARE=$(DESTDIR)/usr/share
+-APPL=$(DESTDIR)/usr/share/applications
+-PIXMAPS=$(DESTDIR)/usr/share/pixmaps
+-LIBCUPS=$(DESTDIR)/usr/lib/cups
+-LIBBONOBO=$(DESTDIR)/usr/lib/bonobo
+-MANDIR=$(DESTDIR)/usr/share/man
+-SERVICES=$(DESTDIR)/usr/share/dbus-1/services/
+-APPLETS=$(DESTDIR)/usr/share/gnome-panel/4.0/applets/
++INSTALL ?= install -c
++INSTALL_DATA ?= ${INSTALL} -m 644
++INSTALL_PROGRAM ?= ${INSTALL} -m 755
++LPADMIN ?= /usr/sbin/lpadmin
++
++LIBDIR ?= lib
++PREFIX ?= /usr
++BIN ?= $(PREFIX)/bin
++SHARE ?= $(PREFIX)/share
++APPL ?= $(SHARE)/applications
++PIXMAPS ?= $(SHARE)/pixmaps
++LIBCUPS ?= $(PREFIX)/$(LIBDIR)/cups
++LIBBONOBO ?= $(PREFIX)/$(LIBDIR)/bonobo
++MANDIR ?= $(SHARE)/man
++DOCDIR ?= $(SHARE)/doc/$(PROG)
++SERVICES ?= $(SHARE)/dbus-1/services/
++APPLETS ?= $(SHARE)/gnome-panel/4.0/applets/
+
+ UNAME := $(shell uname)
+-GSED=sed
++GSED ?= sed
+ ifeq ($(UNAME),Darwin)
+- GSED=gsed
++ GSED ?= gsed
+ endif
+
+ NULL=
+@@ -214,65 +219,67 @@
+ #
+ install: all
+ # /usr/bin...
+- $(INSTALL) -d $(BIN)
+- $(INSTALL) $(PROG) $(BIN)
++ $(INSTALL) -d $(DESTDIR)$(BIN)
++ $(INSTALL_PROGRAM) $(PROG) $(DESTDIR)$(BIN)
+ # /usr/share/gnome-manual-duplex
+- $(INSTALL) -d $(SHARE)/$(PROG)
+- $(INSTALL) -m644 *.xml $(SHARE)/$(PROG)
+- $(INSTALL) -m644 *.xpm $(SHARE)/$(PROG)
+- $(INSTALL) -m755 gmd-applet.py $(SHARE)/$(PROG)
+- #
+- $(INSTALL) -d $(APPL)
+- $(INSTALL) -c -m 644 *.desktop $(APPL)
+- #
+- $(INSTALL) -d $(PIXMAPS)
+- $(INSTALL) -c -m644 $(PROG).png $(PIXMAPS)
+- $(INSTALL) -m644 gmd.svg $(PIXMAPS)
+- #
+- $(INSTALL) -d $(LIBCUPS)
+- $(INSTALL) -d $(LIBCUPS)/backend
+- $(INSTALL) -m755 gmd-backend.sh $(LIBCUPS)/backend/gmd
+- #
+- $(INSTALL) -d $(SHARE)/cups/model
+- $(INSTALL) $(PROG).ppd $(SHARE)/cups/model
++ $(INSTALL) -d $(DESTDIR)$(SHARE)/$(PROG)
++ $(INSTALL_DATA) *.xml $(DESTDIR)$(SHARE)/$(PROG)
++ $(INSTALL_DATA) *.xpm $(DESTDIR)$(SHARE)/$(PROG)
++ #
++ $(INSTALL) -d $(DESTDIR)$(APPL)
++ $(INSTALL_DATA) *.desktop $(DESTDIR)$(APPL)
++ #
++ $(INSTALL) -d $(DESTDIR)$(PIXMAPS)
++ $(INSTALL_DATA) $(PROG).png $(DESTDIR)$(PIXMAPS)
++ #
++ $(INSTALL) -d $(DESTDIR)$(LIBCUPS)
++ $(INSTALL) -d $(DESTDIR)$(LIBCUPS)/backend
++ $(INSTALL_PROGRAM) gmd-backend.sh $(DESTDIR)$(LIBCUPS)/backend/gmd
++ #
++ $(INSTALL) -d $(DESTDIR)$(SHARE)/cups/model
++ $(INSTALL_DATA) $(PROG).ppd $(DESTDIR)$(SHARE)/cups/model
+ #
+ # Done in gmd-applet.py now...
+ #$(LPADMIN) -p GnomeManualDuplex -E -v gmd:/ -L "Virtual Printer"
+ #
+- $(INSTALL) -d $(LIBBONOBO)
+- $(INSTALL) -d $(LIBBONOBO)/servers
+- $(INSTALL) -m644 gmd.server $(LIBBONOBO)/servers/
+- #
+- # For Gnome 3.0 (Fedora 15+)...
+- #
+- $(INSTALL) -m755 gmd-applet-3.py $(SHARE)/$(PROG)
+- $(INSTALL) -d $(SERVICES)
+- $(INSTALL) -m644 \
+- org.gnome.panel.applet.GnomeManualDuplexAppletFactory.service \
+- $(SERVICES)
+- $(INSTALL) -d $(APPLETS)
+- $(INSTALL) -m644 \
+- org.gnome.panel.GnomeManualDuplex.panel-applet \
+- $(APPLETS)
+ #
+ # Doc...
+ #
+- $(INSTALL) -d $(SHARE)/doc/$(PROG)
+- $(INSTALL) -m644 README $(SHARE)/doc/$(PROG)
+- $(INSTALL) -m644 COPYING $(SHARE)/doc/$(PROG)
++ $(INSTALL) -d $(DESTDIR)$(DOCDIR)
++ $(INSTALL_DATA) README $(DESTDIR)$(DOCDIR)
+ # /usr/share/locale
+- $(INSTALL) -d $(SHARE)/locale
++ $(INSTALL) -d $(DESTDIR)$(SHARE)/locale
+ cd locale; \
+ for xx_XX in *; do \
+- $(INSTALL) -d $(SHARE)/locale/$$xx_XX; \
+- $(INSTALL) -d $(SHARE)/locale/$$xx_XX/LC_MESSAGES; \
+- $(INSTALL) -m644 $$xx_XX/LC_MESSAGES/$(PROG).mo \
+- $(SHARE)/locale/$$xx_XX/LC_MESSAGES/ ; \
++ $(INSTALL) -d $(DESTDIR)$(SHARE)/locale/$$xx_XX; \
++ $(INSTALL) -d $(DESTDIR)$(SHARE)/locale/$$xx_XX/LC_MESSAGES; \
++ $(INSTALL_DATA) $$xx_XX/LC_MESSAGES/$(PROG).mo \
++ $(DESTDIR)$(SHARE)/locale/$$xx_XX/LC_MESSAGES/ ; \
+ done
+ # Install manual pages
+- $(INSTALL) -d -m 755 $(MANDIR)
+- $(INSTALL) -d -m 755 $(MANDIR)/man1/
+- $(INSTALL) -c -m 644 $(PROG).1 $(MANDIR)/man1/
++ $(INSTALL) -d $(DESTDIR)$(MANDIR)
++ $(INSTALL) -d $(DESTDIR)$(MANDIR)/man1/
++ $(INSTALL_DATA) $(PROG).1 $(DESTDIR)$(MANDIR)/man1/
++
++install-gnome: install
++ $(INSTALL_PROGRAM) gmd-applet.py $(DESTDIR)$(SHARE)/$(PROG)
++ $(INSTALL) -d $(DESTDIR)$(LIBBONOBO)
++ $(INSTALL) -d $(DESTDIR)$(LIBBONOBO)/servers
++ $(INSTALL_DATA) gmd.server $(DESTDIR)$(LIBBONOBO)/servers/
++ # icon
++ $(INSTALL_DATA) gmd.svg $(DESTDIR)$(PIXMAPS)
++ #
++ # For Gnome 3.0 (Fedora 15+)...
++ #
++ $(INSTALL_PROGRAM) gmd-applet-3.py $(DESTDIR)$(SHARE)/$(PROG)
++ $(INSTALL) -d $(DESTDIR)$(SERVICES)
++ $(INSTALL_DATA) \
++ org.gnome.panel.applet.GnomeManualDuplexAppletFactory.service \
++ $(DESTDIR)$(SERVICES)
++ $(INSTALL) -d $(DESTDIR)$(APPLETS)
++ $(INSTALL_DATA) \
++ org.gnome.panel.GnomeManualDuplex.panel-applet \
++ $(DESTDIR)$(APPLETS)
+
+ clean:
+ rm -f $(PROG) $(PROG).xml *.tar.gz *.spec *.dsc
diff --git a/net-print/gnome-manual-duplex/gnome-manual-duplex-0.43.ebuild b/net-print/gnome-manual-duplex/gnome-manual-duplex-0.43.ebuild
new file mode 100644
index 000000000..4fdfac54b
--- /dev/null
+++ b/net-print/gnome-manual-duplex/gnome-manual-duplex-0.43.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=4
+
+PYTHON_DEPEND="2:2.6"
+
+inherit eutils multilib python
+
+MY_PN=${PN/gnome/g}
+
+DESCRIPTION="Utility that adds manual duplex to the Print menu"
+HOMEPAGE="http://sourceforge.net/projects/g-manual-duplex/"
+SRC_URI="mirror://sourceforge/${MY_PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="gnome"
+
+RDEPEND="app-text/psutils
+ dev-libs/libgamin[python]
+ dev-python/pycups
+ dev-python/pygobject:2
+ dev-python/pygtk:2
+ sys-apps/file
+ gnome? (
+ dev-python/gnome-applets-python
+ gnome-base/gnome-panel[bonobo]
+ )"
+DEPEND="${RDEPEND}
+ dev-util/gtk-builder-convert
+ media-gfx/transfig
+ media-libs/netpbm
+ sys-devel/gettext"
+
+src_prepare() {
+ python_convert_shebangs -r 2 .
+ epatch "${FILESDIR}"/${P}-makefile.patch
+}
+
+src_install() {
+ local myinstall
+
+ if use gnome ; then
+ myinstall="install-gnome"
+ else
+ myinstall="install"
+ fi
+
+ emake \
+ DESTDIR="${D}" \
+ LIBDIR=$(get_libdir) \
+ DOCDIR=/usr/share/doc/${PF} \
+ $myinstall
+}
+
+pkg_postinst() {
+ if use gnome ; then
+ elog "Gnome-3 only works in fallback mode."
+ fi
+}
diff --git a/net-print/gnome-manual-duplex/metadata.xml b/net-print/gnome-manual-duplex/metadata.xml
new file mode 100644
index 000000000..cc3fe2494
--- /dev/null
+++ b/net-print/gnome-manual-duplex/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>maintainer-wanted@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>