# Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="5" inherit autotools eutils DESCRIPTION="Framework for analysis of source codes written in C" HOMEPAGE="http://frama-c.com" NAME="Fluorine" SRC_URI="http://frama-c.com/download/${PN/-c/-c-$NAME}-${PV/_/-}.tar.gz" LICENSE="LGPL-2" SLOT="0" KEYWORDS="~amd64 ~ppc ~x86" IUSE="doc gtk +ocamlopt" RESTRICT="strip" DEPEND=">=dev-lang/ocaml-3.10.2[ocamlopt?] >=dev-ml/ocamlgraph-1.8.2[gtk?,ocamlopt?] dev-ml/zarith sci-mathematics/ltl2ba sci-mathematics/alt-ergo gtk? ( >=x11-libs/gtksourceview-2.8 >=gnome-base/libgnomecanvas-2.26 >=dev-ml/lablgtk-2.14[sourceview,gnomecanvas,ocamlopt?] )" RDEPEND="${DEPEND}" S="${WORKDIR}/${PN/-c/-c-$NAME}-${PV/_/-}" src_prepare(){ rm share/libc/test.c touch config_file epatch "${FILESDIR}/${PN}-make.patch" \ "${FILESDIR}/${PN}-ocaml-4.01.patch" eautoreconf } src_configure(){ if use gtk; then myconf="--enable-gui" else myconf="--disable-gui" fi econf ${myconf} } src_compile(){ # dependencies can not be processed in parallel, # this is the intended behavior. emake -j1 depend emake all top DESTDIR="/" } src_install(){ emake install DESTDIR="${D}" dodoc Changelog doc/README if use doc; then dodoc doc/manuals/*.pdf fi }