/[gentoo-x86]/dev-haskell/happy/happy-1.18.6.ebuild
Gentoo

Contents of /dev-haskell/happy/happy-1.18.6.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Fri Sep 14 07:06:28 2012 UTC (2 years, 3 months ago) by qnikst
Branch: MAIN
Changes since 1.2: +3 -3 lines
adding mirror://hackage

(Portage version: 2.2.0_alpha125/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-haskell/happy/happy-1.18.6.ebuild,v 1.2 2011/08/05 10:53:54 slyfox Exp $
4
5 # ebuild generated by hackport 0.2.9
6
7 EAPI="3"
8
9 CABAL_FEATURES="bin"
10 inherit base haskell-cabal autotools
11
12 DESCRIPTION="Happy is a parser generator for Haskell"
13 HOMEPAGE="http://www.haskell.org/happy/"
14 SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
15
16 LICENSE="BSD"
17 SLOT="0"
18 KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
19 IUSE="doc"
20
21 RDEPEND=""
22 DEPEND="${RDEPEND}
23 >=dev-haskell/cabal-1.2.3
24 >=dev-haskell/mtl-1.0
25 >=dev-lang/ghc-6.8.2
26 dev-lang/perl
27 doc? ( ~app-text/docbook-xml-dtd-4.2
28 app-text/docbook-xsl-stylesheets )"
29
30 PATCHES=("${FILESDIR}/${PN}-1.18.6-man.patch"
31 "${FILESDIR}/${PN}-1.18.6-missing-tests.patch")
32
33 src_prepare() {
34 base_src_prepare
35
36 use doc && cd doc && eautoconf
37 }
38
39 src_configure() {
40 cabal_src_configure
41
42 if use doc; then
43 cd doc && econf || die "econf failed in /doc"
44 fi
45 }
46
47 src_compile() {
48 cabal_src_compile
49
50 if use doc; then
51 cd doc && emake -j1 || die "emake failed in /doc"
52 fi
53 }
54
55 src_test() {
56 emake -C "${S}/tests/" || die "emake for tests failed"
57 }
58
59 src_install() {
60 cabal_src_install
61 if use doc; then
62 cd doc
63 dohtml -r happy/*
64 doman "${S}/doc/happy.1"
65 fi
66 }

  ViewVC Help
Powered by ViewVC 1.1.20