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.
|
|
|
# Copyright 1999-2012 Gentoo Foundation
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI="2"
|
|
|
|
|
|
|
|
inherit toolchain-funcs eutils multilib
|
|
|
|
|
|
|
|
MY_P=${PN}.${PV}
|
|
|
|
|
|
|
|
DESCRIPTION="Prepares molecular kinemages from PDB-format coordinate files"
|
|
|
|
HOMEPAGE="http://kinemage.biochem.duke.edu/software/prekin.php"
|
|
|
|
SRC_URI="http://kinemage.biochem.duke.edu/downloads/software/${PN}/${MY_P}.src.tgz"
|
|
|
|
|
|
|
|
LICENSE="richardson"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
|
|
|
|
IUSE="X"
|
|
|
|
|
|
|
|
RDEPEND="x11-libs/libXext
|
|
|
|
x11-libs/libXmu
|
|
|
|
x11-libs/libX11
|
|
|
|
x11-libs/libXt
|
|
|
|
X? ( >=x11-libs/motif-2.3:0 )"
|
|
|
|
DEPEND="${RDEPEND}"
|
|
|
|
|
|
|
|
S=${WORKDIR}/${MY_P}
|
|
|
|
|
|
|
|
src_prepare() {
|
|
|
|
epatch \
|
|
|
|
"${FILESDIR}"/${PV}-Makefile.patch \
|
|
|
|
"${FILESDIR}"/${PV}-overflow.patch
|
|
|
|
sed \
|
|
|
|
-e 's:cc:$(CC):g' \
|
|
|
|
-e "s:GENTOOLIBDIR:$(get_libdir):g" \
|
|
|
|
"${S}"/Makefile.linux > Makefile || die
|
|
|
|
}
|
|
|
|
|
|
|
|
src_compile() {
|
|
|
|
local mytarget
|
|
|
|
|
|
|
|
if use X; then
|
|
|
|
mytarget="${PN}"
|
|
|
|
else
|
|
|
|
mytarget="nogui"
|
|
|
|
fi
|
|
|
|
|
|
|
|
emake CC="$(tc-getCC)" ${mytarget} || die
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
dobin "${S}"/prekin || die
|
|
|
|
}
|