# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/sci-chemistry/probe/probe-2.11.050121.ebuild,v 1.2 2006/07/09 07:10:24 dberkholz Exp $ inherit toolchain-funcs MY_P="${PN%our}.${PV}" S_PN="${PN}s" DESCRIPTION="Read value/coordinate lists to produce contour maps in kinemage format" HOMEPAGE="http://kinemage.biochem.duke.edu/software/kincon.php" SRC_URI="http://kinemage.biochem.duke.edu/downloads/software/kincontour/${MY_P}.src.tgz" LICENSE="richardson" SLOT="0" KEYWORDS="~ppc ~x86" IUSE="" RDEPEND="" DEPEND="${RDEPEND}" S="${WORKDIR}/${S_PN}" src_unpack() { unpack ${A} # Respect CC sed -i \ -e 's:cc:$(CC):g' \ "${S}"/makefile } src_compile() { emake \ CC="$(tc-getCC)" \ CFLAGS="${CFLAGS}" \ || die "make failed" } src_install() { dobin kin3Dcont kin2Dcont xpl2xyz.pl xplbox.pl || die "dobin failed" dodoc README* || die "dodoc failed" }