Gentoo Archives: gentoo-commits

From: "Petteri Räty" <betelgeuse@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] dev/betelgeuse:master commit in: dev-libs/antlr-c/, dev-libs/antlr-c/files/
Date: Sat, 07 May 2011 13:04:24
Message-Id: a35b1ace36b8a72dcab575a9347d5e63862c8e1e.betelgeuse@gentoo
1 commit: a35b1ace36b8a72dcab575a9347d5e63862c8e1e
2 Author: Petteri Räty <betelgeuse <AT> gentoo <DOT> org>
3 AuthorDate: Sat May 7 13:03:31 2011 +0000
4 Commit: Petteri Räty <betelgeuse <AT> gentoo <DOT> org>
5 CommitDate: Sat May 7 13:03:31 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=dev/betelgeuse.git;a=commit;h=a35b1ace
7
8 new ebuild: antlr-c
9
10 ---
11 dev-libs/antlr-c/Manifest | 4 +
12 dev-libs/antlr-c/antlr-c-3.3_pre20110403.ebuild | 68 ++++++++++++++++++++
13 dev-libs/antlr-c/files/antlr-c-3.1.4-doxygen.patch | 19 ++++++
14 dev-libs/antlr-c/files/antlr-c-3.3-cflags.patch | 14 ++++
15 4 files changed, 105 insertions(+), 0 deletions(-)
16
17 diff --git a/dev-libs/antlr-c/Manifest b/dev-libs/antlr-c/Manifest
18 new file mode 100644
19 index 0000000..a440044
20 --- /dev/null
21 +++ b/dev-libs/antlr-c/Manifest
22 @@ -0,0 +1,4 @@
23 +AUX antlr-c-3.1.4-doxygen.patch 638 RMD160 e78089956c297069f72dd523e8e7d4212dd79ee2 SHA1 27527b6494ea13b479ab08c80b4ba3e21fc61abe SHA256 bdec1623a16c5c3ff2773ff083849fd4ef641c3019cbb44c424b45fa42147a65
24 +AUX antlr-c-3.3-cflags.patch 632 RMD160 59c016cbae1fec22eee1a7fab4e083b8212d78bc SHA1 1c8a6055a25dd70c8c59344dcad053e4cd5345ad SHA256 a40e2e78d60764dcc56478e773152273daf78bd44d428409f7ed9290d6ba4702
25 +DIST libantlr3c-3.3_pre20110403.tar.gz 544321 RMD160 ca0053acd3b029c8263dae26afe69c373941d6be SHA1 63ea605b1de333ca2c159f105ceee7b154f7caa1 SHA256 d9d4fad690e918960ba62dde8a80aa2955610e3a936d2f69d6b6f798c2c82ba7
26 +EBUILD antlr-c-3.3_pre20110403.ebuild 1396 RMD160 0ce3ed14ee3f658d9cea1d5c085a4e62e021b78b SHA1 a7e8cc5a5a966047031820de5028e87e477d8459 SHA256 3349dab78802cd24c57b0c58667bb5d8a31f845a98744d1e8858440547652561
27
28 diff --git a/dev-libs/antlr-c/antlr-c-3.3_pre20110403.ebuild b/dev-libs/antlr-c/antlr-c-3.3_pre20110403.ebuild
29 new file mode 100644
30 index 0000000..af34b2c
31 --- /dev/null
32 +++ b/dev-libs/antlr-c/antlr-c-3.3_pre20110403.ebuild
33 @@ -0,0 +1,68 @@
34 +# Copyright 1999-2010 Gentoo Foundation
35 +# Distributed under the terms of the GNU General Public License v2
36 +# $Header: 2009/10/07 florent.teichteil@×××××.com Exp $
37 +
38 +EAPI="4"
39 +inherit eutils versionator autotools
40 +
41 +MY_PN="libantlr3c"
42 +MY_P="${MY_PN}-$(get_version_component_range 1-2)-SNAPSHOT"
43 +DESCRIPTION="The ANTLR3 C Runtime"
44 +HOMEPAGE="http://fisheye2.atlassian.com/browse/antlr/runtime/C/dist/"
45 +SRC_URI="http://www.antlr.org/download/C/${MY_P}.tar.gz ->
46 + ${MY_PN}-${PV}.tar.gz"
47 +
48 +LICENSE="BSD"
49 +SLOT="0"
50 +KEYWORDS="~x86 ~amd64"
51 +IUSE="debug debugger doc static-libs"
52 +
53 +DEPEND="doc? ( app-doc/doxygen )"
54 +RDEPEND=""
55 +
56 +S="${WORKDIR}/${MY_P}"
57 +
58 +src_prepare() {
59 + epatch "${FILESDIR}/${PN}-3.1.4-doxygen.patch"
60 + epatch "${FILESDIR}/${PN}-3.3-cflags.patch"
61 + mkdir m4
62 + eautoreconf
63 +}
64 +
65 +src_configure() {
66 + local myconf
67 +
68 + if use amd64 || use ia64; then
69 + myconf="${myconf} --enable-64bit"
70 + else
71 + myconf="${myconf} --disable-64bit"
72 + fi
73 +
74 + econf \
75 + $(use_enable static-libs static) \
76 + $(use_enable debug debuginfo ) \
77 + $(use_enable debugger antlrdebug ) \
78 + ${myconf}
79 +}
80 +
81 +src_compile() {
82 + emake
83 +
84 + if use doc; then
85 + einfo "Generating documentation API ..."
86 + doxygen -u doxyfile
87 + doxygen doxyfile || die "doxygen failed"
88 + fi
89 +}
90 +
91 +src_install() {
92 + emake DESTDIR="${D}" install
93 +
94 + # remove useless .la files
95 + find "${D}" -name '*.la' -delete
96 +
97 + dodoc AUTHORS ChangeLog NEWS README
98 + if use doc; then
99 + dohtml api/*
100 + fi
101 +}
102
103 diff --git a/dev-libs/antlr-c/files/antlr-c-3.1.4-doxygen.patch b/dev-libs/antlr-c/files/antlr-c-3.1.4-doxygen.patch
104 new file mode 100644
105 index 0000000..6267a4f
106 --- /dev/null
107 +++ b/dev-libs/antlr-c/files/antlr-c-3.1.4-doxygen.patch
108 @@ -0,0 +1,19 @@
109 +--- doxyfile
110 ++++ doxyfile
111 +@@ -30,7 +30,6 @@
112 + SHORT_NAMES = NO
113 + JAVADOC_AUTOBRIEF = YES
114 + MULTILINE_CPP_IS_BRIEF = NO
115 +-DETAILS_AT_TOP = YES
116 + INHERIT_DOCS = YES
117 + SEPARATE_MEMBER_PAGES = NO
118 + TAB_SIZE = 4
119 +@@ -73,7 +72,7 @@
120 + #---------------------------------------------------------------------------
121 + # configuration options related to warning and progress messages
122 + #---------------------------------------------------------------------------
123 +-QUIET = NO
124 ++QUIET = YES
125 + WARNINGS = YES
126 + WARN_IF_UNDOCUMENTED = YES
127 + WARN_IF_DOC_ERROR = YES
128
129 diff --git a/dev-libs/antlr-c/files/antlr-c-3.3-cflags.patch b/dev-libs/antlr-c/files/antlr-c-3.3-cflags.patch
130 new file mode 100644
131 index 0000000..8545133
132 --- /dev/null
133 +++ b/dev-libs/antlr-c/files/antlr-c-3.3-cflags.patch
134 @@ -0,0 +1,14 @@
135 +diff -ur libantlr3c-3.3-SNAPSHOT.old//configure.ac libantlr3c-3.3-SNAPSHOT/configure.ac
136 +--- libantlr3c-3.3-SNAPSHOT.old//configure.ac 2011-04-03 10:40:51.277000042 +0300
137 ++++ libantlr3c-3.3-SNAPSHOT/configure.ac 2011-04-03 10:41:22.092000042 +0300
138 +@@ -134,8 +134,8 @@
139 + ;;
140 + esac
141 +
142 +-CFLAGS="$CCFLAGS64 $CPPCMNTFLAGS $OPTIMFLAGS $DEBUGFLAGS $WARNFLAGS"
143 +-AC_MSG_RESULT([$CFLAGS])
144 ++AM_CFLAGS="$CCFLAGS64 $CPPCMNTFLAGS $OPTIMFLAGS $DEBUGFLAGS $WARNFLAGS"
145 ++AC_MSG_RESULT([$AM_CFLAGS])
146 + AC_SUBST([OBJECT_MODE])
147 +
148 + AS_IF([test "x$enable_antlrdebug" = xno], [AC_DEFINE([ANTLR3_NODEBUGGER], [1], [Define if ANTLR debugger not required])], [])