# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="A protein motif fingerprint database" HOMEPAGE="http://www.bioinf.man.ac.uk/dbbrowser/PRINTS/" SRC_URI="ftp://ftp.ebi.ac.uk/pub/databases/${PN}/newpr.lis.gz ftp://ftp.ebi.ac.uk/pub/databases/${PN}/${PN}37_0.all.fasta.Z ftp://ftp.ebi.ac.uk/pub/databases/${PN}/${PN}37_0.dat.gz ftp://ftp.ebi.ac.uk/pub/databases/${PN}/${PN}37_0.lis.gz ftp://ftp.ebi.ac.uk/pub/databases/${PN}/${PN}37_0.nam.gz ftp://ftp.ebi.ac.uk/pub/databases/${PN}/${PN}37_0.vsn.gz" LICENSE="public-domain" SLOT="0" KEYWORDS="~x86" IUSE="emboss no-raw" DEPEND="emboss? ( =app-sci/emboss )" S=${WORKDIR} src_compile() { if use emboss; then mkdir PRINTS einfo "Indexing PRINTS for usage with EMBOSS." EMBOSS_DATA=. printsextract -auto -infile prints37_0.dat || die \ "Indexing PRINTS failed." fi } src_install() { if ! use no-raw; then insinto /usr/share/${PN} doins ${PN}37_0.{all.fasta,dat,lis,nam,vsn} newpr.lis fi if use emboss; then insinto /usr/share/EMBOSS/data/PRINTS doins PRINTS/* fi }