diff options
author | Mu Qiao <qiaomuf@gentoo.org> | 2011-06-10 07:02:40 +0000 |
---|---|---|
committer | Mu Qiao <qiaomuf@gentoo.org> | 2011-06-10 07:02:40 +0000 |
commit | e8c36a3f660533f7cd8a2a011c038a778d464d74 (patch) | |
tree | 1d9fbbccf2ebee87cbe181bc0306250a21752bea /dev-libs | |
parent | Upstream patch: Fix regression in marshalling objects as object paths. Thanks... (diff) | |
download | gentoo-2-e8c36a3f660533f7cd8a2a011c038a778d464d74.tar.gz gentoo-2-e8c36a3f660533f7cd8a2a011c038a778d464d74.tar.bz2 gentoo-2-e8c36a3f660533f7cd8a2a011c038a778d464d74.zip |
Initial commit for antlr-c
(Portage version: 2.1.10/cvs/Linux x86_64)
Diffstat (limited to 'dev-libs')
-rw-r--r-- | dev-libs/antlr-c/ChangeLog | 11 | ||||
-rw-r--r-- | dev-libs/antlr-c/antlr-c-3.3_pre20110403.ebuild | 68 | ||||
-rw-r--r-- | dev-libs/antlr-c/files/antlr-c-3.1.4-doxygen.patch | 19 | ||||
-rw-r--r-- | dev-libs/antlr-c/files/antlr-c-3.3-cflags.patch | 14 | ||||
-rw-r--r-- | dev-libs/antlr-c/metadata.xml | 14 |
5 files changed, 126 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/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> |