/[gentoo-x86]/dev-haskell/alex/alex-2.2.ebuild
Gentoo

Contents of /dev-haskell/alex/alex-2.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun Feb 27 20:15:23 2011 UTC (7 years, 2 months ago) by slyfox
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
removed old

(Portage version: 2.1.9.25/cvs/Linux x86_64)

1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-haskell/alex/alex-2.2.ebuild,v 1.2 2008/01/26 20:24:10 dcoutts Exp $
4
5 CABAL_FEATURES="bin"
6 inherit autotools haskell-cabal
7
8 DESCRIPTION="A lexical analyser generator for Haskell"
9 HOMEPAGE="http://www.haskell.org/alex"
10 SRC_URI="http://www.haskell.org/alex/dist/${PV}/${P/_/}.tar.gz"
11
12 LICENSE="as-is"
13 SLOT="0"
14 KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
15 IUSE="doc"
16
17 DEPEND=">=dev-lang/ghc-6.4
18 >=dev-haskell/cabal-1.2.1
19 doc? ( ~app-text/docbook-xml-dtd-4.2
20 app-text/docbook-xsl-stylesheets
21 >=dev-libs/libxslt-1.1.2 )"
22 RDEPEND=""
23
24 src_unpack() {
25 unpack ${A}
26
27 if use doc; then
28 cd "${S}/doc/"
29 eautoreconf || die "eautoreconf for docs failed"
30 fi
31 }
32
33 src_compile() {
34 cabal_src_compile
35
36 if use doc; then
37 cd "${S}/doc/"
38 econf || die "econf for docs failed"
39 emake -j1 || die "emake for docs failed"
40 fi
41 }
42
43 src_install() {
44 cabal_src_install
45
46 if use doc; then
47 doman "${S}/doc/alex.1"
48 dohtml -r "${S}/doc/alex/"
49 fi
50 dodoc README
51 }

  ViewVC Help
Powered by ViewVC 1.1.20