Gentoo Archives: gentoo-commits

From: Jonathan-Christofer Demay <jcdemay@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-mathematics/frama-c/files/, sci-mathematics/frama-c/
Date: Wed, 23 Feb 2011 13:23:32
Message-Id: d840f6713bf450abce0020ad94756314ae8d1120.jcdemay@gentoo
1 commit: d840f6713bf450abce0020ad94756314ae8d1120
2 Author: Jonathan-Christofer Demay <jcdemay <AT> gmail <DOT> com>
3 AuthorDate: Wed Feb 23 15:25:32 2011 +0000
4 Commit: Jonathan-Christofer Demay <jcdemay <AT> gmail <DOT> com>
5 CommitDate: Wed Feb 23 15:25:32 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=d840f671
7
8 sci-mathematics/frama-c: keep previous version for now
9
10 ---
11 .../files/frama-c-20100401-plugin_install.patch | 33 ++++++++++
12 sci-mathematics/frama-c/frama-c-20100401.ebuild | 66 ++++++++++++++++++++
13 2 files changed, 99 insertions(+), 0 deletions(-)
14
15 diff --git a/sci-mathematics/frama-c/files/frama-c-20100401-plugin_install.patch b/sci-mathematics/frama-c/files/frama-c-20100401-plugin_install.patch
16 new file mode 100644
17 index 0000000..c5463cc
18 --- /dev/null
19 +++ b/sci-mathematics/frama-c/files/frama-c-20100401-plugin_install.patch
20 @@ -0,0 +1,33 @@
21 +diff -Naurp frama-c-Boron-20100401/share/Makefile.dynamic frama-c-Boron-20100401b/share/Makefile.dynamic
22 +--- frama-c-Boron-20100401/share/Makefile.dynamic 2010-04-13 11:52:53.000000000 +0000
23 ++++ frama-c-Boron-20100401/share/Makefile.dynamic 2010-07-04 19:48:52.000000000 +0000
24 +@@ -113,7 +113,7 @@ endif #FRAMAC_MAKE
25 +
26 + PLUGIN_LIB_DIR ?= $(PLUGIN_DIR)
27 + PLUGIN_GUI_LIB_DIR ?= $(PLUGIN_DIR)/gui
28 +-PLUGIN_INSTALL_DIR ?=$(FRAMAC_PLUGINDIR)
29 ++PLUGIN_INSTALL_DIR ?=$(DESTDIR)$(FRAMAC_PLUGINDIR)
30 +
31 + PLUGIN_FLAGS:=$(FLAGS) $(DEBUG) $(FRAMAC_INCLUDES) -I $(FRAMAC_LIBDIR)
32 + PLUGIN_BFLAGS:=$(PLUGIN_FLAGS) $(PLUGIN_BFLAGS)
33 +@@ -182,6 +182,7 @@ endif
34 + ifneq ($(PLUGIN_ENABLE),no)
35 + install::
36 + $(PRINT_CP) $(PLUGIN_INSTALL_DIR)
37 ++ $(MKDIR) $(PLUGIN_INSTALL_DIR)
38 + $(CP) $(TARGETS) $(PLUGIN_INSTALL_DIR)
39 + $(PRINT_CP) $(BINDIR)
40 + if [ -f frama-c-$(PLUGIN_NAME).byte$(EXE) ]; then \
41 +@@ -191,9 +192,9 @@ install::
42 + $(CP) frama-c-$(PLUGIN_NAME).$(OCAMLBEST)$(EXE) \
43 + $(BINDIR)/frama-c-$(PLUGIN_NAME)$(EXE); \
44 + fi
45 +- $(PRINT_UPDATE) $(FRAMAC_SHARE)/known_plugins.ac
46 +- echo "ENABLE_`echo $(PLUGIN_NAME) | tr "a-z" "A-Z"`=$(PLUGIN_ENABLE)" \
47 +- >> $(FRAMAC_SHARE)/known_plugins.ac
48 ++ #$(PRINT_UPDATE) $(FRAMAC_SHARE)/known_plugins.ac
49 ++ #echo "ENABLE_`echo $(PLUGIN_NAME) | tr "a-z" "A-Z"`=$(PLUGIN_ENABLE)" \
50 ++ # >> $(FRAMAC_SHARE)/known_plugins.ac
51 + ifeq ($(HAS_GUI),yes)
52 + $(PRINT_CP) $(PLUGIN_INSTALL_DIR)/gui
53 + $(CP) $(TARGETS_GUI) $(PLUGIN_INSTALL_DIR)/gui
54
55 diff --git a/sci-mathematics/frama-c/frama-c-20100401.ebuild b/sci-mathematics/frama-c/frama-c-20100401.ebuild
56 new file mode 100644
57 index 0000000..ffcf9b0
58 --- /dev/null
59 +++ b/sci-mathematics/frama-c/frama-c-20100401.ebuild
60 @@ -0,0 +1,66 @@
61 +# Copyright 1999-2010 Gentoo Foundation
62 +# Distributed under the terms of the GNU General Public License v2
63 +# $Header: $
64 +
65 +EAPI="3"
66 +
67 +inherit autotools eutils
68 +
69 +DESCRIPTION="Frama-C is a suite of tools dedicated to the analysis of the source code of software written in C."
70 +HOMEPAGE="http://frama-c.com"
71 +NAME="Boron"
72 +SRC_URI="http://frama-c.com/download/${PN/-c/-c-$NAME}-${PV/_/-}.tar.gz"
73 +
74 +LICENSE="LGPL-2"
75 +SLOT="0"
76 +KEYWORDS="~amd64 ~ppc ~sparc ~x86"
77 +IUSE="apron doc gtk +ocamlopt +why"
78 +RESTRICT="strip"
79 +
80 +DEPEND=">=dev-lang/ocaml-3.10.2[ocamlopt?]
81 + >=dev-ml/ocamlgraph-1.6[gtk?,ocamlopt?]
82 + gtk? ( >=x11-libs/gtksourceview-2.8
83 + >=gnome-base/libgnomecanvas-2.26
84 + >=dev-ml/lablgtk-2.14[sourceview,gnomecanvas,ocamlopt?] )
85 + sci-mathematics/ltl2ba
86 + apron? ( sci-mathematics/apron )"
87 +RDEPEND="${DEPEND}"
88 +PDEPEND="why? ( >=sci-mathematics/why-2.26 )"
89 +
90 +S="${WORKDIR}/${PN/-c/-c-$NAME}-${PV/_/-}"
91 +
92 +src_prepare(){
93 + rm share/libc/test.c
94 + rm -Rf src/wp
95 +
96 + epatch "${FILESDIR}/${P}-plugin_install.patch"
97 +
98 + touch config_file
99 + eautoreconf
100 +}
101 +
102 +src_configure() {
103 + if use gtk; then
104 + myconf="--enable-gui"
105 + else
106 + myconf="--disable-gui"
107 + fi
108 +
109 + econf ${myconf} || die "econf failed"
110 +}
111 +
112 +src_compile() {
113 + # dependencies can not be processed in parallel,
114 + # this is the intended behavior.
115 + emake -j1 depend || die "emake depend failed"
116 + emake all top DESTDIR="/" || die "emake failed"
117 +}
118 +
119 +src_install(){
120 + emake install DESTDIR="${D}" || die "emake install failed"
121 + dodoc Changelog doc/README
122 +
123 + if use doc; then
124 + dodoc doc/manuals/*
125 + fi
126 +}