# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

DESCRIPTION="Protein conformations around a known structure based on geometric restrictions"
HOMEPAGE="https://www3.mpibpc.mpg.de/groups/de_groot/concoord/concoord.html"
SRC_URI="
	amd64? ( https://www3.mpibpc.mpg.de/groups/de_groot/${PN}/${PN}_${PV}_linux64.tgz )
	x86? ( https://www3.mpibpc.mpg.de/groups/de_groot/${PN}/${PN}_${PV}_linux32.tgz )"

SLOT="0"
KEYWORDS="-* ~amd64 ~x86 ~amd64-linux ~x86-linux"
LICENSE="all-rights-reserved"

QA_PREBUILT="opt/${PN}/bin/*"

S="${WORKDIR}"/${PN}_${PV}

src_install() {
	insinto /opt/${PN}/
	doins -r lib
	exeinto /opt/${PN}/bin
	doexe bin/*
	cat >> "${T}"/60${PN} <<- EOF
	CONCOORDLIB="${EPREFIX}/opt/${PN}/lib"
	CONCOORDBIN="${EPREFIX}/opt/${PN}/bin"
	PATH="${EPREFIX}/opt/${PN}/bin"
	EOF
	doenvd "${T}"/60${PN}
}