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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Fri Sep 14 07:06:28 2012 UTC (22 months, 1 week ago) by qnikst
Branch: MAIN
Changes since 1.7: +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.2.ebuild,v 1.7 2011/02/25 12:45:43 xarthisius Exp $
4
5 CABAL_FEATURES="bin"
6 CABAL_MIN_VERSION=1.2
7 inherit haskell-cabal autotools
8
9 DESCRIPTION="A yacc-like parser generator for Haskell"
10 HOMEPAGE="http://haskell.org/happy/"
11 SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
12
13 LICENSE="BSD"
14 SLOT="0"
15 KEYWORDS="amd64 ia64 ppc ppc64 sparc x86"
16 IUSE="doc"
17
18 DEPEND=">=dev-lang/ghc-6.4
19 dev-haskell/mtl
20 doc? ( ~app-text/docbook-xml-dtd-4.2
21 app-text/docbook-xsl-stylesheets )"
22 RDEPEND=""
23
24 src_unpack() {
25 unpack ${A}
26 cd "${S}/doc" && eautoconf
27 }
28
29 src_compile() {
30 cabal_src_compile
31 if use doc; then
32 cd doc
33 econf || die "econf failed in /doc"
34 emake -j1 || die "emake failed in /doc"
35 fi
36 }
37
38 src_install() {
39 cabal_src_install
40 use doc && cd doc && dohtml -r happy/*
41 }

  ViewVC Help
Powered by ViewVC 1.1.20