/[gentoo-x86]/sci-biology/lagan/lagan-2.0-r2.ebuild
Gentoo

Contents of /sci-biology/lagan/lagan-2.0-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sun Sep 12 14:20:31 2010 UTC (9 years, 5 months ago) by jlec
Branch: MAIN
CVS Tags: HEAD
Fix respect of FLAGS, 334951; do not install ELF in /usr/share, 296021

(Portage version: 2.2_rc79/cvs/Linux x86_64)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-biology/lagan/lagan-2.0-r1.ebuild,v 1.1 2009/07/21 08:12:46 weaver Exp $
4
5 EAPI="2"
6
7 inherit eutils multilib toolchain-funcs
8
9 MY_P="lagan20"
10
11 DESCRIPTION="LAGAN, Multi-LAGAN, Shuffle-LAGAN, Supermap: Whole-genome multiple alignment of genomic DNA"
12 HOMEPAGE="http://lagan.stanford.edu/lagan_web/index.shtml"
13 SRC_URI="http://lagan.stanford.edu/lagan_web/${MY_P}.tar.gz"
14
15 LICENSE="GPL-2"
16 SLOT="0"
17 IUSE=""
18 KEYWORDS="~amd64 ~x86"
19
20 S="${WORKDIR}/${MY_P}"
21
22 src_prepare() {
23 sed -i "/use Getopt::Long;/ i use lib \"/usr/$(get_libdir)/${PN}/lib\";" "${S}/supermap.pl" || die
24 # NB: Testing with glibc-2.10 has uncovered a bug in src/utils/Sequence.h where libc getline is erroneously used instead of own getline
25 sed -i 's/getline/my_getline/' "${S}"/src/{anchors.c,glocal/io.cpp} || die
26 epatch "${FILESDIR}"/${P}-*.patch
27 }
28
29 src_compile() {
30 emake \
31 CC=$(tc-getCC) \
32 CXX=$(tc-getCXX) \
33 CXXFLAGS="${CXXFLAGS}" \
34 CFLAGS="${CFLAGS}"
35 }
36
37 src_install() {
38 newbin lagan.pl lagan || die
39 newbin slagan.pl slagan || die
40 dobin mlagan || die
41 rm lagan.pl slagan.pl utils/Utils.pm
42
43 insinto /usr/$(get_libdir)/${PN}/lib
44 doins Utils.pm || die
45 exeinto /usr/$(get_libdir)/${PN}/utils
46 doexe utils/* || die
47 exeinto /usr/$(get_libdir)/${PN}
48 doexe *.pl anchors chaos glocal order prolagan || die
49 insinto /usr/$(get_libdir)/${PN}
50 doins *.txt || die
51 dosym /usr/$(get_libdir)/${PN}/supermap.pl /usr/bin/supermap
52 echo "LAGAN_DIR=\"/usr/$(get_libdir)/${PN}\"" > ${S}/99${PN}
53 doenvd "${S}/99${PN}" || die
54 dodoc Readmes/README.* || die
55 }

  ViewVC Help
Powered by ViewVC 1.1.20