blob: 39d2215c83a6ad89d4da536d82db2a4056bc68d1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Copyright 1999-2007 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.4 2007/06/28 14:09:19 hawking 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="doc examples"
DEPEND=">=app-crypt/gpgme-0.9.0
dev-lang/swig"
src_unpack() {
unpack ${A}
cd "${S}"
sed -i \
-e 's:include/:include/gpgme/:' \
-e 's:$(PYTHON):/usr/bin/python:' \
-e '/-rm doc\/\*\.html$/d' \
Makefile || die "sed in Makefile failed"
# Make it build with swig >=1.3.28
epatch "${FILESDIR}/${PN}-swig-compatibility.patch"
}
src_compile() {
PYTHON="/usr/bin/python"
emake -j1 swig || die "emake swig failed"
distutils_src_compile
}
src_install() {
distutils_src_install
use doc && dohtml -r doc/*
if use examples; then
insinto /usr/share/doc/${PF}/examples
doins examples/*
fi
}
src_test() {
env PYTHONPATH=$(echo build/lib.*) \
"${python}" examples/genkey.py || die "genkey test failed"
}
|