Gentoo Archives: gentoo-commits

From: "Justin Lecher (jlec)" <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-biology/vienna-rna: ChangeLog vienna-rna-1.8.5.ebuild
Date: Tue, 03 May 2011 11:10:50
Message-Id: 20110503111040.5232920057@flycatcher.gentoo.org
1 jlec 11/05/03 11:10:40
2
3 Modified: ChangeLog vienna-rna-1.8.5.ebuild
4 Log:
5 Added python support, #365793
6
7 (Portage version: 2.2.0_alpha30/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.37 sci-biology/vienna-rna/ChangeLog
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-biology/vienna-rna/ChangeLog?rev=1.37&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-biology/vienna-rna/ChangeLog?rev=1.37&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-biology/vienna-rna/ChangeLog?r1=1.36&r2=1.37
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sci-biology/vienna-rna/ChangeLog,v
19 retrieving revision 1.36
20 retrieving revision 1.37
21 diff -u -r1.36 -r1.37
22 --- ChangeLog 20 Mar 2011 20:32:09 -0000 1.36
23 +++ ChangeLog 3 May 2011 11:10:40 -0000 1.37
24 @@ -1,6 +1,10 @@
25 # ChangeLog for sci-biology/vienna-rna
26 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/sci-biology/vienna-rna/ChangeLog,v 1.36 2011/03/20 20:32:09 jlec Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sci-biology/vienna-rna/ChangeLog,v 1.37 2011/05/03 11:10:40 jlec Exp $
29 +
30 + 03 May 2011; Justin Lecher <jlec@g.o> vienna-rna-1.8.5.ebuild,
31 + +files/vienna-rna-1.8.5-setup.py:
32 + Added python support, #365793
33
34 20 Mar 2011; Justin Lecher <jlec@g.o> vienna-rna-1.8.4-r1.ebuild,
35 vienna-rna-1.8.4-r2.ebuild, vienna-rna-1.8.5.ebuild:
36
37
38
39 1.3 sci-biology/vienna-rna/vienna-rna-1.8.5.ebuild
40
41 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-biology/vienna-rna/vienna-rna-1.8.5.ebuild?rev=1.3&view=markup
42 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-biology/vienna-rna/vienna-rna-1.8.5.ebuild?rev=1.3&content-type=text/plain
43 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-biology/vienna-rna/vienna-rna-1.8.5.ebuild?r1=1.2&r2=1.3
44
45 Index: vienna-rna-1.8.5.ebuild
46 ===================================================================
47 RCS file: /var/cvsroot/gentoo-x86/sci-biology/vienna-rna/vienna-rna-1.8.5.ebuild,v
48 retrieving revision 1.2
49 retrieving revision 1.3
50 diff -u -r1.2 -r1.3
51 --- vienna-rna-1.8.5.ebuild 20 Mar 2011 20:32:09 -0000 1.2
52 +++ vienna-rna-1.8.5.ebuild 3 May 2011 11:10:40 -0000 1.3
53 @@ -1,10 +1,13 @@
54 # Copyright 1999-2011 Gentoo Foundation
55 # Distributed under the terms of the GNU General Public License v2
56 -# $Header: /var/cvsroot/gentoo-x86/sci-biology/vienna-rna/vienna-rna-1.8.5.ebuild,v 1.2 2011/03/20 20:32:09 jlec Exp $
57 +# $Header: /var/cvsroot/gentoo-x86/sci-biology/vienna-rna/vienna-rna-1.8.5.ebuild,v 1.3 2011/05/03 11:10:40 jlec Exp $
58
59 -EAPI="2"
60 +EAPI="3"
61
62 -inherit toolchain-funcs multilib autotools perl-module
63 +PYTHON_DEPEND="python? 2"
64 +SUPPORT_PYTHON_ABIS="1"
65 +
66 +inherit distutils toolchain-funcs multilib autotools perl-module
67
68 DESCRIPTION="RNA secondary structure prediction and comparison"
69 HOMEPAGE="http://www.tbi.univie.ac.at/~ivo/RNA/"
70 @@ -12,7 +15,7 @@
71
72 LICENSE="vienna-rna"
73 SLOT="0"
74 -IUSE=""
75 +IUSE="python"
76 KEYWORDS="~amd64 ~ppc ~x86"
77
78 DEPEND="
79 @@ -40,6 +43,7 @@
80
81 eautoreconf
82 cd RNAforester && eautoreconf
83 + use python && cp "${FILESDIR}"/${P}-setup.py "${S}"/setup.py
84 }
85
86 src_configure() {
87 @@ -57,6 +61,14 @@
88 emake || die
89 emake -C Readseq || die "Failed to compile readseq."
90 # TODO: Add (optional?) support for the NCBI toolkit.
91 + if use python; then
92 + pushd Perl > /dev/null
93 + mv RNA_wrap.c{,-perl}
94 + swig -python RNA.i
95 + popd > /dev/null
96 + distutils_src_compile
97 + mv Perl/RNA_wrap.c{-perl,}
98 + fi
99 }
100
101 src_test() {
102 @@ -74,4 +86,5 @@
103
104 # remove perlocal.pod to avoid file collisions (see #240358)
105 fixlocalpod || die "Failed to remove perlocal.pod"
106 + use python && distutils_src_install
107 }