# 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-r2.ebuild,v 1.4 2004/06/24 21:57:40 agriffis Exp $ S=${WORKDIR}/EMBOSS-${PV} 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 ~ppc" IUSE="X png" DEPEND="X? ( virtual/x11 png? ( >=sys-libs/zlib-1.1.4 >=media-libs/libpng-1.2.4 >=media-libs/libgd-1.8.4 ) )" 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 newins ${FILESDIR}/22emboss-r1 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 }