Added new ebuild, bug 299648
authorMaciej Mrozowski <reavertm@gentoo.org>
Tue, 2 Mar 2010 21:35:02 +0000 (21:35 +0000)
committerMaciej Mrozowski <reavertm@gentoo.org>
Tue, 2 Mar 2010 21:35:02 +0000 (21:35 +0000)
Package-Manager: portage-2.2_rc63/cvs/Linux x86_64

app-admin/system-config-printer-gnome/ChangeLog [new file with mode: 0644]
app-admin/system-config-printer-gnome/Manifest [new file with mode: 0644]
app-admin/system-config-printer-gnome/files/system-config-printer-gnome-1.1.16-split.patch [new file with mode: 0644]
app-admin/system-config-printer-gnome/metadata.xml [new file with mode: 0644]
app-admin/system-config-printer-gnome/system-config-printer-gnome-1.1.16.ebuild [new file with mode: 0644]

diff --git a/app-admin/system-config-printer-gnome/ChangeLog b/app-admin/system-config-printer-gnome/ChangeLog
new file mode 100644 (file)
index 0000000..adf23e4
--- /dev/null
@@ -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/Manifest b/app-admin/system-config-printer-gnome/Manifest
new file mode 100644 (file)
index 0000000..cd0941a
--- /dev/null
@@ -0,0 +1,5 @@
+AUX system-config-printer-gnome-1.1.16-split.patch 3931 RMD160 28d65cbfc4a3266479bed1aeea3cc43f66a15a05 SHA1 2150fcd2bfe83175a551f867865fef42533b1384 SHA256 0c93d155880cc5ab8da58b44c29f9cf21c8d2fb11aee5a13398343fb8bab8d89
+DIST system-config-printer-1.1.16.tar.bz2 1036604 RMD160 82591c86c27738562650ba98ebe3afa95642a39a SHA1 65a0d31f1f63d2f18d649cfcd7e5cec149d7d1af SHA256 176b63ee6af2208313469192eb34eb12b41fe8b890a18c8a5ab693010a8e785d
+EBUILD system-config-printer-gnome-1.1.16.ebuild 1756 RMD160 5c504dbf8371e9001a29e4a0eb5800ea5fa2705c SHA1 f125423e3d377bf6f2715723c193e5f0def8d571 SHA256 972a39cf5ea4cc143e9172c8f60facdb3d3663a9ac50e89aedfc2f2233b4f82b
+MISC ChangeLog 504 RMD160 45728bca8894fe98fadfaeba2a0d1839e832d786 SHA1 a431c8c9f724df354b2a5a4f6a567f03868f7bf6 SHA256 ef041951c0d313410b7423a2235b1049edc8ebfcac2225eccde8ab556ef4f561
+MISC metadata.xml 254 RMD160 be5b2268822666a03bff56bc20c85795772aa681 SHA1 9549afc09d047f3ded7142e747c1389a4a56403d SHA256 b6dc3cc192a99a1d968bf9fc1c332b37d1ffb6854aa99f8f82fc31946eeb3ad5
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 (file)
index 0000000..cf9f986
--- /dev/null
@@ -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 (file)
index 0000000..2a4b82a
--- /dev/null
@@ -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 (file)
index 0000000..d0e51d5
--- /dev/null
@@ -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"
+}