diff options
author | Mike Gilbert <floppym@gentoo.org> | 2016-01-23 15:44:58 -0500 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2016-01-23 15:45:48 -0500 |
commit | 87d3807c0eb2627c541493c5d6657677572dfed6 (patch) | |
tree | 41696e66ec2634914d1cb10e80cae7c80f185744 /dev-python | |
parent | www-client/dwb: remove old (diff) | |
download | gentoo-87d3807c0eb2627c541493c5d6657677572dfed6.tar.gz gentoo-87d3807c0eb2627c541493c5d6657677572dfed6.tar.bz2 gentoo-87d3807c0eb2627c541493c5d6657677572dfed6.zip |
dev-python/pygpgme: Cleanup src_prepare
The sed for tests is pointless since we don't run the tests.
The sed for gpgme.h is better handled by calling gpgme-config.
Package-Manager: portage-2.2.27_p49
Diffstat (limited to 'dev-python')
-rw-r--r-- | dev-python/pygpgme/pygpgme-0.3-r1.ebuild | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/dev-python/pygpgme/pygpgme-0.3-r1.ebuild b/dev-python/pygpgme/pygpgme-0.3-r1.ebuild index 8510bb2e4865..21d2f54559cd 100644 --- a/dev-python/pygpgme/pygpgme-0.3-r1.ebuild +++ b/dev-python/pygpgme/pygpgme-0.3-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2015 Gentoo Foundation +# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ @@ -6,7 +6,7 @@ EAPI=5 PYTHON_COMPAT=( python{2_7,3_3,3_4} ) -inherit distutils-r1 +inherit distutils-r1 flag-o-matic DESCRIPTION="A Python wrapper for the GPGME library" HOMEPAGE="https://launchpad.net/pygpgme" @@ -20,14 +20,6 @@ IUSE="" DEPEND="app-crypt/gpgme" RDEPEND="${DEPEND}" -python_prepare_all() { - sed \ - -e 's/#include <gpgme\.h>/#include <gpgme\/gpgme\.h>/' \ - -i "${S}/src/pygpgme.h" || die - sed \ - -e 's/suite.addTest(tests.test_sign_verify.test_suite())/#\0/' \ - -e 's/suite.addTest(tests.test_encrypt_decrypt.test_suite())/#\0/' \ - -e 's/suite.addTest(tests.test_passphrase.test_suite())/#\0/' \ - -i "${S}/tests/__init__.py" || die - distutils-r1_python_prepare_all +python_configure_all() { + append-cflags $(gpgme-config --cflags) } |