# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/sci-chemistry/mrbump/mrbump-0.4.4.ebuild,v 1.1 2010/02/06 23:25:56 jlec Exp $ EAPI="2" inherit eutils multilib DESCRIPTION="An automated scheme for Molecular Replacement" HOMEPAGE="http://www.ccp4.ac.uk/MrBUMP" SRC_URI="${HOMEPAGE}/release/${P}.tar.gz" LICENSE="ccp4" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="X perl" RDEPEND=">=sci-chemistry/ccp4-apps-6.1.3[X?] || ( sci-biology/mafft sci-biology/clustalw:2 sci-biology/probcons sci-biology/t-coffee ) sci-biology/fasta X? ( media-gfx/graphviz ) perl? ( dev-perl/SOAP-Lite ) >=dev-lang/python-2.3" DEPEND="${RDEPEND}" src_unpack(){ unpack ${A} cd "${S}" unpack ./"${PN}".tar.gz } src_prepare() { epatch "${FILESDIR}"/${PV}-superpose.patch } src_install(){ insinto /usr/$(get_libdir)/ccp4/ccp4i doins -r ccp4i/{MrBUMP-ccp4i.tar.gz,MrBUMP/{help,scripts,tasks,templates}} || \ die "failed to install interface" insinto /usr/share/${PN} doins -r share/${PN}/{data,include} || die "failed to install mrbump data" dobin share/${PN}/bin/* || die "failed to install binaries" dodoc README.txt || die dohtml html/mrbump_doc.html || die }