1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit eutils autotools
8 DESCRIPTION="Compiles finite state machines from regular languages into executable code"
9 HOMEPAGE="http://www.complang.org/ragel/"
10 SRC_URI="http://www.complang.org/ragel/${P}.tar.gz"
14 KEYWORDS="~alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
20 # We need to get the txl language in Portage to have the tests :(
23 DOCS=( ChangeLog CREDITS README TODO )
26 epatch "${FILESDIR}"/${P}+gcc-4.7.patch
27 epatch "${FILESDIR}"/${P}-cross-compile.patch #473970
28 sed -i -e '/CXXFLAGS/d' configure.in || die
34 econf --docdir="${EPREFIX}"/usr/share/doc/${PF}
45 if use vim-syntax; then
46 insinto /usr/share/vim/vimfiles/syntax