blob: 8f8b0b3c07ad96076bf8b5f12cbcefe05707a77e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit java-pkg-2 java-ant-2
DESCRIPTION="Short read aligner, K-mer-based error-correct and normalize, FASTA/Q tool"
HOMEPAGE="http://sourceforge.net/projects/bbmap/"
SRC_URI="http://sourceforge.net/projects/bbmap/files/BBMap_"${PV}".tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""
DEPEND="
sys-cluster/openmpi[java]
>=virtual/jdk-1.7:*
dev-java/ant-core"
RDEPEND="${DEPEND}
>=virtual/jre-1.7:*"
S="${WORKDIR}"/bbmap
src_prepare(){
# fix the line in build.xml to point to mpi.jar location
# <property name="mpijar" location="/tmp/mpi.jar" ></property>
# see bug #542700
sed -e 's#/usr/common/usg/hpc/openmpi/gnu4.6/sge/1.8.1/ib_2.1-1.0.0/lib/mpi.jar#/usr/share/openmpi/lib/mpi.jar#' -i build.xml
sed -e 's#compiler="${jcompiler}" ##' -i build.xml
}
src_compile(){
ant dist || die
}
src_install(){
dobin *.sh
dodoc docs/readme.txt
java-pkg_dojar dist/lib/BBTools.jar
}
|