blob: 26f1ff001b99cfce980a9d62d02e526bf5cc5083 (
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
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-util/ragel/ragel-6.2.ebuild,v 1.5 2008/09/03 10:07:42 opfer Exp $
inherit eutils
DESCRIPTION="Compiles finite state machines from regular languages into executable code."
HOMEPAGE="http://www.cs.queensu.ca/~thurston/ragel/"
SRC_URI="http://www.cs.queensu.ca/~thurston/ragel/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
IUSE="doc vim-syntax"
DEPEND="doc? ( virtual/latex-base
media-gfx/transfig )"
RDEPEND=""
src_compile() {
find "${S}" -iname "Makefile*" -exec sed -i \
-e "s:install -s:install:" \
-e '/\$(CXX)/s:CFLAGS:CXXFLAGS:' \
{} \;
econf || die
make || die
pushd doc
make ragel.1 rlgen-{cd,java,ruby,dot}.1 || die
popd
if use doc ; then
pushd doc
make ragel-guide.pdf || die
popd
fi
}
src_install() {
einstall || die
for i in cd java ruby dot; do
dobin rlgen-${i}/rlgen-${i}
done
doman doc/ragel.1 doc/rlgen-{cd,java,ruby,dot}.1
dodoc ChangeLog CREDITS README TODO
use doc && \
install -m 644 -D doc/ragel-guide.pdf \
"${D}/usr/share/doc/${PF}/ragel-guide.pdf"
use vim-syntax && \
install -m 644 -D ragel.vim \
"${D}/usr/share/vim/vimfiles/syntax/ragel.vim"
}
|