summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMu Qiao <qiaomuf@gentoo.org>2011-06-10 07:02:40 +0000
committerMu Qiao <qiaomuf@gentoo.org>2011-06-10 07:02:40 +0000
commitaa02fbd4fbe18e8b5bb0b8e77c77a96ab2f1a1b9 (patch)
treec3da1b79854db035672936634b0e7d29bc149f54 /dev-libs/antlr-c
parentUpstream patch: Fix regression in marshalling objects as object paths. Thanks... (diff)
downloadhistorical-aa02fbd4fbe18e8b5bb0b8e77c77a96ab2f1a1b9.tar.gz
historical-aa02fbd4fbe18e8b5bb0b8e77c77a96ab2f1a1b9.tar.bz2
historical-aa02fbd4fbe18e8b5bb0b8e77c77a96ab2f1a1b9.zip
Initial commit for antlr-c
Package-Manager: portage-2.1.10/cvs/Linux x86_64
Diffstat (limited to 'dev-libs/antlr-c')
-rw-r--r--dev-libs/antlr-c/ChangeLog11
-rw-r--r--dev-libs/antlr-c/Manifest20
-rw-r--r--dev-libs/antlr-c/antlr-c-3.3_pre20110403.ebuild68
-rw-r--r--dev-libs/antlr-c/files/antlr-c-3.1.4-doxygen.patch19
-rw-r--r--dev-libs/antlr-c/files/antlr-c-3.3-cflags.patch14
-rw-r--r--dev-libs/antlr-c/metadata.xml14
6 files changed, 146 insertions, 0 deletions
diff --git a/dev-libs/antlr-c/ChangeLog b/dev-libs/antlr-c/ChangeLog
new file mode 100644
index 000000000000..dbd5c69cb4da
--- /dev/null
+++ b/dev-libs/antlr-c/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for dev-libs/antlr-c
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/antlr-c/ChangeLog,v 1.1 2011/06/10 07:02:40 qiaomuf Exp $
+
+*antlr-c-3.3_pre20110403 (10 Jun 2011)
+
+ 10 Jun 2011; Mu Qiao <qiaomuf@gentoo.org> +files/antlr-c-3.1.4-doxygen.patch,
+ +antlr-c-3.3_pre20110403.ebuild, +files/antlr-c-3.3-cflags.patch,
+ +metadata.xml:
+ Initial commit for antlr-c
+
diff --git a/dev-libs/antlr-c/Manifest b/dev-libs/antlr-c/Manifest
new file mode 100644
index 000000000000..358c82962fe2
--- /dev/null
+++ b/dev-libs/antlr-c/Manifest
@@ -0,0 +1,20 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+AUX antlr-c-3.1.4-doxygen.patch 638 RMD160 e78089956c297069f72dd523e8e7d4212dd79ee2 SHA1 27527b6494ea13b479ab08c80b4ba3e21fc61abe SHA256 bdec1623a16c5c3ff2773ff083849fd4ef641c3019cbb44c424b45fa42147a65
+AUX antlr-c-3.3-cflags.patch 632 RMD160 59c016cbae1fec22eee1a7fab4e083b8212d78bc SHA1 1c8a6055a25dd70c8c59344dcad053e4cd5345ad SHA256 a40e2e78d60764dcc56478e773152273daf78bd44d428409f7ed9290d6ba4702
+DIST libantlr3c-3.3_pre20110403.tar.gz 544321 RMD160 ca0053acd3b029c8263dae26afe69c373941d6be SHA1 63ea605b1de333ca2c159f105ceee7b154f7caa1 SHA256 d9d4fad690e918960ba62dde8a80aa2955610e3a936d2f69d6b6f798c2c82ba7
+EBUILD antlr-c-3.3_pre20110403.ebuild 1463 RMD160 d784d7c048aab05400cd2617c075b634ce9d9af3 SHA1 aa6493a20fe1d5b08483666ade6afd795c4bdec2 SHA256 c457270260daa91198901403c7cd0c7f1c4eac8fbb3bb08175996900da3219d1
+MISC ChangeLog 441 RMD160 bce8836b8902ba76e2c1b55b28029ce1f721efac SHA1 0a8277200baea45aa5f7392b194323a835703121 SHA256 567bc9d8a6bc87e926450ef7fcc831a3a88f41e83fef0444f96e865f2e4596ee
+MISC metadata.xml 380 RMD160 0046d2932b70e49b4d089d1cc242b0758d0d38c0 SHA1 db48de61d9020b6d3ebcad6652ee79c1ddf78edf SHA256 84f4a9f848cc6785b27849f12a5284000700b10b5c7c7e672a2d2229f21fbb88
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.17 (GNU/Linux)
+
+iQEcBAEBAgAGBQJN8cGkAAoJEDCzDeQXsVfpfqUIALkZ5IJ/GFBPh6rEVcBiIDiq
+vJHKBamsb3ZnNnrx5CfwidIMQ/zc3XmKGd9dU2YT93bzGmMGeWnYthRe/B04MfMS
+rS2cKXuAkH/g6Kc9pHy8dGWQgE6iXDiQ+IFpyev7eLTY9QY/8YKKBw8XejfLjUB3
+Yj+hkRBfwoOSFjEHljNwwpA0Pb84muTxaG8YZ5+Wc8z+mB7uwS18qz4zT5DexQGy
+H7MbVllRPd1rotnrCBXL2HImDWLl4RYTVFZXy6CzLTKMC7aZR7E7RHXCSP7Hr9WN
+IsfU8k+y7i6t+diArJWJow5j0gdDAD9Yi3W2wWnfrG373gBH6lX1yiXu3DijqKk=
+=Bq+J
+-----END PGP SIGNATURE-----
diff --git a/dev-libs/antlr-c/antlr-c-3.3_pre20110403.ebuild b/dev-libs/antlr-c/antlr-c-3.3_pre20110403.ebuild
new file mode 100644
index 000000000000..a23d460eabe6
--- /dev/null
+++ b/dev-libs/antlr-c/antlr-c-3.3_pre20110403.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/antlr-c/antlr-c-3.3_pre20110403.ebuild,v 1.1 2011/06/10 07:02:40 qiaomuf Exp $
+
+EAPI="4"
+inherit eutils versionator autotools
+
+MY_PN="libantlr3c"
+MY_P="${MY_PN}-$(get_version_component_range 1-2)-SNAPSHOT"
+DESCRIPTION="The ANTLR3 C Runtime"
+HOMEPAGE="http://fisheye2.atlassian.com/browse/antlr/runtime/C/dist/"
+SRC_URI="http://www.antlr.org/download/C/${MY_P}.tar.gz ->
+ ${MY_PN}-${PV}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE="debug debugger doc static-libs"
+
+DEPEND="doc? ( app-doc/doxygen )"
+RDEPEND=""
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-3.1.4-doxygen.patch"
+ epatch "${FILESDIR}/${PN}-3.3-cflags.patch"
+ mkdir m4
+ eautoreconf
+}
+
+src_configure() {
+ local myconf
+
+ if use amd64 || use ia64; then
+ myconf="${myconf} --enable-64bit"
+ else
+ myconf="${myconf} --disable-64bit"
+ fi
+
+ econf \
+ $(use_enable static-libs static) \
+ $(use_enable debug debuginfo ) \
+ $(use_enable debugger antlrdebug ) \
+ ${myconf}
+}
+
+src_compile() {
+ emake
+
+ if use doc; then
+ einfo "Generating documentation API ..."
+ doxygen -u doxyfile
+ doxygen doxyfile || die "doxygen failed"
+ fi
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+
+ # remove useless .la files
+ find "${D}" -name '*.la' -delete
+
+ dodoc AUTHORS ChangeLog NEWS README
+ if use doc; then
+ dohtml api/*
+ fi
+}
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
new file mode 100644
index 000000000000..6267a4ff676a
--- /dev/null
+++ b/dev-libs/antlr-c/files/antlr-c-3.1.4-doxygen.patch
@@ -0,0 +1,19 @@
+--- doxyfile
++++ doxyfile
+@@ -30,7 +30,6 @@
+ SHORT_NAMES = NO
+ JAVADOC_AUTOBRIEF = YES
+ MULTILINE_CPP_IS_BRIEF = NO
+-DETAILS_AT_TOP = YES
+ INHERIT_DOCS = YES
+ SEPARATE_MEMBER_PAGES = NO
+ TAB_SIZE = 4
+@@ -73,7 +72,7 @@
+ #---------------------------------------------------------------------------
+ # configuration options related to warning and progress messages
+ #---------------------------------------------------------------------------
+-QUIET = NO
++QUIET = YES
+ WARNINGS = YES
+ WARN_IF_UNDOCUMENTED = YES
+ WARN_IF_DOC_ERROR = YES
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
new file mode 100644
index 000000000000..854513311827
--- /dev/null
+++ b/dev-libs/antlr-c/files/antlr-c-3.3-cflags.patch
@@ -0,0 +1,14 @@
+diff -ur libantlr3c-3.3-SNAPSHOT.old//configure.ac libantlr3c-3.3-SNAPSHOT/configure.ac
+--- libantlr3c-3.3-SNAPSHOT.old//configure.ac 2011-04-03 10:40:51.277000042 +0300
++++ libantlr3c-3.3-SNAPSHOT/configure.ac 2011-04-03 10:41:22.092000042 +0300
+@@ -134,8 +134,8 @@
+ ;;
+ esac
+
+-CFLAGS="$CCFLAGS64 $CPPCMNTFLAGS $OPTIMFLAGS $DEBUGFLAGS $WARNFLAGS"
+-AC_MSG_RESULT([$CFLAGS])
++AM_CFLAGS="$CCFLAGS64 $CPPCMNTFLAGS $OPTIMFLAGS $DEBUGFLAGS $WARNFLAGS"
++AC_MSG_RESULT([$AM_CFLAGS])
+ AC_SUBST([OBJECT_MODE])
+
+ AS_IF([test "x$enable_antlrdebug" = xno], [AC_DEFINE([ANTLR3_NODEBUGGER], [1], [Define if ANTLR debugger not required])], [])
diff --git a/dev-libs/antlr-c/metadata.xml b/dev-libs/antlr-c/metadata.xml
new file mode 100644
index 000000000000..1428d9f4e7a1
--- /dev/null
+++ b/dev-libs/antlr-c/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>no-herd</herd>
+ <maintainer>
+ <email>betelgeuse@gentoo.org</email>
+ </maintainer>
+ <maintainer>
+ <email>qiaomuf@gentoo.org</email>
+ </maintainer>
+ <use>
+ <flag name='debugger'>Compiles debug info into the library</flag>
+ </use>
+</pkgmetadata>