Gentoo Archives: gentoo-commits

From: "Sergei Trofimovich (slyfox)" <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-haskell/haddock: haddock-2.16.1.ebuild ChangeLog
Date: Sat, 01 Aug 2015 21:23:42
Message-Id: 20150801212332.B0E56119@oystercatcher.gentoo.org
1 slyfox 15/08/01 21:23:32
2
3 Modified: ChangeLog
4 Added: haddock-2.16.1.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 611FF3AA)
9
10 Revision Changes Path
11 1.117 dev-haskell/haddock/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/haddock/ChangeLog?rev=1.117&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/haddock/ChangeLog?rev=1.117&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/haddock/ChangeLog?r1=1.116&r2=1.117
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-haskell/haddock/ChangeLog,v
20 retrieving revision 1.116
21 retrieving revision 1.117
22 diff -u -r1.116 -r1.117
23 --- ChangeLog 2 Jan 2015 23:16:40 -0000 1.116
24 +++ ChangeLog 1 Aug 2015 21:23:32 -0000 1.117
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-haskell/haddock
27 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-haskell/haddock/ChangeLog,v 1.116 2015/01/02 23:16:40 slyfox Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-haskell/haddock/ChangeLog,v 1.117 2015/08/01 21:23:32 slyfox Exp $
30 +
31 +*haddock-2.16.1 (01 Aug 2015)
32 +
33 + 01 Aug 2015; Sergei Trofimovich <slyfox@g.o> +haddock-2.16.1.ebuild:
34 + Version bump.
35
36 02 Jan 2015; Sergei Trofimovich <slyfox@g.o>
37 -files/ghc-paths-1.0.5.0-GHC-Paths.hs, -files/haddock-2.6.1-cabal-1.8.patch,
38
39
40
41 1.1 dev-haskell/haddock/haddock-2.16.1.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/haddock/haddock-2.16.1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/haddock/haddock-2.16.1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: haddock-2.16.1.ebuild
47 ===================================================================
48 # Copyright 1999-2015 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.16.1.ebuild,v 1.1 2015/08/01 21:23:32 slyfox Exp $
51
52 EAPI=5
53
54 # ebuild generated by hackport 0.4.4.9999
55
56 CABAL_FEATURES="bin test-suite"
57 CABAL_FEATURES+=" nocabaldep"
58 inherit haskell-cabal pax-utils
59
60 DESCRIPTION="A documentation-generation tool for Haskell libraries"
61 HOMEPAGE="http://www.haskell.org/haddock/"
62 SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
63
64 LICENSE="BSD"
65 SLOT="0"
66 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
67 IUSE=""
68
69 RESTRICT=test # tests are outdated
70
71 RDEPEND=""
72 DEPEND="${RDEPEND}
73 >=dev-haskell/cabal-1.10
74 >=dev-lang/ghc-7.4.1
75 ~dev-haskell/haddock-api-2.16.1
76 "
77
78 src_prepare() {
79 if [[ ! -e "${S}/html" ]]; then
80 ln -s resources/html "${S}/html" || die "Could not create symbolic link ${S}/html"
81 fi
82 }
83
84 src_configure() {
85 # create a fake haddock executable. it'll set the right version to cabal
86 # configure, but will eventually get overwritten in src_compile by
87 # the real executable.
88 local exe="${S}/dist/build/haddock/haddock"
89 mkdir -p $(dirname "${exe}")
90 echo -e "#!/bin/sh\necho Haddock version ${PV}" > "${exe}"
91 chmod +x "${exe}"
92
93 # we use 'nocabaldep' to use ghc's bundled Cabal
94 # as external one is likely to break our haddock
95 # (known to work on 1.16.0 and breaks on 1.16.0.1!)
96 haskell-cabal_src_configure \
97 --flags=-in-ghc-tree \
98 --ghc-options=-rtsopts \
99 --with-haddock="${exe}" \
100 --constraint="Cabal == $(cabal-version)"
101
102 }
103
104 src_compile() {
105 # when building the (recursive..) haddock docs, change the datadir to the
106 # current directory, as we're using haddock inplace even if it's built to be
107 # installed into the system first.
108 haddock_datadir="${S}" haskell-cabal_src_compile
109 pax-mark -m "${S}/dist/build/haddock"
110 }
111
112 src_install() {
113 cabal_src_install
114 # haddock uses GHC-api to process TH source.
115 # TH requires GHCi which needs mmap('rwx') (bug #299709)
116 pax-mark -m "${D}/usr/bin/${PN}"
117 }