blob: ad2bf0347d5bec730a23511ab3516a671fed1398 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-haskell/haxml/haxml-1.13-r1.ebuild,v 1.4 2006/05/03 23:08:47 dcoutts Exp $
CABAL_FEATURES="lib bin haddock"
inherit base haskell-cabal
MY_PN=HaXml
MY_P=${MY_PN}-${PV}
DESCRIPTION="Haskell utilities for parsing, filtering, transforming and generating XML documents"
HOMEPAGE="http://www.haskell.org/HaXml/"
SRC_URI="http://www.haskell.org/HaXml/${MY_P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
IUSE=""
# actually, >=ghc-5.02 should be ok (if not using cabal)
# hugs and nhc98 are ok too, somebody might want to add support for them
DEPEND=">=virtual/ghc-6.2
>=dev-haskell/cabal-1.1.3-r1"
S=${WORKDIR}/${MY_P}
src_unpack() {
base_src_unpack
# Text.PrettyPrint is already provided by ghc and produces a conflict
rm -rf "${S}/src/Text/PrettyPrint"
# The HaXml.cabal file doesn't build the tools, so we add them in:
for binary in Canonicalise DtdToHaskell MkOneOf Validate Xtract; do
echo >> "${S}/HaXml.cabal"
echo "executable: ${binary}" >> "${S}/HaXml.cabal"
echo "main-is: ${binary}.hs" >> "${S}/HaXml.cabal"
echo "hs-source-dirs: src/tools src">> "${S}/HaXml.cabal"
echo "extensions: CPP" >> "${S}/HaXml.cabal"
done
}
src_install() {
cabal_src_install
if use doc; then
dohtml -r docs/*
dodoc docs/icfp99.dvi docs/icfp99.ps.gz
fi
}
|