/[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.1 - (show annotations) (download)
Tue Apr 2 04:13:22 2013 UTC (5 years, 2 months ago) by gienah
Branch: MAIN
Bump alex to 3.0.5

(Portage version: 2.2.0_alpha171/cvs/Linux x86_64, signed Manifest commit with key 618E971F)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
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 cabal_chdeps \
32 'build-depends: process' 'build-depends: process, base'
33
34 for f in Scan Parser; do
35 rm "${S}/src/$f."*
36 mv "${S}/dist/build/alex/alex-tmp/$f.hs" "${S}"/src/
37 done
38
39 if use doc; then
40 cd "${S}/doc/"
41 eautoreconf || die "eautoreconf for docs failed"
42 fi
43 }
44
45 src_configure() {
46 haskell-cabal_src_configure
47
48 if use doc; then
49 cd "${S}/doc/"
50 econf || die "econf for docs failed"
51 fi
52 }
53
54 src_compile() {
55 cabal_src_compile
56
57 if use doc; then
58 emake -C "${S}/doc/" -j1 || die "emake for docs failed"
59 fi
60 }
61
62 src_install() {
63 cabal_src_install
64
65 if use doc; then
66 doman "${S}/doc/alex.1"
67 dohtml -r "${S}/doc/alex/"
68 fi
69 dodoc README
70 }

  ViewVC Help
Powered by ViewVC 1.1.20