summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMu Qiao <qiaomuf@gentoo.org>2011-06-04 09:27:49 +0800
committerMu Qiao <qiaomuf@gentoo.org>2011-06-04 09:27:49 +0800
commitad37aa73c8b71d0d75a4b670b93d71ff02f13292 (patch)
treeddce31bdd4bded50a970320f1bcfdb6b88e578c3
parentFix libbash dependency and license (diff)
downloadqiaomuf-ad37aa73c8b71d0d75a4b670b93d71ff02f13292.tar.gz
qiaomuf-ad37aa73c8b71d0d75a4b670b93d71ff02f13292.tar.bz2
qiaomuf-ad37aa73c8b71d0d75a4b670b93d71ff02f13292.zip
Add antlr-c
-rw-r--r--dev-libs/antlr-c/Manifest4
-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
4 files changed, 105 insertions, 0 deletions
diff --git a/dev-libs/antlr-c/Manifest b/dev-libs/antlr-c/Manifest
new file mode 100644
index 0000000..a440044
--- /dev/null
+++ b/dev-libs/antlr-c/Manifest
@@ -0,0 +1,4 @@
+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 1396 RMD160 0ce3ed14ee3f658d9cea1d5c085a4e62e021b78b SHA1 a7e8cc5a5a966047031820de5028e87e477d8459 SHA256 3349dab78802cd24c57b0c58667bb5d8a31f845a98744d1e8858440547652561
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 0000000..af34b2c
--- /dev/null
+++ b/dev-libs/antlr-c/antlr-c-3.3_pre20110403.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: 2009/10/07 florent.teichteil@gmail.com 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 0000000..6267a4f
--- /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 0000000..8545133
--- /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])], [])