1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 # ebuild generated by hackport 0.5.6.9999
7 #hackport: flags: +small_base
9 CABAL_FEATURES="test-suite"
10 inherit autotools haskell-cabal
12 DESCRIPTION="Alex is a tool for generating lexical analysers in Haskell"
13 HOMEPAGE="http://www.haskell.org/alex/"
14 SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz"
18 KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
21 RDEPEND=">=dev-lang/ghc-7.4.1:="
23 >=dev-haskell/cabal-1.8
24 doc? ( ~app-text/docbook-xml-dtd-4.2
25 app-text/docbook-xsl-stylesheets
26 >=dev-libs/libxslt-1.1.2 )
38 # make sure we don't accidentally use those
40 haskell-cabal_src_configure \
52 haskell-cabal_src_compile
55 emake -C "${S}/doc/" -j1
60 # 1. workaround Setup.hs deadlock: https://github.com/haskell/cabal/issues/2398
61 # 2. use freshly built ALEX= binary and datadir path
62 alex_datadir="${S}"/data \
63 emake -k -C tests all ALEX="${S}"/dist/build/alex/alex
67 haskell-cabal_src_install
70 doman "${S}/doc/alex.1"
71 dohtml -r "${S}/doc/alex/"