blob: 054f2a6078cbba1a04c6522ecb822553c8705557 (
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-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-biology/gibbs/gibbs-1995.9.ebuild,v 1.3 2009/09/30 14:40:39 weaver Exp $
DESCRIPTION="The Gibbs Motif Sampler identifies motifs, conserved regions, in DNA or protein sequences"
HOMEPAGE="http://www.people.fas.harvard.edu/~junliu/index1.html"
SRC_NAME="gibbs9_95" # 9_95 refers to the september 1995 version
SRC_URI="http://www.fas.harvard.edu/~junliu/Software/${SRC_NAME}.tar"
LICENSE="public-domain"
SLOT="0"
KEYWORDS=""
IUSE=""
S="${WORKDIR}"/${SRC_NAME}/code
src_compile() {
LIBS="-lm" make -e || die
}
src_install() {
cd "${WORKDIR}"/${SRC_NAME}
dobin gibbs purge scan
dobin "${FILESDIR}"/gibbs-demo
dodoc README
insinto /usr/share/${PN}
doins demo.out
insinto /usr/share/${PN}/examples
doins examples/*
}
pkg_postinst() {
einfo 'Testcase: To ensure the gibbs sampler works correctly,'
einfo 'run "gibbs-demo > mydemo.out" and compare "mydemo.out"'
einfo 'with "/usr/share/gibbs/demo.out" using diff. The files'
einfo 'should differ only by their timing statistics and the'
einfo 'paths of the example files.'
}
|