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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (show annotations) (download)
Thu Nov 14 18:12:08 2013 UTC (15 months, 2 weeks ago) by slyfox
Branch: MAIN
CVS Tags: HEAD
Changes since 1.8: +1 -1 lines
FILE REMOVED
Version bump. Removed old.

(Portage version: 2.2.7_p18/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.2.ebuild,v 1.8 2013/04/22 17:36:11 slyfox Exp $
4
5 # ebuild generated by hackport 0.2.9
6
7 EAPI="3"
8
9 CABAL_FEATURES="bin"
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.6
24 >=dev-haskell/quickcheck-2
25 >=dev-lang/ghc-6.8.2
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 for f in Scan Parser; do
34 rm "${S}/src/$f."*
35 mv "${S}/dist/build/alex/alex-tmp/$f.hs" "${S}"/src/
36 done
37
38 if use doc; then
39 cd "${S}/doc/"
40 eautoreconf || die "eautoreconf for docs failed"
41 fi
42 }
43
44 src_configure() {
45 cabal_src_configure
46
47 if use doc; then
48 cd "${S}/doc/"
49 econf || die "econf for docs failed"
50 fi
51 }
52
53 src_compile() {
54 cabal_src_compile
55
56 if use doc; then
57 emake -C "${S}/doc/" -j1 || die "emake for docs failed"
58 fi
59 }
60
61 src_test() {
62 emake -C "${S}/tests/" || die "emake for tests failed"
63 }
64
65 src_install() {
66 cabal_src_install
67
68 if use doc; then
69 doman "${S}/doc/alex.1"
70 dohtml -r "${S}/doc/alex/"
71 fi
72 dodoc README
73 }

  ViewVC Help
Powered by ViewVC 1.1.20