summaryrefslogtreecommitdiff
blob: b028cd386f4b191caab2d805696d90eac844995c (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
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="2"

inherit eutils

DESCRIPTION="Bist, the chemical drawing tool"
HOMEPAGE="http://www.autistici.org/interzona/index.php?mod=03_Bist"
SRC_URI="http://www.autistici.org/interzona/ftrack.php?url=sections/06_Download/${P}.tar.gz"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

RDEPEND="net-misc/curl
	dev-libs/expat
	>=x11-libs/fltk-1.1.7:1.1
	sci-libs/gsl
	>=sci-chemistry/openbabel-2.2.0
	>=media-libs/plotutils-2.5"

DEPEND="${RDEPEND}"

src_prepare() {
	use amd64 && epatch "${FILESDIR}/wrap_bracket_dialog-amd64.patch"
}

src_install() {
	dobin bist || die "bist install failed"

	#install bist plug-ins
	insinto /usr/lib/bist/plugin
	doins plugin/*.so || die "make plugin failed"

	dodoc AUTHORS TODO || die
	cd doc
	doman  man/bist.1 || die
	dohtml *.html *.png *jpg || die
}