Gentoo Archives: gentoo-commits

From: "Mark Wright (gienah)" <gienah@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-haskell/haddock: haddock-2.13.2.ebuild ChangeLog
Date: Sun, 26 May 2013 04:07:13
Message-Id: 20130526040708.4296A2171D@flycatcher.gentoo.org
1 gienah 13/05/26 04:07:08
2
3 Modified: ChangeLog
4 Added: haddock-2.13.2.ebuild
5 Log:
6 Bump haddock to 2.13.2
7
8 (Portage version: 2.2.0_alpha177/cvs/Linux x86_64, signed Manifest commit with key 618E971F)
9
10 Revision Changes Path
11 1.107 dev-haskell/haddock/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/haddock/ChangeLog?rev=1.107&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/haddock/ChangeLog?rev=1.107&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/haddock/ChangeLog?r1=1.106&r2=1.107
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-haskell/haddock/ChangeLog,v
20 retrieving revision 1.106
21 retrieving revision 1.107
22 diff -u -r1.106 -r1.107
23 --- ChangeLog 25 Apr 2013 18:48:17 -0000 1.106
24 +++ ChangeLog 26 May 2013 04:07:08 -0000 1.107
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-haskell/haddock
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-haskell/haddock/ChangeLog,v 1.106 2013/04/25 18:48:17 ago Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-haskell/haddock/ChangeLog,v 1.107 2013/05/26 04:07:08 gienah Exp $
30 +
31 +*haddock-2.13.2 (26 May 2013)
32 +
33 + 26 May 2013; Mark Wright <gienah@g.o> +haddock-2.13.2.ebuild:
34 + Bump haddock to 2.13.2
35
36 25 Apr 2013; Agostino Sarubbo <ago@g.o> haddock-2.10.0-r2.ebuild:
37 Stable for sparc, wrt bug #457780
38
39
40
41 1.1 dev-haskell/haddock/haddock-2.13.2.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/haddock/haddock-2.13.2.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/haddock/haddock-2.13.2.ebuild?rev=1.1&content-type=text/plain
45
46 Index: haddock-2.13.2.ebuild
47 ===================================================================
48 # Copyright 1999-2013 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-haskell/haddock/haddock-2.13.2.ebuild,v 1.1 2013/05/26 04:07:08 gienah Exp $
51
52 EAPI=5
53
54 CABAL_FEATURES="bin lib profile haddock hscolour nocabaldep"
55 inherit eutils haskell-cabal pax-utils
56
57 DESCRIPTION="A documentation-generation tool for Haskell libraries"
58 HOMEPAGE="http://www.haskell.org/haddock/"
59 SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
60
61 LICENSE="BSD"
62 SLOT="0/${PV}"
63 # ia64 lost as we don't have ghc-7 there yet
64 # ppc64 needs to be rekeyworded due to xhtml not being keyworded
65 # x86-fbsd is lost due xhtml
66 KEYWORDS="~amd64 -ia64 ~x86"
67 IUSE=""
68
69 RDEPEND="dev-haskell/ghc-paths:=[profile?]
70 =dev-haskell/xhtml-3000.2*:=[profile?]
71 >=dev-lang/ghc-7.6.1:="
72 DEPEND="${RDEPEND}
73 >=dev-haskell/cabal-1.14"
74
75 RESTRICT="test" # avoid depends on QC
76
77 CABAL_EXTRA_BUILD_FLAGS="--ghc-options=-rtsopts"
78
79 src_prepare() {
80 # we would like to avoid happy and alex depends
81 epatch "${FILESDIR}"/${PN}-2.13.1-drop-tools.patch
82 # Fix: Ticket #213 Haddock fails when advanced typesystem features are used
83 # epatch "${FILESDIR}"/${PN}-2.13.1-renameType.patch
84 if use doc && [ ! -e "${S}/html" ]; then
85 ln -s "${S}/resources/html" "${S}/html" || die "Could not create symbolic link ${S}/html"
86 fi
87 }
88
89 src_configure() {
90 # create a fake haddock executable. it'll set the right version to cabal
91 # configure, but will eventually get overwritten in src_compile by
92 # the real executable.
93 local exe="${S}/dist/build/haddock/haddock"
94 mkdir -p $(dirname "${exe}")
95 echo -e "#!/bin/sh\necho Haddock version ${PV}" > "${exe}"
96 chmod +x "${exe}"
97
98 # we use 'nocabaldep' to use ghc's bundled Cabal
99 # as external one is likely to break our haddock
100 # (known to work on 1.16.0 and breaks on 1.16.0.1!)
101 haskell-cabal_src_configure \
102 --with-haddock="${exe}" \
103 --constraint="Cabal == $(cabal-version)"
104 }
105
106 src_compile() {
107 # when building the (recursive..) haddock docs, change the datadir to the
108 # current directory, as we're using haddock inplace even if it's built to be
109 # installed into the system first.
110 haddock_datadir="${S}" haskell-cabal_src_compile
111 }
112
113 src_install() {
114 cabal_src_install
115 # haddock uses GHC-api to process TH source.
116 # TH requires GHCi which needs mmap('rwx') (bug #299709)
117 pax-mark -m "${D}/usr/bin/${PN}"
118 }