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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Sat Oct 5 18:40:23 2013 UTC (14 months, 2 weeks ago) by mgorny
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +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.ebuild,v 1.7 2012/02/24 03:26:19 patrick 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 distutils_src_prepare
30
31 sed \
32 -e 's:include/:include/gpgme/:' \
33 -e 's/SWIGOPT :=.*/& -D_FILE_OFFSET_BITS=64/' \
34 -e 's/shell python/shell $(PYTHON)/' \
35 -i Makefile || die "sed Makefile failed"
36 sed -e 's/^\(define_macros = \).*/\1[("_FILE_OFFSET_BITS=64", None)]/' -i setup.py || die "sed setup.py failed"
37 }
38
39 src_compile() {
40 emake -j1 PYTHON="$(PYTHON -f)" swig || die "emake swig failed"
41 distutils_src_compile
42 }
43
44 src_test() {
45 testing() {
46 PYTHONPATH=$(echo build-${PYTHON_ABI}/lib.*) "$(PYTHON)" examples/genkey.py
47 }
48 python_execute_function testing
49 }
50
51 src_install() {
52 distutils_src_install
53
54 if use examples; then
55 insinto /usr/share/doc/${PF}/examples
56 doins examples/*
57 fi
58 }

  ViewVC Help
Powered by ViewVC 1.1.20