/[gentoo-x86]/dev-util/kelbt/kelbt-0.15.ebuild
Gentoo

Contents of /dev-util/kelbt/kelbt-0.15.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun Jun 24 07:56:56 2012 UTC (3 years, 1 month ago) by flameeyes
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +7 -5 lines
Add patch to fix build with gcc 4.7 (keep the same name since it's the same patch as ragel's).

(Portage version: 2.2.0_alpha110/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-util/kelbt/kelbt-0.15.ebuild,v 1.1 2012/05/22 23:46:46 flameeyes Exp $
4
5 EAPI=4
6
7 inherit eutils
8
9 DESCRIPTION="A backtracking LR parser by the author of Ragel"
10 HOMEPAGE="http://www.complang.org/kelbt/"
11 SRC_URI="http://www.complang.org/kelbt/${P}.tar.gz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="~amd64 ~x86-fbsd"
16 IUSE="vim-syntax"
17
18 RDEPEND=""
19
20 src_prepare() {
21 find "${S}" -iname "Makefile*" -exec sed -i \
22 -e '/\$(CXX)/s:CFLAGS:CXXFLAGS:' \
23 {} \;
24
25 epatch "${FILESDIR}"/ragel-6.7+gcc-4.7.patch
26 }
27
28 src_compile() {
29 emake CXXFLAGS="${CXXFLAGS}" LDFLAGS="${LDFLAGS}"
30 }
31
32 src_test() {
33 cd "${S}"/test
34 ./runtests || die "tests failed"
35 }
36
37 src_install() {
38 dobin kelbt/kelbt
39 dodoc TODO CREDITS ChangeLog
40
41 if use vim-syntax; then
42 insinto /usr/share/vim/vimfiles/syntax
43 doins ${PN}.vim
44 fi
45 }

  ViewVC Help
Powered by ViewVC 1.1.20