summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Kolmodin <kolmodin@gentoo.org>2009-02-09 06:14:49 +0000
committerLennart Kolmodin <kolmodin@gentoo.org>2009-02-09 06:14:49 +0000
commit9c45acec2a19e8fdc34781dccabd5d57ea80a2b9 (patch)
treeff9b2ab34f10bed61eb9e7ac8dc58fe1ba5702e9 /dev-util/bnfc
parentStable for HPPA (bug #256681). (diff)
downloadgentoo-2-9c45acec2a19e8fdc34781dccabd5d57ea80a2b9.tar.gz
gentoo-2-9c45acec2a19e8fdc34781dccabd5d57ea80a2b9.tar.bz2
gentoo-2-9c45acec2a19e8fdc34781dccabd5d57ea80a2b9.zip
Version bump dev-util/bnfc
(Portage version: 2.1.6.4/cvs/Linux 2.6.28-gentoo x86_64)
Diffstat (limited to 'dev-util/bnfc')
-rw-r--r--dev-util/bnfc/ChangeLog9
-rw-r--r--dev-util/bnfc/bnfc-2.4_beta.ebuild45
2 files changed, 52 insertions, 2 deletions
diff --git a/dev-util/bnfc/ChangeLog b/dev-util/bnfc/ChangeLog
index 8ac99417b462..96fd091bea4d 100644
--- a/dev-util/bnfc/ChangeLog
+++ b/dev-util/bnfc/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-util/bnfc
-# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/bnfc/ChangeLog,v 1.9 2008/07/07 18:44:24 kolmodin Exp $
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/bnfc/ChangeLog,v 1.10 2009/02/09 06:14:49 kolmodin Exp $
+
+*bnfc-2.4_beta (09 Feb 2009)
+
+ 09 Feb 2009; Lennart Kolmodin <kolmodin@gentoo.org> +bnfc-2.4_beta.ebuild:
+ Bump version. Should work better with the more recent toolchains.
07 Jul 2008; Lennart Kolmodin <kolmodin@gentoo.org> bnfc-2.1.2.ebuild,
bnfc-2.2.ebuild:
diff --git a/dev-util/bnfc/bnfc-2.4_beta.ebuild b/dev-util/bnfc/bnfc-2.4_beta.ebuild
new file mode 100644
index 000000000000..2ab5f32a388e
--- /dev/null
+++ b/dev-util/bnfc/bnfc-2.4_beta.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/bnfc/bnfc-2.4_beta.ebuild,v 1.1 2009/02/09 06:14:49 kolmodin Exp $
+
+inherit base ghc-package eutils
+
+MY_PN="BNFC"
+MY_PV="${PV%%_beta*}"
+
+IS_BETA="${PV%%*_beta*}"
+[[ -z "${IS_BETA}" ]] && MY_PV+=b
+
+DESCRIPTION="BNF Converter -- a sophisticated parser generator"
+HOMEPAGE="http://www.cs.chalmers.se/~markus/BNFC/"
+SRC_URI="http://www.cs.chalmers.se/Cs/Research/Language-technology/BNFC/download/${MY_PN}-${MY_PV}.tgz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~ppc ~amd64"
+
+IUSE="doc"
+
+DEPEND=">=dev-lang/ghc-6.6
+ doc? ( virtual/latex-base )"
+
+RDEPEND="virtual/libc"
+
+S="${WORKDIR}/${MY_PN}"
+
+src_compile() {
+ emake GHC="$(ghc-getghc) -O" || die "emake failed"
+ if use doc ; then
+ cd doc
+ pdflatex LBNF-report.tex
+ pdflatex LBNF-report.tex
+ fi
+}
+
+src_install() {
+ dobin bnfc
+ if use doc ; then
+ cd doc
+ insinto "/usr/share/doc/${P}"
+ doins LBNF-report.pdf
+ fi
+}