aboutsummaryrefslogtreecommitdiff
blob: 5313176b1695c3f67ddccd81832bf1dda092e072 (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
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=5

DESCRIPTION="Prediction of transmembrane helices in proteins"
HOMEPAGE="http://www.cbs.dtu.dk/services/TMHMM/"
SRC_URI="${P}.Linux.tar.gz"

LICENSE="tmhmm"
SLOT="0"
KEYWORDS="~amd64 ~x86"

RESTRICT="fetch"

S="TMHMM${PV}"

pkg_nofetch() {
	einfo "Please visit ${HOMEPAGE} and obtain the file"
	einfo "\"${SRC_URI}\", then place it in ${DISTDIR}"
}

src_prepare() {
	sed -i '1 i #!/usr/bin/env perl' "${S}"/bin/tmhmm* || die
	sed -i '1 a $opt_basedir = "/opt/tmhmm";' "${S}"/bin/tmhmm || die
}

src_install() {
	exeinto /opt/${PN}/bin
	doexe bin/*
	insinto /opt/${PN}/lib
	doins lib/*
	dosym /opt/${PN}/bin/tmhmm /usr/bin/tmhmm
	dodoc README TMHMM2.0.html
}