diff options
author | Justin Lecher <jlec@gentoo.org> | 2014-09-20 19:39:26 +0000 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2014-09-20 19:39:26 +0000 |
commit | 4e6752efe27822bbe7b13b385fbe1b01ac6ea7f6 (patch) | |
tree | 276eb4e502f74ccd03c8ffaa39f93d3832bccb3c /sci-biology/samtools/samtools-1.0.ebuild | |
parent | sci-libs/htslib: Fix pc file prefix problems (diff) | |
download | historical-4e6752efe27822bbe7b13b385fbe1b01ac6ea7f6.tar.gz historical-4e6752efe27822bbe7b13b385fbe1b01ac6ea7f6.tar.bz2 historical-4e6752efe27822bbe7b13b385fbe1b01ac6ea7f6.zip |
sci-biology/samtools: Version Bump, #523224; drop old
Package-Manager: portage-2.2.13/cvs/Linux x86_64
Manifest-Sign-Key: 0xB9D4F231BD1558AB!
Diffstat (limited to 'sci-biology/samtools/samtools-1.0.ebuild')
-rw-r--r-- | sci-biology/samtools/samtools-1.0.ebuild | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/sci-biology/samtools/samtools-1.0.ebuild b/sci-biology/samtools/samtools-1.0.ebuild new file mode 100644 index 000000000000..ed94621021cf --- /dev/null +++ b/sci-biology/samtools/samtools-1.0.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-biology/samtools/samtools-1.0.ebuild,v 1.1 2014/09/20 19:39:21 jlec Exp $ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) + +inherit eutils multilib python-r1 toolchain-funcs + +DESCRIPTION="Utilities for SAM (Sequence Alignment/Map), a format for large nucleotide sequence alignments" +HOMEPAGE="http://www.htslib.org/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~x64-macos" +IUSE="examples" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +CDEPEND="sys-libs/ncurses" + +RDEPEND="${CDEPEND} + dev-lang/lua + dev-lang/perl + sci-libs/htslib" +DEPEND="${CDEPEND} + virtual/pkgconfig" + +src_prepare() { + find htslib-1.0 -delete || die + + sed -i 's~/software/bin/python~/usr/bin/env python~' "${S}"/misc/varfilter.py || die + + tc-export CC AR + + sed \ + -e '/htslib.mk/d' \ + -i Makefile || die + +} + +src_compile() { + local mymakeargs=( + LIBCURSES="$($(tc-getPKG_CONFIG) --libs ncurses)" + CC="$(tc-getCC)" + LDFLAGS="${LDFLAGS}" + CFLAGS="${CFLAGS}" + HTSDIR="${EPREFIX}/usr/include" + HTSLIB=$($(tc-getPKG_CONFIG) --libs htslib) + ) + emake "${mymakeargs[@]}" +} + +src_install() { + dobin samtools $(find misc -type f -executable) + + python_replicate_script "${ED}"/usr/bin/varfilter.py + + doman ${PN}.1 + dodoc AUTHORS NEWS README + + if use examples; then + insinto /usr/share/${PN} + doins -r examples + fi +} |