summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarien Zwart <marienz@gentoo.org>2006-09-26 12:52:51 +0000
committerMarien Zwart <marienz@gentoo.org>2006-09-26 12:52:51 +0000
commit29b1e00a668c34e1dd468c03e274c070319607e8 (patch)
treead5369bf919e8a623a48685b0e15628d9449e220 /dev-python/pyme
parentadd net-proxy/sshproxy:client-only (diff)
downloadgentoo-2-29b1e00a668c34e1dd468c03e274c070319607e8.tar.gz
gentoo-2-29b1e00a668c34e1dd468c03e274c070319607e8.tar.bz2
gentoo-2-29b1e00a668c34e1dd468c03e274c070319607e8.zip
Make pyme build with recent versions of swig. Closes bug #144020, thanks to genone for reporting.
(Portage version: 2.1.2_pre1-r2)
Diffstat (limited to 'dev-python/pyme')
-rw-r--r--dev-python/pyme/ChangeLog9
-rw-r--r--dev-python/pyme/files/digest-pyme-0.7.0-r13
-rw-r--r--dev-python/pyme/files/pyme-0.7.0-swig-compatibility.patch10
-rw-r--r--dev-python/pyme/pyme-0.7.0-r1.ebuild43
4 files changed, 64 insertions, 1 deletions
diff --git a/dev-python/pyme/ChangeLog b/dev-python/pyme/ChangeLog
index 97295bb6d215..52c76ec49f55 100644
--- a/dev-python/pyme/ChangeLog
+++ b/dev-python/pyme/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for dev-python/pyme
# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/pyme/ChangeLog,v 1.14 2006/04/27 19:12:32 marienz Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pyme/ChangeLog,v 1.15 2006/09/26 12:52:51 marienz Exp $
+
+*pyme-0.7.0-r1 (26 Sep 2006)
+
+ 26 Sep 2006; Marien Zwart <marienz@gentoo.org>
+ +files/pyme-0.7.0-swig-compatibility.patch, +pyme-0.7.0-r1.ebuild:
+ Make pyme build with recent versions of swig. Closes bug #144020, thanks to
+ genone for reporting.
27 Apr 2006; Marien Zwart <marienz@gentoo.org> files/digest-pyme-0.5.1,
files/digest-pyme-0.6.0, files/digest-pyme-0.7.0, Manifest:
diff --git a/dev-python/pyme/files/digest-pyme-0.7.0-r1 b/dev-python/pyme/files/digest-pyme-0.7.0-r1
new file mode 100644
index 000000000000..14783c9f6e84
--- /dev/null
+++ b/dev-python/pyme/files/digest-pyme-0.7.0-r1
@@ -0,0 +1,3 @@
+MD5 94ec22f7f4babc5b1e9f0af8d73f05e0 pyme-0.7.0.tar.gz 73550
+RMD160 4805a9c6a50cd683f9b4a9d692779b1b2f698f14 pyme-0.7.0.tar.gz 73550
+SHA256 4708f4408190b7cf9c36f1521e1ebf2588084e9a6e6ec76a87ef39faaf3fe9b6 pyme-0.7.0.tar.gz 73550
diff --git a/dev-python/pyme/files/pyme-0.7.0-swig-compatibility.patch b/dev-python/pyme/files/pyme-0.7.0-swig-compatibility.patch
new file mode 100644
index 000000000000..41163ce4e8f3
--- /dev/null
+++ b/dev-python/pyme/files/pyme-0.7.0-swig-compatibility.patch
@@ -0,0 +1,10 @@
+--- gpgme.i.old 2006-04-12 14:08:14.000000000 -0400
++++ gpgme.i 2006-04-12 13:46:23.000000000 -0400
+@@ -35,6 +35,7 @@
+ return NULL;
+ }
+ }
++%typemap(freearg) const char * "";
+
+ // Release returned buffers as necessary.
+ %typemap(newfree) char * "free($1);";
diff --git a/dev-python/pyme/pyme-0.7.0-r1.ebuild b/dev-python/pyme/pyme-0.7.0-r1.ebuild
new file mode 100644
index 000000000000..09f0868f30ba
--- /dev/null
+++ b/dev-python/pyme/pyme-0.7.0-r1.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pyme/pyme-0.7.0-r1.ebuild,v 1.1 2006/09/26 12:52:51 marienz Exp $
+
+inherit distutils eutils
+
+DESCRIPTION="GPGME Interface for Python"
+HOMEPAGE="http://pyme.sourceforge.net"
+SRC_URI="mirror://sourceforge/pyme/${P}.tar.gz"
+
+LICENSE="|| ( GPL-2 LGPL-2.1 )"
+SLOT="0"
+KEYWORDS="~ia64 ~ppc ~sparc ~x86"
+IUSE=""
+
+DEPEND=">=app-crypt/gpgme-0.9.0"
+
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ sed -i -e 's:include/:include/gpgme/:;s:$(PYTHON):/usr/bin/python:' Makefile
+ # Make it build with swig >=1.3.28
+ epatch "${FILESDIR}/${P}-swig-compatibility.patch"
+}
+
+src_compile() {
+ PYTHON="/usr/bin/python"
+ emake swig
+ distutils_src_compile
+}
+
+src_install() {
+ mydoc="examples/*"
+ distutils_src_install
+ dohtml -r doc/*
+}
+
+src_test() {
+ env PYTHONPATH=$(echo build/lib.*) \
+ "${python}" examples/genkey.py || die "genkey test failed"
+}