/[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.6 - (hide annotations) (download)
Thu Aug 16 12:33:34 2012 UTC (2 years, 1 month ago) by nativemad
Branch: MAIN
Changes since 1.5: +2 -2 lines
x86 stable, see bug 422015

(Portage version: 2.1.11.9/cvs/Linux i686)

1 slyfox 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 nativemad 1.6 # $Header: /var/cvsroot/gentoo-x86/dev-haskell/alex/alex-3.0.2.ebuild,v 1.5 2012/08/09 09:52:22 slyfox Exp $
4 slyfox 1.1
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="http://hackage.haskell.org/packages/archive/${PN}/${PV}/${P}.tar.gz"
15    
16     LICENSE="BSD"
17     SLOT="0"
18 nativemad 1.6 KEYWORDS="alpha amd64 ia64 ppc ppc64 sparc x86"
19 slyfox 1.1 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     for f in Scan Parser; do
32     rm "${S}/src/$f."*
33     mv "${S}/dist/build/alex/alex-tmp/$f.hs" "${S}"/src/
34     done
35    
36     if use doc; then
37     cd "${S}/doc/"
38     eautoreconf || die "eautoreconf for docs failed"
39     fi
40     }
41    
42     src_configure() {
43     cabal_src_configure
44    
45     if use doc; then
46     cd "${S}/doc/"
47     econf || die "econf for docs failed"
48     fi
49     }
50    
51     src_compile() {
52     cabal_src_compile
53    
54     if use doc; then
55     emake -C "${S}/doc/" -j1 || die "emake for docs failed"
56     fi
57     }
58    
59     src_test() {
60     emake -C "${S}/tests/" || die "emake for tests failed"
61     }
62    
63     src_install() {
64     cabal_src_install
65    
66     if use doc; then
67     doman "${S}/doc/alex.1"
68     dohtml -r "${S}/doc/alex/"
69     fi
70     dodoc README
71     }

  ViewVC Help
Powered by ViewVC 1.1.20