summaryrefslogtreecommitdiff
blob: 8dc704d73c430cfa0ef93cb7fbce8ff891915d5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# 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-r3.ebuild,v 1.1 2004/07/15 02:06:20 ribosome Exp $

DESCRIPTION="The European Molecular Biology Open Software Suite: a sequence analysis package."
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 icc no-biodata"

RDEPEND="X? ( virtual/x11 )
	png? (
		sys-libs/zlib
		media-libs/libpng
		>=media-libs/gd-1.8
	)
	app-sci/primer3
	app-sci/clustalw"

PDEPEND="!no-biodata? (
		app-sci/aaindex
		app-sci/cutg
		app-sci/prints
		app-sci/prosite
		app-sci/rebase
		app-sci/transfac
	)"

DEPEND="icc? ( dev-lang/icc )
	${RDEPEND}"

S=${WORKDIR}/EMBOSS-${PV}

src_compile() {
	if use icc; then
		CC=/opt/intel/compiler80/bin/icc
		CXX=/opt/intel/compiler80/bin/icc
	fi
	local EXTRA_CONF
	! use X && EXTRA_CONF="${EXTRA_CONF} --without-x"
	! use png && EXTRA_CONF="${EXTRA_CONF} --without-pngdriver"

	econf ${EXTRA_CONF} || die
	# Do not install the JEMBOSS component (the --without-java configure option
	# does not work). JEMBOSS will be available as a separate package.
	sed -i -e 's/SUBDIRS = plplot ajax nucleus emboss test doc jemboss/SUBDIRS = plplot ajax nucleus emboss test doc/' Makefile
	emake || die
}

src_install() {
	einstall || die
	dodoc AUTHORS COPYING ChangeLog FAQ INSTALL LICENSE README THANKS NEWS

	# Install env file for setting libplplot and acd files path.
	insinto /etc/env.d
	newins ${FILESDIR}/22emboss-r1 22emboss

	# Include files necessary for EMBASSY packages and EMBOSS development.
	insinto /usr/include/${PN}
	doins plplot/*.h
	doins ajax/*.h
	doins nucleus/*.h

	# Symlink preinstalled docs to /usr/share/doc.
	dosym /usr/share/EMBOSS/doc/manuals /usr/share/doc/${PF}/manuals
	dosym /usr/share/EMBOSS/doc/programs /usr/share/doc/${PF}/programs
	dosym /usr/share/EMBOSS/doc/tutorials /usr/share/doc/${PF}/tutorials
}