Gentoo Archives: gentoo-commits

From: "Alexis Ballier (aballier)" <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-util/coccinelle: ChangeLog coccinelle-0.2.1.ebuild
Date: Mon, 01 Feb 2010 10:30:30
Message-Id: E1NbtY0-0002dn-BD@stork.gentoo.org
1 aballier 10/02/01 10:30:24
2
3 Modified: ChangeLog
4 Added: coccinelle-0.2.1.ebuild
5 Log:
6 version bump
7 (Portage version: 2.2_rc62/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.2 dev-util/coccinelle/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/coccinelle/ChangeLog?rev=1.2&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/coccinelle/ChangeLog?rev=1.2&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/coccinelle/ChangeLog?r1=1.1&r2=1.2
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-util/coccinelle/ChangeLog,v
19 retrieving revision 1.1
20 retrieving revision 1.2
21 diff -u -r1.1 -r1.2
22 --- ChangeLog 24 Jan 2010 18:07:36 -0000 1.1
23 +++ ChangeLog 1 Feb 2010 10:30:23 -0000 1.2
24 @@ -1,6 +1,12 @@
25 # ChangeLog for dev-util/coccinelle
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-util/coccinelle/ChangeLog,v 1.1 2010/01/24 18:07:36 aballier Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-util/coccinelle/ChangeLog,v 1.2 2010/02/01 10:30:23 aballier Exp $
29 +
30 +*coccinelle-0.2.1 (01 Feb 2010)
31 +
32 + 01 Feb 2010; Alexis Ballier <aballier@g.o>
33 + +coccinelle-0.2.1.ebuild:
34 + version bump
35
36 *coccinelle-0.2.0 (24 Jan 2010)
37
38
39
40
41 1.1 dev-util/coccinelle/coccinelle-0.2.1.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/coccinelle/coccinelle-0.2.1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/coccinelle/coccinelle-0.2.1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: coccinelle-0.2.1.ebuild
47 ===================================================================
48 # Copyright 1999-2010 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-util/coccinelle/coccinelle-0.2.1.ebuild,v 1.1 2010/02/01 10:30:23 aballier Exp $
51
52 EAPI="2"
53
54 inherit multilib
55
56 DESCRIPTION="Program matching and transformation engine"
57 HOMEPAGE="http://coccinelle.lip6.fr/"
58 SRC_URI="http://coccinelle.lip6.fr/distrib/${P}.tgz"
59
60 LICENSE="GPL-2"
61 SLOT="0"
62 KEYWORDS="~amd64 ~x86"
63 IUSE="doc +ocamlopt python"
64
65 RDEPEND="python? ( dev-lang/python )
66 >=dev-lang/ocaml-3.10[ocamlopt?]"
67 DEPEND="${RDEPEND}
68 doc? ( virtual/latex-base
69 || ( dev-texlive/texlive-latexextra app-text/ptex ) )"
70
71 src_configure() {
72 # non-autoconf
73 ./configure \
74 --prefix=/usr \
75 $(use ocamlopt || echo "--no-opt") \
76 $(use_with python) \
77 || die
78 sed -i "s:^LIBDIR=.*:LIBDIR=/usr/$(get_libdir)/ocaml/stublibs/:" Makefile.config
79 sed -i "s:^SHAREDIR=.*:SHAREDIR=/usr/libexec/${PN}/:" Makefile.config
80 sed -i "s:^MANDIR=.*:MANDIR=/usr/share/man/:" Makefile.config
81 }
82
83 src_compile() {
84 emake depend || die
85 emake || die
86 if use doc ; then
87 emake docs || die
88 fi
89 if use ocamlopt ; then
90 emake opt || die
91 fi
92 }
93
94 src_test() {
95 ./spatch standard.h -parse_c -dir tests/ || die
96 ./spatch -iso_file standard.iso -macro_file_builtins standard.h -testall || die
97 if use ocamlopt ; then
98 ./spatch.opt -iso_file standard.iso -macro_file_builtins standard.h -testall || die
99 fi
100 }
101
102 src_install() {
103 emake DESTDIR="${D}" install || die
104 dodoc authors.txt bugs.txt changes.txt credits.txt readme.txt
105 use doc && dodoc docs/manual/*.pdf
106 export STRIP_MASK='*/coccinelle/spatch'
107 }