blob: a23d460eabe61f4aa5113f547dd5a77b6741d5d0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
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
}
|