summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2010-12-22 08:18:36 +0000
committerJustin Lecher <jlec@gentoo.org>2010-12-22 08:18:36 +0000
commitc9f48389d998baaf1c602b30a0ef5df5dfffad45 (patch)
tree88d094ddb6725d582a876422404599eb70438471
parentAdded missed fontforge dependency, thank Agostino Sarubbo for report in bug #... (diff)
downloadgentoo-2-c9f48389d998baaf1c602b30a0ef5df5dfffad45.tar.gz
gentoo-2-c9f48389d998baaf1c602b30a0ef5df5dfffad45.tar.bz2
gentoo-2-c9f48389d998baaf1c602b30a0ef5df5dfffad45.zip
Verify and potentially improve Python-related code, #316189
(Portage version: 2.2.0_alpha10/cvs/Linux x86_64)
-rw-r--r--sci-electronics/geda-xgsch2pcb/ChangeLog10
-rw-r--r--sci-electronics/geda-xgsch2pcb/files/0.1.3-python.patch22
-rw-r--r--sci-electronics/geda-xgsch2pcb/geda-xgsch2pcb-0.1.3-r1.ebuild78
3 files changed, 108 insertions, 2 deletions
diff --git a/sci-electronics/geda-xgsch2pcb/ChangeLog b/sci-electronics/geda-xgsch2pcb/ChangeLog
index 6a72690d4b5e..b3fea83a3341 100644
--- a/sci-electronics/geda-xgsch2pcb/ChangeLog
+++ b/sci-electronics/geda-xgsch2pcb/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sci-electronics/geda-xgsch2pcb
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-electronics/geda-xgsch2pcb/ChangeLog,v 1.1 2009/11/23 06:00:47 calchan Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-electronics/geda-xgsch2pcb/ChangeLog,v 1.2 2010/12/22 08:18:36 jlec Exp $
+
+*geda-xgsch2pcb-0.1.3-r1 (22 Dec 2010)
+
+ 22 Dec 2010; Justin Lecher <jlec@gentoo.org> +files/0.1.3-python.patch,
+ +geda-xgsch2pcb-0.1.3-r1.ebuild:
+ Verify and potentially improve Python-related code, #316189
*geda-xgsch2pcb-0.1.3 (23 Nov 2009)
diff --git a/sci-electronics/geda-xgsch2pcb/files/0.1.3-python.patch b/sci-electronics/geda-xgsch2pcb/files/0.1.3-python.patch
new file mode 100644
index 000000000000..83a5bd65c794
--- /dev/null
+++ b/sci-electronics/geda-xgsch2pcb/files/0.1.3-python.patch
@@ -0,0 +1,22 @@
+diff --git a/Makefile.am b/Makefile.am
+index aa8e2d6..e313890 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -22,7 +22,7 @@ SUBDIRS = po data
+
+ bin_SCRIPTS = xgsch2pcb
+
+-pkglib_PYTHON = lib/xgsch2pcb/pcbmanager.py \
++pkgpython_PYTHON = lib/xgsch2pcb/pcbmanager.py \
+ lib/xgsch2pcb/gsch2pcbproject.py \
+ lib/xgsch2pcb/gui.py \
+ lib/xgsch2pcb/new_project_gui.py \
+@@ -53,7 +53,7 @@ templatesdir = @templatesdir@
+ do_subst = sed -e 's,[@]prefix[@],$(prefix),g' \
+ -e 's,[@]PYTHON[@],$(PYTHON),g' \
+ -e 's,[@]VERSION[@],$(VERSION),g' \
+- -e 's,[@]pkglibdir[@],$(pkglibdir),g' \
++ -e 's,[@]pkglibdir[@],$(pkgpythondir),g' \
+ -e 's,[@]templatesdir[@],$(templatesdir),g' \
+ -e 's,[@]PACKAGE[@],$(PACKAGE),g'
+
diff --git a/sci-electronics/geda-xgsch2pcb/geda-xgsch2pcb-0.1.3-r1.ebuild b/sci-electronics/geda-xgsch2pcb/geda-xgsch2pcb-0.1.3-r1.ebuild
new file mode 100644
index 000000000000..24f6d4aecb54
--- /dev/null
+++ b/sci-electronics/geda-xgsch2pcb/geda-xgsch2pcb-0.1.3-r1.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-electronics/geda-xgsch2pcb/geda-xgsch2pcb-0.1.3-r1.ebuild,v 1.1 2010/12/22 08:18:36 jlec Exp $
+
+EAPI="2"
+
+WANT_AUTOCONF="2.5"
+PYTHON_DEPEND="2"
+
+inherit autotools eutils fdo-mime gnome2-utils python
+
+DESCRIPTION="A graphical front-end for the gschem -> pcb workflow"
+HOMEPAGE="http://www.gpleda.org/tools/xgsch2pcb/index.html"
+SRC_URI="http://geda.seul.org/dist/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="gnome nls"
+
+CDEPEND="
+ >=dev-python/pygtk-2.10
+ >=dev-python/pygobject-2.10
+ dev-python/dbus-python
+ sci-electronics/pcb[dbus]
+ sci-electronics/geda
+ nls? ( virtual/libintl )"
+
+RDEPEND="
+ ${CDEPEND}
+ sci-electronics/electronics-menu
+ gnome? ( dev-python/gnome-python )"
+
+DEPEND="
+ ${CDEPEND}
+ dev-util/intltool
+ dev-lang/perl
+ nls? ( sys-devel/gettext )"
+
+pkg_setup() {
+ python_set_active_version 2
+}
+
+src_prepare(){
+ echo '#!/bin/sh' > py-compile
+ epatch "${FILESDIR}"/${PV}-python.patch
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_enable nls) \
+ --disable-update-desktop-database \
+ --disable-dependency-tracking
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dodoc README ChangeLog || die
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+ gnome2_icon_cache_update
+ python_mod_optimize $(python_get_sitedir)/${PN}
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+ gnome2_icon_cache_update
+ python_mod_cleanup $(python_get_sitedir)/${PN}
+}