# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="database of protein fragments for use with rosetta++" HOMEPAGE="http://www.rosettacommons.org/" SRC_URI="${PN}-${PV}.tgz" RESTRICT="fetch test" LICENSE="rosetta" SLOT="0" KEYWORDS="~x86" IUSE="" RDEPEND="sys-apps/findutils" DEPEND="" S="${WORKDIR}/${PN}" EAPI="2" pkg_nofetch() { einfo "Please fill out the registration form at " einfo " http://www.uwopendoor.org/LicenseSoftware.asp?softwareid=17" einfo "Then download the file ${A} manually and place it into ${DISTDIR}" } src_configure() { #UPSTREAM: get rid of .svn directories in distribution find . -name '.svn' -exec rm -rf {} ';' 2>/dev/null } src_unpack() { unpack ${A} } src_test() { elog "rosetta does not provide a test target for this" } src_install() { local destdir="/usr/share/rosetta-${PV}/database" dodir "${destdir}" && insinto "${destdir}" && doins -r "${S}"/* || die elog "rosetta++ database has been installed into ${destdir}" }