You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
70 lines
1.5 KiB
70 lines
1.5 KiB
3 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
11 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
|
EAPI=5
|
||
|
|
||
|
inherit multilib toolchain-funcs
|
||
|
|
||
9 years ago
|
DESCRIPTION="Maximum likelihood superpositioning and analysis of macromolecular structures"
|
||
11 years ago
|
HOMEPAGE="http://www.theseus3d.org/"
|
||
|
SRC_URI="http://www.theseus3d.org/src/${PN}_${PV}.tar.gz"
|
||
|
|
||
|
SLOT="0"
|
||
|
LICENSE="GPL-3"
|
||
|
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
|
||
|
IUSE="examples"
|
||
|
|
||
|
RDEPEND="
|
||
3 years ago
|
sci-libs/gsl:=
|
||
11 years ago
|
|| (
|
||
9 years ago
|
sci-biology/muscle
|
||
11 years ago
|
sci-biology/probcons
|
||
|
sci-biology/mafft
|
||
|
sci-biology/t-coffee
|
||
|
sci-biology/kalign
|
||
9 years ago
|
sci-biology/clustalw:2
|
||
11 years ago
|
)"
|
||
|
DEPEND="${RDEPEND}
|
||
|
virtual/pkgconfig"
|
||
|
|
||
|
S="${WORKDIR}"/${PN}_src/
|
||
|
|
||
|
src_prepare() {
|
||
|
cat >> make.inc <<- EOF
|
||
|
ARCH = $(tc-getAR)
|
||
|
ARCHFLAGS = -rvs
|
||
|
RANLIB = $(tc-getRANLIB)
|
||
|
LOCALLIBDIR = "${EPREFIX}/usr/$(get_libdir)
|
||
3 years ago
|
SYSLIBS = $($(tc-getPKG_CONFIG) --libs gsl) -lpthread
|
||
11 years ago
|
LIBS = -ldistfit -lmsa -ldssplite -ldltmath -lDLTutils -ltheseus
|
||
|
LIBDIR = -L./lib
|
||
|
INSTALLDIR = "${ED}"/usr/bin
|
||
|
OPT =
|
||
|
WARN =
|
||
9 years ago
|
CFLAGS = ${CFLAGS} -std=c11 \$(WARN)
|
||
11 years ago
|
CC = $(tc-getCC)
|
||
|
EOF
|
||
|
|
||
|
sed \
|
||
|
-e 's|theseus:|theseus: libs|g' \
|
||
|
-e '/-o theseus/s:$(CC):$(CC) ${LDFLAGS}:g' \
|
||
|
-i Makefile || die
|
||
|
|
||
|
sed \
|
||
|
-e 's:/usr/bin/sed:sed:g' \
|
||
9 years ago
|
-e "s:/usr/local/bin/:/usr/bin/:g" \
|
||
11 years ago
|
-e "s:/usr/bin/:${EPREFIX}/usr/bin/:g" \
|
||
|
-i theseus_align || die
|
||
|
}
|
||
|
|
||
5 years ago
|
src_compile() {
|
||
9 years ago
|
emake ltheseus
|
||
|
default
|
||
|
}
|
||
|
|
||
11 years ago
|
src_install() {
|
||
|
dobin theseus theseus_align
|
||
|
dodoc theseus_man.pdf README AUTHORS
|
||
|
use examples && insinto /usr/share/${PN} && doins -r examples
|
||
|
}
|