# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils fortran DESCRIPTION="PDB2PQR is a Python software package that automates many of the common tasks of preparing structures for continuum electrostatics calculations." LICENSE="GPL-2" HOMEPAGE="http://pdb2pqr.sourceforge.net/" SRC_URI="http://umn.dl.sourceforge.net/sourceforge/pdb2pqr/${P}.tar.gz" SLOT="0" IUSE="" KEYWORDS="~x86 ~amd64" DEPEND=">=dev-lang/python-2.4.2" pkg_setup() { need_fortran g77 if ! built_with_use =sys-devel/gcc-* fortran ; then die "sys-devel/gcc must be built with USE=fortran." fi } src_compile() { local myconf econf ${myconf} || die "configure failed" emake || die "make failed" } src_install() { exeinto /usr/lib/python2.4/site-packages/pdb2pqr doexe *.py insinto /usr/lib/python2.4/site-packages/pdb2pqr/propka doins propka/*propka* propka/__init__.py insinto /usr/lib/python2.4/site-packages/pdb2pqr/src doins src/* insinto /usr/lib/python2.4/site-packages/pdb2pqr/dat doins dat/* into /usr/bin dosym /usr/lib/python2.4/site-packages/pdb2pqr/pdb2pqr.py /usr/bin/pdb2pqr dohtml doc/* || die "failed to install html docs" }