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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Wed Mar 23 16:40:43 2005 UTC (13 years, 7 months ago) by kosmikus
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Fixed installation paths. Added ~amd64 keyword.
(Portage version: 2.0.51.19)

1 # Copyright 1999-2005 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.ebuild,v 1.1 2005/03/23 14:08:15 kosmikus Exp $
4 #
5 # USE variable summary:
6 # doc - Build extra documenation from DocBook sources,
7 # in HTML format.
8 # tetex - Build the above docs as PostScript as well.
9
10
11 inherit base eutils ghc-package
12 IUSE="doc tetex"
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="~x86"
20 LICENSE="as-is"
21
22 DEPEND=">=virtual/ghc-6.2.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
28 RDEPEND=""
29
30 src_compile() {
31 local mydoc
32 econf || die "econf failed"
33
34 # determine what to do with documentation
35 if use doc; then
36 mydoc="html"
37 if use java; then
38 mydoc="${mydoc} ps"
39 fi
40 else
41 mydoc=""
42 # needed to prevent haddock from being called
43 echo NO_HADDOCK_DOCS=YES >> mk/build.mk
44 fi
45 echo XMLDocWays="${mydoc}" >> mk/build.mk
46
47 emake -j1 || die "make failed"
48 }
49
50 src_install() {
51 local insttarget
52
53 insttarget="install"
54 use doc && insttarget="${insttarget} install-docs"
55 emake -j1 ${insttarget} \
56 prefix="${D}/usr" \
57 datadir="${D}/usr/share/doc/${PF}" \
58 infodir="${D}/usr/share/info" \
59 mandir="${D}/usr/share/man" \
60 libdir0="${D}/usr/$(get-libdir)" \
61 || die "make ${insttarget} failed"
62
63 cd ${S}/haddock
64 dodoc CHANGES LICENSE README TODO
65
66 # if use doc; then
67 # cd ${S}/alex/doc
68 # dohtml -r alex/* || die
69 # dosym alex.html /usr/share/doc/${PF}/html/index.html
70 # if use tetex; then
71 # docinto ps
72 # dodoc alex.ps || die "dodoc failed"
73 # fi
74 # fi
75 }

  ViewVC Help
Powered by ViewVC 1.1.20