diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /sci-biology/bowtie/bowtie-2.2.9.ebuild |
reinit the tree, so we can have metadata
Diffstat (limited to 'sci-biology/bowtie/bowtie-2.2.9.ebuild')
-rw-r--r-- | sci-biology/bowtie/bowtie-2.2.9.ebuild | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/sci-biology/bowtie/bowtie-2.2.9.ebuild b/sci-biology/bowtie/bowtie-2.2.9.ebuild new file mode 100644 index 000000000000..0bacb8ca25d7 --- /dev/null +++ b/sci-biology/bowtie/bowtie-2.2.9.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit toolchain-funcs + +DESCRIPTION="Popular short read aligner for Next-generation sequencing data" +HOMEPAGE="http://bowtie-bio.sourceforge.net/bowtie2/" +SRC_URI="mirror://sourceforge/project/${PN}-bio/${PN}2/${PV}/${PN}2-${PV}-source.zip" + +LICENSE="GPL-3" +SLOT="2" +KEYWORDS="~amd64 ~x86" + +IUSE="examples cpu_flags_x86_sse2 +tbb" + +RDEPEND="dev-lang/perl + tbb? ( dev-cpp/tbb )" +DEPEND="${RDEPEND} + app-arch/unzip" + +S="${WORKDIR}/${PN}2-${PV}" + +DOCS=( AUTHORS NEWS TUTORIAL ) +HTML_DOCS=( doc/{manual.html,style.css} ) +PATCHES=( "${FILESDIR}/${PN}-2.2.9-fix-c++14.patch" ) + +pkg_pretend() { + if ! use cpu_flags_x86_sse2 ; then + eerror "This package requires a CPU supporting the SSE2 instruction set." + die "SSE2 support missing" + fi +} + +src_compile() { + emake \ + CC="$(tc-getCC)" \ + CPP="$(tc-getCXX)" \ + CXX="$(tc-getCXX)" \ + CFLAGS="" \ + CXXFLAGS="" \ + EXTRA_FLAGS="${LDFLAGS}" \ + RELEASE_FLAGS="${CXXFLAGS} -msse2" \ + WITH_TBB="$(usex tbb 1 0)" +} + +src_install() { + dobin ${PN}2 ${PN}2-* + + exeinto /usr/libexec/${PN}2 + doexe scripts/* + + newman MANUAL ${PN}2.1 + einstalldocs + + if use examples; then + insinto /usr/share/${PN}2 + doins -r example + fi +} |