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

Contents of /dev-haskell/alex/alex-2.0.1-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.19 - (show annotations) (download)
Sat Jan 26 20:24:10 2008 UTC (10 years, 8 months ago) by dcoutts
Branch: MAIN
CVS Tags: HEAD
Changes since 1.18: +1 -1 lines
FILE REMOVED
Fix qa bug #207490 and remove old version.
(Portage version: 2.1.3.19)

1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-haskell/alex/alex-2.0.1-r1.ebuild,v 1.18 2007/12/13 00:39:22 dcoutts Exp $
4 #
5 # USE variable summary:
6 # doc - Build extra documenation from DocBook sources,
7 # in HTML format.
8 # java - Build the above docs as PostScript as well.
9
10 inherit base eutils ghc-package
11 IUSE="doc"
12 # java use flag disabled because of bug #107019
13
14 DESCRIPTION="A lexical analyser generator for Haskell"
15 SRC_URI="http://www.haskell.org/alex/dist/${P}-src.tar.gz"
16 HOMEPAGE="http://www.haskell.org/alex"
17
18 SLOT="0"
19 KEYWORDS="amd64 ~ia64 ppc ppc64 sparc x86"
20 LICENSE="as-is"
21
22 DEPEND=">=dev-lang/ghc-6.2
23 doc? ( ~app-text/docbook-xml-dtd-4.2
24 app-text/docbook-xsl-stylesheets
25 >=dev-libs/libxslt-1.1.2 )"
26 # java? >=dev-java/fop-0.20.5
27 RDEPEND=""
28
29 src_compile() {
30 local mydoc
31 econf || die "econf failed"
32
33 # determine what to do with documentation
34 if use doc; then
35 mydoc="html"
36 #if use java; then
37 # mydoc="${mydoc} ps"
38 #fi
39 else
40 mydoc=""
41 # needed to prevent haddock from being called
42 echo NO_HADDOCK_DOCS=YES >> mk/build.mk
43 fi
44 echo XMLDocWays="${mydoc}" >> mk/build.mk
45
46 emake -j1 || die "make failed"
47 }
48
49 src_install() {
50 local insttarget
51
52 insttarget="install"
53 use doc && insttarget="${insttarget} install-docs"
54 emake -j1 ${insttarget} \
55 prefix="${D}/usr" \
56 datadir="${D}/usr/share/doc/${PF}" \
57 infodir="${D}/usr/share/info" \
58 mandir="${D}/usr/share/man" \
59 libdir0="${D}/usr/$(get_libdir)" \
60 || die "make ${insttarget} failed"
61
62 dodoc "${S}/haddock/README"
63 }

  ViewVC Help
Powered by ViewVC 1.1.20