/[gentoo-x86]/sci-biology/samtools/samtools-0.1.18.ebuild
Gentoo

Contents of /sci-biology/samtools/samtools-0.1.18.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Mon Sep 26 15:18:39 2011 UTC (2 years, 9 months ago) by weaver
Branch: MAIN
Version bump

(Portage version: 2.2.0_alpha45/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-biology/samtools/samtools-0.1.17.ebuild,v 1.1 2011/07/18 01:50:51 jlec Exp $
4
5 EAPI=4
6
7 inherit multilib toolchain-funcs
8
9 DESCRIPTION="Utilities for SAM (Sequence Alignment/Map), a format for large nucleotide sequence alignments"
10 HOMEPAGE="http://samtools.sourceforge.net/"
11 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
12
13 LICENSE="MIT"
14 SLOT="0"
15 IUSE="examples"
16 KEYWORDS="~amd64 ~x86 ~x64-macos"
17
18 src_prepare() {
19 sed \
20 -e '/^CFLAGS=/d' \
21 -e "s/\$(CC) \$(CFLAGS)/& \$(LDFLAGS)/g" \
22 -e "s/-shared/& \$(LDFLAGS)/" \
23 -i "${S}"/{Makefile,misc/Makefile} || die #358563
24 sed -i 's~/software/bin/python~/usr/bin/env python~' "${S}"/misc/varfilter.py || die
25 }
26
27 src_compile() {
28 emake CC="$(tc-getCC)" dylib || die
29 emake CC="$(tc-getCC)" || die
30 }
31
32 src_install() {
33 dobin samtools $(find misc -type f -executable)
34
35 dolib.so libbam.so.1
36 dosym libbam.so.1 /usr/$(get_libdir)/libbam.so
37
38 insinto /usr/include/bam
39 doins bam.h bgzf.h faidx.h kaln.h khash.h kprobaln.h kseq.h ksort.h sam.h
40
41 doman ${PN}.1
42 dodoc AUTHORS ChangeLog NEWS
43
44 if use examples; then
45 insinto /usr/share/${PN}
46 doins -r examples
47 fi
48 }

  ViewVC Help
Powered by ViewVC 1.1.20