/[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.3 - (hide annotations) (download)
Mon Jun 24 05:17:03 2013 UTC (4 years, 11 months ago) by ago
Branch: MAIN
Changes since 1.2: +2 -2 lines
Stable for ppc, wrt bug #472714

(Portage version: 2.1.12.2/cvs/Linux ppc64, RepoMan options: --include-arches="ppc", signed Manifest commit with key 7194459F)

1 gienah 1.1 # Copyright 1999-2013 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 ago 1.3 # $Header: /var/cvsroot/gentoo-x86/dev-haskell/alex/alex-3.0.5.ebuild,v 1.2 2013/04/22 17:36:11 slyfox Exp $
4 gienah 1.1
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 ago 1.3 KEYWORDS="~alpha ~amd64 ~ia64 ppc ~ppc64 ~sparc ~x86"
19 gienah 1.1 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 slyfox 1.2 HCFLAGS+=-XBangPatterns #fixes build failure on BE platforms; bug 466778
32    
33 gienah 1.1 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