summaryrefslogtreecommitdiff
blob: b95dade290f7fea3619f02cc3cbc3834738e252a (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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-text/pandoc/pandoc-1.9.2.ebuild,v 1.1 2012/04/07 05:24:37 gienah Exp $

# ebuild generated by hackport 0.2.17.9999

EAPI=4

CABAL_FEATURES="bin lib profile haddock hoogle hscolour"
inherit haskell-cabal

DESCRIPTION="Conversion between markup formats"
HOMEPAGE="http://johnmacfarlane.net/pandoc"
SRC_URI="http://hackage.haskell.org/packages/archive/${PN}/${PV}/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"

RDEPEND="=dev-haskell/base64-bytestring-0.1*[profile?]
		>=dev-haskell/blaze-html-0.4.3.0[profile?]
		<dev-haskell/blaze-html-0.5[profile?]
		>=dev-haskell/citeproc-hs-0.3.4[profile?]
		<dev-haskell/citeproc-hs-0.4[profile?]
		>=dev-haskell/highlighting-kate-0.5.0.2[profile?]
		<dev-haskell/highlighting-kate-0.6[profile?]
		>=dev-haskell/http-4000.0.5[profile?]
		<dev-haskell/http-4000.3[profile?]
		>=dev-haskell/json-0.4[profile?]
		<dev-haskell/json-0.6[profile?]
		>=dev-haskell/mtl-1.1[profile?]
		<dev-haskell/mtl-2.1[profile?]
		>=dev-haskell/network-2[profile?]
		<dev-haskell/network-2.4[profile?]
		>=dev-haskell/pandoc-types-1.9.0.2[profile?]
		<dev-haskell/pandoc-types-1.10[profile?]
		=dev-haskell/parsec-3.1*[profile?]
		>=dev-haskell/random-1[profile?]
		<dev-haskell/random-1.1[profile?]
		>=dev-haskell/syb-0.1[profile?]
		<dev-haskell/syb-0.4[profile?]
		>=dev-haskell/tagsoup-0.12.5[profile?]
		<dev-haskell/tagsoup-0.13[profile?]
		=dev-haskell/temporary-1.1*[profile?]
		>=dev-haskell/texmath-0.6.0.2[profile?]
		<dev-haskell/texmath-0.7[profile?]
		>=dev-haskell/time-1.2[profile?]
		<dev-haskell/time-1.5[profile?]
		=dev-haskell/utf8-string-0.3*[profile?]
		>=dev-haskell/xml-1.3.12[profile?]
		<dev-haskell/xml-1.4[profile?]
		>=dev-haskell/zip-archive-0.1.1.7[profile?]
		<dev-haskell/zip-archive-0.2[profile?]
		=dev-haskell/zlib-0.5*[profile?]
		>=dev-lang/ghc-6.10.1"
DEPEND="${RDEPEND}
		>=dev-haskell/cabal-1.10
		test? ( dev-haskell/ansi-terminal[profile?]
			dev-haskell/diff[profile?]
			dev-haskell/hunit[profile?]
			dev-haskell/quickcheck:2[profile?]
			dev-haskell/test-framework-hunit[profile?]
			dev-haskell/test-framework-quickcheck2[profile?]
			dev-haskell/test-framework[profile?]
		)
		"

src_configure() {
	cabal_src_configure \
		$(cabal_flag test tests)
}

src_install() {
	cabal_src_install

	doman "${S}/man/man1/${PN}.1"

	# COPYING is installed by the Cabal eclass
	dodoc README COPYRIGHT changelog
}