diff options
author | Justin Lecher <jlec@gentoo.org> | 2010-12-22 08:18:36 +0000 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2010-12-22 08:18:36 +0000 |
commit | bb40722ae0f69a0ff03bc40d60301164879f43ab (patch) | |
tree | 9b32ba32ed7bc80c41f45d6f10d7ee79301a067e /sci-electronics/geda-xgsch2pcb | |
parent | Added missed fontforge dependency, thank Agostino Sarubbo for report in bug #... (diff) | |
download | historical-bb40722ae0f69a0ff03bc40d60301164879f43ab.tar.gz historical-bb40722ae0f69a0ff03bc40d60301164879f43ab.tar.bz2 historical-bb40722ae0f69a0ff03bc40d60301164879f43ab.zip |
Verify and potentially improve Python-related code, #316189
Package-Manager: portage-2.2.0_alpha10/cvs/Linux x86_64
Diffstat (limited to 'sci-electronics/geda-xgsch2pcb')
-rw-r--r-- | sci-electronics/geda-xgsch2pcb/ChangeLog | 10 | ||||
-rw-r--r-- | sci-electronics/geda-xgsch2pcb/Manifest | 14 | ||||
-rw-r--r-- | sci-electronics/geda-xgsch2pcb/files/0.1.3-python.patch | 22 | ||||
-rw-r--r-- | sci-electronics/geda-xgsch2pcb/geda-xgsch2pcb-0.1.3-r1.ebuild | 78 |
4 files changed, 121 insertions, 3 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/Manifest b/sci-electronics/geda-xgsch2pcb/Manifest index 12d17ddf1f3c..170929aba3cd 100644 --- a/sci-electronics/geda-xgsch2pcb/Manifest +++ b/sci-electronics/geda-xgsch2pcb/Manifest @@ -1,4 +1,16 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +AUX 0.1.3-python.patch 763 RMD160 b78cc893d4c030eaefb8d0e955c3adcf8dafab5c SHA1 32b2252a738c61f32ae63bc9a31415646f00e511 SHA256 0f5ffa0567f6ab2ea918462ecee9f98fd61438baaf840f6109f230d549bfebbe DIST geda-xgsch2pcb-0.1.3.tar.gz 160225 RMD160 47dbe98c5ec82995dfc477591d666a1692f90efb SHA1 5bddd5973c2ecf8c43e03ee3f9484de44f649572 SHA256 dec4201fca0579eb296260ff4edb9088855740995acd0b163319b1b2e0e7e471 +EBUILD geda-xgsch2pcb-0.1.3-r1.ebuild 1670 RMD160 e61e8f2027a24b28551806ccdd3ad26f9d616cda SHA1 06d70fc3f93fccaee181f34e73119eab6a8f68ed SHA256 c7090270ac715225392febacbebddb2ca08fbe453cf5c5946b58510976deef46 EBUILD geda-xgsch2pcb-0.1.3.ebuild 1436 RMD160 9a285d8d0ffb218babacba1afc7effcd7c229ae1 SHA1 71f269be4d3cbb980bedcb37fd540c9d4a2b65cf SHA256 62a727f968110a7b9282d8cfd5360c0cafc541ff3f33c5f6a8e2e3e12f37838f -MISC ChangeLog 434 RMD160 4153b32266c5b85c7993fab74459d34f78346455 SHA1 edb6ddcd98c138c2af104d4f9755cc683df6884c SHA256 0ce6129f681e59262e4a4191d9e914792b4f18fd72fe3d97529660c1337bc84b +MISC ChangeLog 643 RMD160 b4001992335d62a3a3ba16fad9f4104b39739b85 SHA1 32dd3ff3d2d4caee88d7627056447cd1eae5dba3 SHA256 cb6b9f468adc6217046afbce9a6a3c6c00e26291ab79e94468eda9fa0323f45d MISC metadata.xml 572 RMD160 8d7d7a2c0e01385b1facc72333a6500859ad69d1 SHA1 28de32a0d87f9aaf644fe095ca6e864eeb6d5d56 SHA256 853ac836cf1e59bf6eb991cc788968a20176e200ece8e1196f47cc1714d2a15c +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.16 (GNU/Linux) + +iEYEARECAAYFAk0RtGIACgkQgAnW8HDreRZchACfYpHzsk4hp/reBnVaAvwVgH8g +VdwAn1KOY1unQe39LfSRKE7YdxZuievF +=JaA/ +-----END PGP SIGNATURE----- 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} +} |