/[gentoo-x86]/dev-python/pyme/pyme-0.8.1-r1.ebuild
Gentoo

Contents of /dev-python/pyme/pyme-0.8.1-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Oct 5 18:40:23 2013 UTC (14 months, 3 weeks ago) by mgorny
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Remove lastrited dev-python/pyme.

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-python/pyme/pyme-0.8.1-r1.ebuild,v 1.1 2012/05/18 09:25:39 aidecoe Exp $
4
5 EAPI="3"
6 PYTHON_DEPEND="2"
7 SUPPORT_PYTHON_ABIS="1"
8 RESTRICT_PYTHON_ABIS="3.* *-jython"
9
10 inherit distutils eutils
11
12 DESCRIPTION="GPGME Interface for Python"
13 HOMEPAGE="http://pyme.sourceforge.net"
14 SRC_URI="mirror://sourceforge/pyme/${P}.tar.gz"
15
16 LICENSE="|| ( GPL-2 LGPL-2.1 )"
17 SLOT="0"
18 KEYWORDS="~amd64 ~ia64 ~ppc ~sparc ~x86"
19 IUSE="examples"
20
21 RDEPEND=">=app-crypt/gpgme-0.9.0"
22 DEPEND="${RDEPEND}
23 dev-lang/swig"
24 RESTRICT="test"
25
26 PYTHON_CFLAGS=("2.* + -fno-strict-aliasing")
27
28 src_prepare() {
29 epatch "${FILESDIR}/${PV}-libgpgme11-1.2-compatibility-fix.patch"
30
31 distutils_src_prepare
32
33 sed \
34 -e 's:include/:include/gpgme/:' \
35 -e 's/SWIGOPT :=.*/& -D_FILE_OFFSET_BITS=64/' \
36 -e 's/shell python/shell $(PYTHON)/' \
37 -i Makefile || die "sed Makefile failed"
38 sed -e 's/^\(define_macros = \).*/\1[("_FILE_OFFSET_BITS=64", None)]/' -i setup.py || die "sed setup.py failed"
39 }
40
41 src_compile() {
42 emake -j1 PYTHON="$(PYTHON -f)" swig || die "emake swig failed"
43 distutils_src_compile
44 }
45
46 src_test() {
47 testing() {
48 PYTHONPATH=$(echo build-${PYTHON_ABI}/lib.*) "$(PYTHON)" examples/genkey.py
49 }
50 python_execute_function testing
51 }
52
53 src_install() {
54 distutils_src_install
55
56 if use examples; then
57 insinto /usr/share/doc/${PF}/examples
58 doins examples/*
59 fi
60 }

  ViewVC Help
Powered by ViewVC 1.1.20