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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Fri Sep 4 20:06:12 2009 UTC (5 years, 5 months ago) by patrick
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +1 -1 lines
FILE REMOVED
Remove old
(Portage version: 2.2_rc40/cvs/Linux x86_64)

1 # Copyright 1999-2009 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.7.0-r1.ebuild,v 1.6 2009/01/25 15:13:04 maekke Exp $
4
5 inherit distutils eutils
6
7 DESCRIPTION="GPGME Interface for Python"
8 HOMEPAGE="http://pyme.sourceforge.net"
9 SRC_URI="mirror://sourceforge/pyme/${P}.tar.gz"
10
11 LICENSE="|| ( GPL-2 LGPL-2.1 )"
12 SLOT="0"
13 KEYWORDS="~amd64 ~ia64 ~ppc ~sparc ~x86"
14 IUSE="doc examples"
15
16 RDEPEND=">=app-crypt/gpgme-0.9.0"
17 DEPEND="${RDEPEND}
18 dev-lang/swig"
19
20 src_unpack() {
21 distutils_src_unpack
22
23 sed -i \
24 -e 's:include/:include/gpgme/:' \
25 -e 's:$(PYTHON):/usr/bin/python:' \
26 -e '/-rm doc\/\*\.html$/d' \
27 Makefile || die "sed in Makefile failed"
28
29 # Make it build with swig >=1.3.28
30 epatch "${FILESDIR}/${PN}-swig-compatibility.patch"
31 }
32
33 src_compile() {
34 PYTHON="/usr/bin/python"
35 emake -j1 swig || die "emake swig failed"
36 distutils_src_compile
37 }
38
39 src_install() {
40 distutils_src_install
41 use doc && dohtml -r doc/*
42
43 if use examples; then
44 insinto /usr/share/doc/${PF}/examples
45 doins examples/*
46 fi
47 }
48
49 src_test() {
50 env PYTHONPATH=$(echo build/lib.*) \
51 "${python}" examples/genkey.py || die "genkey test failed"
52 }

  ViewVC Help
Powered by ViewVC 1.1.20