aboutsummaryrefslogtreecommitdiff
blob: 8ea8a7633835c53698a6bf2c3e48e7f74c108ece (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
44
45
46
47
48
49
50
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=5

DESCRIPTION="Simple index/database for huge amounts of small files"
HOMEPAGE="http://www.splashground.de/~andy/programs/FFindex"
#SRC_URI="http://downloads.sourceforge.net/project/transdecoder/TransDecoder_r20140704.tar.gz"
SRC_URI="http://www.splashground.de/~andy/programs/FFindex/${P}.tar.gz"

LICENSE="CC-BY-3.0"
SLOT="0"
KEYWORDS="~amd64"
IUSE="mpi"

DEPEND="mpi? ( virtual/mpi )"
RDEPEND="${DEPEND}"

#S="${WORKDIR}"/TransDecoder_r20140704/3rd_party/ffindex-0.9.9.3

src_compile(){
	if use mpi; then
		emake HAVE_MPI=1
	else
		emake
	fi
}

src_install(){
	dodoc README
	cd src || die
	dobin ffindex_apply ffindex_unpack ffindex_modify ffindex_get ffindex_from_fasta ffindex_build
	if use mpi; then
		dobin ffindex_apply_mpi
	fi

	#  * QA Notice: The following files contain writable and executable sections
	#  *  Files with such sections will not work properly (or at all!) on some
	#  *  architectures/operating systems.  A bug should be filed at
	#  *  http://bugs.gentoo.org/ to make sure the issue is fixed.
	#  *  For more information, see http://hardened.gentoo.org/gnu-stack.xml
	#  *  Please include the following list of files in your report:
	#  *  Note: Bugs should be filed for the respective maintainers
	#  *  of the package in question and not hardened@g.o.
	#  * RWX --- --- usr/lib64/libffindex.so.0.1
	#
	dolib libffindex.so.0.1 libffindex.so

	# make install INSTALL_DIR="${DESTDIR}" HAVE_MPI=1
}