diff options
author | Justin Lecher <jlec@gentoo.org> | 2013-03-29 17:29:49 +0000 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2013-03-29 17:29:49 +0000 |
commit | a8bb4c2d7ff06dfb0ff43b3810af5cc384cc7201 (patch) | |
tree | 79696aa89f03d9d5e524349006b0295608965155 | |
parent | Add first version without java support. Needs work. (diff) | |
download | gentoo-2-a8bb4c2d7ff06dfb0ff43b3810af5cc384cc7201.tar.gz gentoo-2-a8bb4c2d7ff06dfb0ff43b3810af5cc384cc7201.tar.bz2 gentoo-2-a8bb4c2d7ff06dfb0ff43b3810af5cc384cc7201.zip |
sci-biology/samtools: Install bcftools and vcfutils.pl pointed out by mahnmut
(Portage version: 2.2.0_alpha169/cvs/Linux x86_64, signed Manifest commit with key 8009D6F070EB7916)
-rw-r--r-- | sci-biology/samtools/ChangeLog | 7 | ||||
-rw-r--r-- | sci-biology/samtools/samtools-0.1.18-r3.ebuild | 56 |
2 files changed, 62 insertions, 1 deletions
diff --git a/sci-biology/samtools/ChangeLog b/sci-biology/samtools/ChangeLog index 239b011da57c..444e7cb5b803 100644 --- a/sci-biology/samtools/ChangeLog +++ b/sci-biology/samtools/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sci-biology/samtools # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-biology/samtools/ChangeLog,v 1.11 2013/03/11 16:56:12 jlec Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-biology/samtools/ChangeLog,v 1.12 2013/03/29 17:29:49 jlec Exp $ + +*samtools-0.1.18-r3 (29 Mar 2013) + + 29 Mar 2013; Justin Lecher <jlec@gentoo.org> +samtools-0.1.18-r3.ebuild: + Install bcftools and vcfutils.pl pointed out by mahnmut 11 Mar 2013; Justin Lecher <jlec@gentoo.org> metadata.xml: Drop Andrey as maintainer so that bugs get assigned to sci-biology directly diff --git a/sci-biology/samtools/samtools-0.1.18-r3.ebuild b/sci-biology/samtools/samtools-0.1.18-r3.ebuild new file mode 100644 index 000000000000..3c4c954309dc --- /dev/null +++ b/sci-biology/samtools/samtools-0.1.18-r3.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-biology/samtools/samtools-0.1.18-r3.ebuild,v 1.1 2013/03/29 17:29:49 jlec Exp $ + +EAPI=5 + +inherit multilib toolchain-funcs + +DESCRIPTION="Utilities for SAM (Sequence Alignment/Map), a format for large nucleotide sequence alignments" +HOMEPAGE="http://samtools.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" + +LICENSE="MIT" +SLOT="0" +IUSE="examples" +KEYWORDS="~amd64 ~x86 ~x64-macos" + +RDEPEND="sys-libs/ncurses" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +src_prepare() { + sed \ + -e '/^CC/s:=:?=:g' \ + -e "/^LIBCURSES/s:=.*$:= $(pkg-config --libs ncurses):g" \ + -e '/^CFLAGS=/s:=:?=:' \ + -e "s/\$(CC) \$(CFLAGS)/& \$(LDFLAGS)/g" \ + -e "s/-shared/& \$(LDFLAGS)/" \ + -i "${S}"/{bcftools,misc,}/Makefile || die #358563 + sed -i 's~/software/bin/python~/usr/bin/env python~' "${S}"/misc/varfilter.py || die + + tc-export CC +} + +src_compile() { + emake dylib + emake +} + +src_install() { + dobin samtools $(find bcftools misc -type f -executable) + + dolib.so libbam.so.1 + dosym libbam.so.1 /usr/$(get_libdir)/libbam.so + + insinto /usr/include/bam + doins bam.h bgzf.h faidx.h kaln.h khash.h kprobaln.h kseq.h ksort.h sam.h + + doman ${PN}.1 + dodoc AUTHORS ChangeLog NEWS + + if use examples; then + insinto /usr/share/${PN} + doins -r examples + fi +} |