aboutsummaryrefslogtreecommitdiff
blob: dc50101fa270b870e753c29e2d92f64c7fd92b78 (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
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

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 into your DISTDIR folder"
}

src_prepare() {
	default
	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 ../${PN}/bin/tmhmm /opt/bin/tmhmm

	dodoc README TMHMM2.0.html
}