summaryrefslogtreecommitdiff
blob: 90cfaa90a86ce02f90b0a448dbba0afda06f01ef (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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

CATEGORY="sci-biology"

MY_P="RepBase${PV}.fasta"

DESCRIPTION="A database of repetetive genetic elements in various organisms."
HOMEPAGE="http://www.girinst.org"
SRC_URI="${MY_P}.tar.gz"

LICENSE="repbase-agreement"
SLOT="0"
KEYWORDS="~x86"
IUSE=""

DEPEND=""
RDEPEND=""

RESTRICT="fetch"

REPBASELOC="${HOMEPAGE}/server/RepBase/"

REPLIBRARIES="
angrep.ref=repeat_lib_A.gambiae
cbrrep.ref=repeat_lib_C.briggsae
celrep.ref=repeat_lib_C.elegans
drorep.ref=repeat_lib_D.melanogaster
fugrep.ref=repeat_lib_F.rubripes
humrep.ref=repeat_lib_H.sapiens
prirep.ref=repeat_lib_P.troglodyte
rodrep.ref=repeat_lib_M.musculus
rodrep.ref=repeat_lib_R.norvegicus
zebrep.ref=repeat_lib_D.rerio
"

pkg_nofetch() 
{
    einfo "Please download ${SRC_URI}"
    einfo "from ${REPBASELOC} and place it in ${DISTDIR}."
    einfo "You will need to register as an academic user at"
    einfo "${HOMEPAGE} in order to be"
    einfo "allowed to download the file."
}

src_compile() 
{
    cp ${FILESDIR}/clean ${WORKDIR}
    cd ${WORKDIR}
    for lib in ${REPLIBRARIES}
    do
      einfo Cleaning library file ${lib/=*/} to ${lib/*=/}
      ./clean ${MY_P}/${lib/=*/} ${lib/*=/} 
    done
}

src_install() 
{
    cd ${WORKDIR}
    install -m 755 -d ${D}/usr/share/${P}/
    for lib in ${REPLIBRARIES}
    do
      install -m 644 ${lib/*=/} ${D}/usr/share/${P}/
    done
}