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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Fri Aug 2 07:12:20 2013 UTC (4 years, 10 months ago) by slyfox
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +2 -2 lines
Fix alex build failure on nonempty HCFLAGS (by hasufell).

(Portage version: 2.2.0_alpha190/cvs/Linux x86_64, signed Manifest commit with key 611FF3AA)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-haskell/alex/alex-3.0.5.ebuild,v 1.9 2013/06/29 16:19:58 ago Exp $
4
5 EAPI=5
6
7 # ebuild generated by hackport 0.3.2.9999
8
9 CABAL_FEATURES="bin test-suite"
10 inherit autotools eutils haskell-cabal
11
12 DESCRIPTION="Alex is a tool for generating lexical analysers in Haskell"
13 HOMEPAGE="http://www.haskell.org/alex/"
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.8
24 >=dev-haskell/quickcheck-2
25 >=dev-lang/ghc-6.10.4
26 doc? ( ~app-text/docbook-xml-dtd-4.2
27 app-text/docbook-xsl-stylesheets
28 >=dev-libs/libxslt-1.1.2 )"
29
30 src_prepare() {
31 HCFLAGS+=" -XBangPatterns" #fixes build failure on BE platforms; bug 466778
32
33 cabal_chdeps \
34 'build-depends: process' 'build-depends: process, base'
35
36 for f in Scan Parser; do
37 rm "${S}/src/$f."*
38 mv "${S}/dist/build/alex/alex-tmp/$f.hs" "${S}"/src/
39 done
40
41 if use doc; then
42 cd "${S}/doc/"
43 eautoreconf || die "eautoreconf for docs failed"
44 fi
45 }
46
47 src_configure() {
48 haskell-cabal_src_configure
49
50 if use doc; then
51 cd "${S}/doc/"
52 econf || die "econf for docs failed"
53 fi
54 }
55
56 src_compile() {
57 cabal_src_compile
58
59 if use doc; then
60 emake -C "${S}/doc/" -j1 || die "emake for docs failed"
61 fi
62 }
63
64 src_install() {
65 cabal_src_install
66
67 if use doc; then
68 doman "${S}/doc/alex.1"
69 dohtml -r "${S}/doc/alex/"
70 fi
71 dodoc README
72 }

  ViewVC Help
Powered by ViewVC 1.1.20