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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Tue Mar 20 16:12:10 2012 UTC (6 years, 7 months ago) by slyfox
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
FILE REMOVED
Dropped old.

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

1 # Copyright 1999-2010 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.3.1.ebuild,v 1.7 2010/11/14 18:39:19 slyfox Exp $
4
5 CABAL_FEATURES="bin"
6 inherit autotools haskell-cabal
7
8 DESCRIPTION="Alex is a tool for generating lexical analysers in Haskell"
9 HOMEPAGE="http://www.haskell.org/alex/"
10 SRC_URI="http://hackage.haskell.org/packages/archive/${PN}/${PV}/${P}.tar.gz"
11
12 LICENSE="BSD"
13 SLOT="0"
14 KEYWORDS="amd64 ia64 ~ppc ~ppc64 sparc x86"
15 IUSE="doc"
16
17 DEPEND=">=dev-lang/ghc-6.6.1
18 >=dev-haskell/cabal-1.2
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