1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit multilib toolchain-funcs
8 DESCRIPTION="Maximum likelihood superpositioning and analysis of macromolecular structures"
9 HOMEPAGE="http://www.theseus3d.org/"
10 SRC_URI="http://www.theseus3d.org/src/${PN}_${PV}.tar.gz"
14 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
25 sci-biology/clustalw:2
30 S="${WORKDIR}"/${PN}_src/
33 cat >> make.inc <<- EOF
36 RANLIB = $(tc-getRANLIB)
37 LOCALLIBDIR = "${EPREFIX}/usr/$(get_libdir)
38 SYSLIBS = $(pkg-config --libs gsl) -lpthread
39 LIBS = -ldistfit -lmsa -ldssplite -ldltmath -lDLTutils -ltheseus
41 INSTALLDIR = "${ED}"/usr/bin
44 CFLAGS = ${CFLAGS} -std=c11 \$(WARN)
49 -e 's|theseus:|theseus: libs|g' \
50 -e '/-o theseus/s:$(CC):$(CC) ${LDFLAGS}:g' \
54 -e 's:/usr/bin/sed:sed:g' \
55 -e "s:/usr/local/bin/:/usr/bin/:g" \
56 -e "s:/usr/bin/:${EPREFIX}/usr/bin/:g" \
57 -i theseus_align || die
66 dobin theseus theseus_align
67 dodoc theseus_man.pdf README AUTHORS
68 use examples && insinto /usr/share/${PN} && doins -r examples