# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-sci/emboss/emboss-2.8.0-r1.ebuild,v 1.4 2004/06/30 17:14:33 vapier Exp $ DESCRIPTION="The European Molecular Biology Open Software Suite: EMBOSS is a package of high-quality FREE Open Source software for sequence analysis" HOMEPAGE="http://www.emboss.org/" SRC_URI="ftp://ftp.uk.embnet.org/pub/EMBOSS/EMBOSS-${PV}.tar.gz" LICENSE="GPL-2 LGPL-2" SLOT="0" KEYWORDS="~x86" IUSE="X png" DEPEND="X? ( virtual/x11 png? ( >=sys-libs/zlib-1.1.4 >=media-libs/libpng-1.2.4 >=media-libs/gd-1.8.4 ) )" S=${WORKDIR}/EMBOSS-${PV} src_compile() { local myconf if ! use X then myconf="--without-x --without-pngdriver" else if ! use png then myconf="${myconf} --without-pngdriver" fi fi ewarn "myconf: ${myconf}" econf ${myconf} || die emake || die } src_install() { einstall || die # env file dodir /etc/env.d insinto /etc/env.d doins ${FILESDIR}/22emboss #install files... dodoc AUTHORS COMPAT COPYING ChangeLog FAQ INSTALL KNOWN_BUGS LICENSE README THANKS NEWS ONEWS PROBLEMS # symlink preinstalled docs to /usr/share... dosym /usr/share/EMBOSS/doc/manuals /usr/share/doc/${P}/manuals dosym /usr/share/EMBOSS/doc/programs /usr/share/doc/${P}/programs dosym /usr/share/EMBOSS/doc/tutorials /usr/share/doc/${P}/tutorials }