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.4-r1.ebuild vienna-rna-1.7.2.ebuild vienna-rna-1.8.3.ebuild
Date: Fri, 25 Jun 2010 09:22:39
Message-Id: 20100625092236.CAF972CF5D@corvid.gentoo.org
1 jlec 10/06/25 09:22:36
2
3 Modified: ChangeLog
4 Added: vienna-rna-1.8.4-r1.ebuild
5 Removed: vienna-rna-1.7.2.ebuild vienna-rna-1.8.3.ebuild
6 Log:
7 Install ELFs in correct place, #300012
8 (Portage version: 2.2_rc67/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.31 sci-biology/vienna-rna/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-biology/vienna-rna/ChangeLog?rev=1.31&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-biology/vienna-rna/ChangeLog?rev=1.31&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-biology/vienna-rna/ChangeLog?r1=1.30&r2=1.31
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sci-biology/vienna-rna/ChangeLog,v
20 retrieving revision 1.30
21 retrieving revision 1.31
22 diff -u -r1.30 -r1.31
23 --- ChangeLog 3 Apr 2010 21:41:51 -0000 1.30
24 +++ ChangeLog 25 Jun 2010 09:22:36 -0000 1.31
25 @@ -1,6 +1,13 @@
26 # ChangeLog for sci-biology/vienna-rna
27 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sci-biology/vienna-rna/ChangeLog,v 1.30 2010/04/03 21:41:51 jlec Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sci-biology/vienna-rna/ChangeLog,v 1.31 2010/06/25 09:22:36 jlec Exp $
30 +
31 +*vienna-rna-1.8.4-r1 (25 Jun 2010)
32 +
33 + 25 Jun 2010; Justin Lecher <jlec@g.o> -vienna-rna-1.7.2.ebuild,
34 + -vienna-rna-1.8.3.ebuild, +vienna-rna-1.8.4-r1.ebuild,
35 + +files/vienna-rna-1.8.4-bindir.patch:
36 + Install ELFs in correct place, #300012
37
38 03 Apr 2010; Justin Lecher <jlec@g.o> vienna-rna-1.8.4.ebuild,
39 +files/vienna-rna-1.8.4-jobserver-fix.patch:
40
41
42
43 1.1 sci-biology/vienna-rna/vienna-rna-1.8.4-r1.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-biology/vienna-rna/vienna-rna-1.8.4-r1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-biology/vienna-rna/vienna-rna-1.8.4-r1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: vienna-rna-1.8.4-r1.ebuild
49 ===================================================================
50 # Copyright 1999-2010 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/sci-biology/vienna-rna/vienna-rna-1.8.4-r1.ebuild,v 1.1 2010/06/25 09:22:36 jlec Exp $
53
54 EAPI="2"
55
56 inherit toolchain-funcs multilib autotools perl-module
57
58 DESCRIPTION="The Vienna RNA Package - RNA secondary structure prediction and comparison"
59 LICENSE="vienna-rna"
60 HOMEPAGE="http://www.tbi.univie.ac.at/~ivo/RNA"
61 SRC_URI="http://www.tbi.univie.ac.at/~ivo/RNA/ViennaRNA-${PV}.tar.gz"
62
63 SLOT="0"
64 IUSE=""
65 KEYWORDS="~amd64 ~ppc ~x86"
66
67 DEPEND="dev-lang/perl
68 media-libs/gd"
69 RDEPEND="${DEPEND}"
70
71 S="${WORKDIR}/ViennaRNA-${PV}"
72
73 PATCHES=(
74 "${FILESDIR}"/${PN}-1.6.5-c-fixes.patch
75 "${FILESDIR}"/${PN}-1.7.2-LDFLAGS.patch
76 "${FILESDIR}"/${PN}-1.8.3-gcc4.3.patch
77 "${FILESDIR}"/${PN}-1.8.3-disable-gd.patch
78 "${FILESDIR}"/${P}-jobserver-fix.patch
79 "${FILESDIR}"/${P}-bindir.patch
80 )
81
82 src_prepare() {
83 base_src_prepare
84 sed -i 's/ getline/ v_getline/' Readseq/ureadseq.c || die
85 sed -i '1 i #include <cstdio>' RNAforester/src/rnafuncs.cpp || die
86
87 eautoreconf
88 (cd RNAforester; eautoreconf)
89 }
90
91 src_configure() {
92 econf --with-cluster || die "Configuration failed."
93 sed -e "s:LIBDIR = /usr/lib:LIBDIR = ${D}/usr/$(get_libdir):" \
94 -e "s:INCDIR = /usr/include:INCDIR = ${D}/usr/include:" \
95 -i RNAforester/g2-0.70/Makefile \
96 || die "Failed patching RNAForester build system."
97 sed -e "s:CC=cc:CC=$(tc-getCC):" -e "s:CFLAGS=:CFLAGS=${CFLAGS}:" \
98 -i Readseq/Makefile || die "Failed patching readseq Makefile."
99 }
100
101 src_compile() {
102 emake clean || die
103 emake || die "Compilation failed."
104 emake -C Readseq || die "Failed to compile readseq."
105 # TODO: Add (optional?) support for the NCBI toolkit.
106 }
107
108 src_test() {
109 cd "${S}"/Perl && emake check || die "Perl tests failed"
110 cd "${S}"/Readseq && emake test || die "Readseq tests failed"
111 }
112
113 src_install() {
114 make install DESTDIR="${D}" || die "Installation failed."
115 dodoc AUTHORS ChangeLog NEWS README THANKS \
116 || die "Failed to install documentation."
117 newbin Readseq/readseq readseq-vienna \
118 || die "Installing readseq failed."
119 dodoc Readseq/Readseq.help || die \
120 "Readseq Documentation installation failed."
121 newdoc Readseq/Readme README.readseq && \
122 newdoc Readseq/Formats Formats.readseq \
123 || die "Installing readseq Readme failed."
124
125 # remove perlocal.pod to avoid file collisions (see #240358)
126 fixlocalpod || die "Failed to remove perlocal.pod"
127 }