summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMu Qiao <qiaomuf@gentoo.org>2011-07-06 09:35:54 +0800
committerMu Qiao <qiaomuf@gentoo.org>2011-07-06 09:35:54 +0800
commitfd9e43ef8c7197d70c77ad03ff0a05ddbf1c0abc (patch)
tree4de70270a0e0f3bd67a0f3c07c071209033fc752 /dev-libs/antlr-c/antlr-c-3.4_beta4.ebuild
parentlibbash: fix dependency on paludis (diff)
downloadqiaomuf-fd9e43ef8c7197d70c77ad03ff0a05ddbf1c0abc.tar.gz
qiaomuf-fd9e43ef8c7197d70c77ad03ff0a05ddbf1c0abc.tar.bz2
qiaomuf-fd9e43ef8c7197d70c77ad03ff0a05ddbf1c0abc.zip
antlr-c: version bump for antlr 3.4
(Portage version: 2.1.10.4/git/Linux x86_64, signed Manifest commit with key 17B157E9)
Diffstat (limited to 'dev-libs/antlr-c/antlr-c-3.4_beta4.ebuild')
-rw-r--r--dev-libs/antlr-c/antlr-c-3.4_beta4.ebuild61
1 files changed, 61 insertions, 0 deletions
diff --git a/dev-libs/antlr-c/antlr-c-3.4_beta4.ebuild b/dev-libs/antlr-c/antlr-c-3.4_beta4.ebuild
new file mode 100644
index 0000000..173b162
--- /dev/null
+++ b/dev-libs/antlr-c/antlr-c-3.4_beta4.ebuild
@@ -0,0 +1,61 @@
+# 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
+
+MY_PN="libantlr3c"
+MY_PV=${PV/_/-}
+MY_P="${MY_PN}-${MY_PV}"
+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"
+
+LICENSE="BSD"
+SLOT="3.4"
+KEYWORDS="~x86 ~amd64"
+IUSE="debug debugger doc static-libs"
+
+DEPEND="doc? ( app-doc/doxygen )"
+RDEPEND=""
+
+S="${WORKDIR}/${MY_P}"
+
+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
+}