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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Sat Oct 2 13:31:02 2010 UTC (4 years, 5 months ago) by arfrever
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
Delete older ebuild.

(Portage version: 2.2_rc88_p65/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.6.0-r1.ebuild,v 1.4 2009/08/15 16:21:31 arfrever Exp $
4
5 inherit distutils eutils flag-o-matic
6
7 DESCRIPTION="GPGME Interface for Python"
8 HOMEPAGE="http://pyme.sourceforge.net/"
9 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="x86 ~sparc ppc"
14 IUSE="doc examples"
15
16 RDEPEND=">=app-crypt/gpgme-0.9.0"
17 DEPEND="${RDEPEND}
18 dev-lang/swig"
19
20 pkg_setup() {
21 append-flags -D_FILE_OFFSET_BITS=64
22 }
23
24 src_unpack() {
25 distutils_src_unpack
26
27 sed -i \
28 -e 's:include/:include/gpgme/:' \
29 -e 's/SWIGOPT :=.*/& -D_FILE_OFFSET_BITS=64/' \
30 -e 's:$(PYTHON):/usr/bin/python:' \
31 -e '/-rm doc\/\*\.html$/d' \
32 Makefile || die "sed in Makefile failed"
33
34 # Make it build with swig >=1.3.28
35 # patch is originally written for 0.7.0 but works for this
36 # version as well.
37 epatch "${FILESDIR}/${PN}-swig-compatibility.patch"
38 }
39
40 src_compile() {
41 emake -j1 swig || die "emake swig failed"
42 distutils_src_compile
43
44 if use doc; then
45 emake docs || die "emake docs failed"
46 fi
47 }
48
49 src_install() {
50 distutils_src_install
51 use doc && dohtml -r doc/*
52
53 if use examples; then
54 insinto /usr/share/doc/${PF}/examples
55 doins examples/*
56 fi
57 }
58
59 src_test() {
60 PYTHONPATH="$(ls -d build/lib.*)" \
61 ${python} examples/genkey.py || die "genkey test failed"
62 }

  ViewVC Help
Powered by ViewVC 1.1.20