summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Mrozowski <reavertm@gentoo.org>2010-03-02 21:35:02 +0000
committerMaciej Mrozowski <reavertm@gentoo.org>2010-03-02 21:35:02 +0000
commit29d49d00e6ef00ce1534771a1e6fc5315af9047f (patch)
tree087cf867664ebb1799c816838f7636c47ae974ce /app-admin/system-config-printer-gnome
parentskip trying to install the non-existing reference (bug #299079) (diff)
downloadgentoo-2-29d49d00e6ef00ce1534771a1e6fc5315af9047f.tar.gz
gentoo-2-29d49d00e6ef00ce1534771a1e6fc5315af9047f.tar.bz2
gentoo-2-29d49d00e6ef00ce1534771a1e6fc5315af9047f.zip
Added new ebuild, bug 299648
(Portage version: 2.2_rc63/cvs/Linux x86_64)
Diffstat (limited to 'app-admin/system-config-printer-gnome')
-rw-r--r--app-admin/system-config-printer-gnome/ChangeLog11
-rw-r--r--app-admin/system-config-printer-gnome/files/system-config-printer-gnome-1.1.16-split.patch134
-rw-r--r--app-admin/system-config-printer-gnome/metadata.xml9
-rw-r--r--app-admin/system-config-printer-gnome/system-config-printer-gnome-1.1.16.ebuild69
4 files changed, 223 insertions, 0 deletions
diff --git a/app-admin/system-config-printer-gnome/ChangeLog b/app-admin/system-config-printer-gnome/ChangeLog
new file mode 100644
index 000000000000..adf23e4de1f3
--- /dev/null
+++ b/app-admin/system-config-printer-gnome/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for app-admin/system-config-printer-gnome
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/system-config-printer-gnome/ChangeLog,v 1.1 2010/03/02 21:35:01 reavertm Exp $
+
+*system-config-printer-gnome-1.1.16 (02 Mar 2010)
+
+ 02 Mar 2010; Maciej Mrozowski <reavertm@gentoo.org>
+ +system-config-printer-gnome-1.1.16.ebuild,
+ +files/system-config-printer-gnome-1.1.16-split.patch, +metadata.xml:
+ Added new ebuild, bug 299648
+
diff --git a/app-admin/system-config-printer-gnome/files/system-config-printer-gnome-1.1.16-split.patch b/app-admin/system-config-printer-gnome/files/system-config-printer-gnome-1.1.16-split.patch
new file mode 100644
index 000000000000..cf9f986ec3b2
--- /dev/null
+++ b/app-admin/system-config-printer-gnome/files/system-config-printer-gnome-1.1.16-split.patch
@@ -0,0 +1,134 @@
+diff -ru ../system-config-printer-1.1.16/configure.in ./configure.in
+--- ../system-config-printer-1.1.16/configure.in 2009-12-22 15:44:19.000000000 +0100
++++ ./configure.in 2010-01-16 06:30:30.200718127 +0100
+@@ -1,6 +1,6 @@
+ AC_INIT(system-config-printer, 1.1.16)
+ AC_CONFIG_SRCDIR(system-config-printer.py)
+-AM_INIT_AUTOMAKE([dist-xz dist-bzip2 subdir-objects 1.6])
++AM_INIT_AUTOMAKE([dist-bzip2 subdir-objects 1.6])
+ IT_PROG_INTLTOOL
+ AM_GNU_GETTEXT([external])
+ AM_PATH_PYTHON
+diff -ru ../system-config-printer-1.1.16/Makefile.am ./Makefile.am
+--- ../system-config-printer-1.1.16/Makefile.am 2009-12-22 15:44:19.000000000 +0100
++++ ./Makefile.am 2010-01-16 06:33:42.388946122 +0100
+@@ -2,77 +2,8 @@
+
+ SUBDIRS=po
+
+-EXPORT_MODULES= \
+- cupshelpers/__init__.py \
+- cupshelpers/cupshelpers.py \
+- cupshelpers/ppds.py \
+- cupshelpers/openprinting.py
+-
+-### Automake hooks for Distutils.
+-# The distutils module doesn't understand srcdir != builddir,
+-# so we copy in, along with the cupshelpers modules, into
+-# the builddir for 'all', 'install-exec', and 'clean' hooks.
+-.stamp-distutils-in-builddir: setup.py $(EXPORT_MODULES)
+- if [ "$(top_srcdir)" != "$(top_builddir)" ]; then \
+- cp $(top_srcdir)/setup.py .; \
+- mkdir cupshelpers; \
+- for file in $(EXPORT_MODULES); do \
+- cp $(top_srcdir)/$$file $$file; \
+- done; \
+- fi
+- touch .stamp-distutils-in-builddir
+-
+-dist-hook: mk-ChangeLog
+-.PHONE: mk-ChangeLog
+-mk-ChangeLog:
+- if test -d .git; then \
+- $(top_srcdir)/gitlog-to-changelog \
+- --since=2009-05-01 -- --no-merges \
+- > $(distdir)/cl ; \
+- mv -f $(distdir)/cl $(distdir)/ChangeLog ; \
+- fi
+-
+-config.py: config.py.in Makefile
+- sed \
+- -e "s|\@prefix\@|$(prefix)|" \
+- -e "s|\@datadir\@|$(datadir)|" \
+- -e "s|\@localedir\@|$(localedir)|" \
+- -e "s|\@VERSION\@|$(VERSION)|" \
+- -e "s|\@PACKAGE\@|$(PACKAGE)|" \
+- -e "s|\@WITH_POLKIT_1\@|$(WITH_POLKIT_1)|" \
+- $< > $@
+-
+-# Use distutils to build the module.
+-all-local: .stamp-distutils-in-builddir config.py
+- $(PYTHON) setup.py build
+-
+-# Use distutils to install the module.
+-install-exec-local: .stamp-distutils-in-builddir
+- $(PYTHON) setup.py install --prefix=$(DESTDIR)$(prefix)
+-
+-# Uninstall the module, crossing our fingers that we know enough
+-# about how distutils works to do this. Unfortunately, distutils
+-# doesn't provide a way to do this itself.
+-uninstall-local:
+- rm -f $(DESTDIR)/$(pythondir)/cupshelpers*.egg-info
+- for file in $(EXPORT_MODULES); do \
+- rm -f $(DESTDIR)/$(pythondir)/$$file*; \
+- done
+-
+-# Tell distutils to clean up.
+-clean-local:
+- -$(PYTHON) setup.py clean --all
+- if [ "$(top_srcdir)" != "$(top_builddir)" ]; then \
+- rm -f setup.py; \
+- for file in $(EXPORT_MODULES); do \
+- rm -f $$file*; \
+- done; \
+- fi
+- rm -f .stamp-distutils-in-builddir
+-
+ nobase_pkgdata_SCRIPTS= \
+ my-default-printer.py \
+- pysmb.py \
+ system-config-printer.py \
+ troubleshoot/__init__.py \
+ applet.py
+@@ -84,9 +15,7 @@
+ asyncpk0.py \
+ asyncpk1.py \
+ authconn.py \
+- config.py \
+ cupspk.py \
+- debug.py \
+ errordialogs.py \
+ HIG.py \
+ firewall.py \
+@@ -95,22 +24,13 @@
+ GroupsPaneModel.py \
+ gtkinklevel.py \
+ gtkspinner.py \
+- installpackage.py \
+ jobviewer.py \
+- monitor.py \
+ options.py \
+ optionwidgets.py \
+- PhysicalDevice.py \
+- ppdippstr.py \
+- probe_printer.py \
+ gtk_label_autowrap.py \
+- SearchCriterion.py \
+- smburi.py \
+- statereason.py \
+ timedops.py \
+ ToolbarSearchEntry.py \
+ userdefault.py \
+- XmlHelper.py \
+ glade/AboutDialog.glade \
+ glade/ConnectDialog.glade \
+ glade/ConnectingDialog.glade \
+@@ -172,8 +92,6 @@
+ man/system-config-printer.1 \
+ man/system-config-printer-applet.1
+
+-dbus_DATA =\
+- newprinternotification.conf
+ dbusdir = $(sysconfdir)/dbus-1/system.d/
+
+ desktop_DATA =\
diff --git a/app-admin/system-config-printer-gnome/metadata.xml b/app-admin/system-config-printer-gnome/metadata.xml
new file mode 100644
index 000000000000..2a4b82ae0630
--- /dev/null
+++ b/app-admin/system-config-printer-gnome/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>no-herd</herd>
+<maintainer>
+ <email>reavertm@gentoo.com</email>
+ <name>Maciej Mrozowski</name>
+</maintainer>
+</pkgmetadata>
diff --git a/app-admin/system-config-printer-gnome/system-config-printer-gnome-1.1.16.ebuild b/app-admin/system-config-printer-gnome/system-config-printer-gnome-1.1.16.ebuild
new file mode 100644
index 000000000000..d0e51d5508df
--- /dev/null
+++ b/app-admin/system-config-printer-gnome/system-config-printer-gnome-1.1.16.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/system-config-printer-gnome/system-config-printer-gnome-1.1.16.ebuild,v 1.1 2010/03/02 21:35:01 reavertm Exp $
+
+EAPI="2"
+inherit python autotools
+
+MY_P="${PN%-gnome}-${PV}"
+
+DESCRIPTION="GNOME frontend for a Red Hat's printer administration tool"
+HOMEPAGE="http://cyberelk.net/tim/software/system-config-printer/"
+SRC_URI="http://cyberelk.net/tim/data/system-config-printer/1.1/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~x86"
+SLOT="0"
+IUSE="gnome-keyring"
+
+COMMON_DEPEND="
+ dev-lang/python
+"
+DEPEND="${COMMON_DEPEND}
+ app-text/docbook-xml-dtd:4.1.2
+ app-text/xmlto
+ dev-util/intltool
+ sys-devel/gettext
+"
+RDEPEND="${COMMON_DEPEND}
+ >=app-admin/system-config-printer-common-${PV}
+ dev-python/libgnome-python
+ dev-python/notify-python
+ >=dev-python/pygtk-2.4
+ dev-python/pyxml
+ gnome-keyring? ( dev-python/gnome-keyring-python )
+"
+
+APP_LINGUAS="ar as bg bn_IN bn bs ca cs cy da de el en_GB es et fa fi fr gu he
+hi hr hu hy id is it ja ka kn ko lo lv mai mk ml mr ms nb nl nn or pa pl pt_BR
+pt ro ru si sk sl sr@latin sr sv ta te th tr uk vi zh_CN zh_TW"
+for X in ${APP_LINGUAS}; do
+ IUSE="${IUSE} linguas_${X}"
+done
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-split.patch"
+
+ eautoreconf
+}
+
+src_configure() {
+ local myconf
+
+ # disable installation of translations when LINGUAS not chosen
+ if [[ -z "${LINGUAS}" ]]; then
+ myconf="${myconf} --disable-nls"
+ else
+ myconf="${myconf} --enable-nls"
+ fi
+
+ econf ${myconf} || die "econf failed"
+}
+
+src_install() {
+ dodoc AUTHORS ChangeLog README || die "dodoc failed"
+
+ emake DESTDIR="${D}" install || die "emake install failed"
+}