1 |
gienah 12/03/04 03:24:53 |
2 |
|
3 |
Modified: ChangeLog haddock-2.9.2.ebuild |
4 |
Added: haddock-2.10.0_pre20120202.ebuild |
5 |
Log: |
6 |
Add haddock 2.10.0_pre20120202 that is included in ghc 7.4.1 |
7 |
|
8 |
(Portage version: 2.1.10.49/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.86 dev-haskell/haddock/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/haddock/ChangeLog?rev=1.86&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/haddock/ChangeLog?rev=1.86&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/haddock/ChangeLog?r1=1.85&r2=1.86 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-haskell/haddock/ChangeLog,v |
20 |
retrieving revision 1.85 |
21 |
retrieving revision 1.86 |
22 |
diff -u -r1.85 -r1.86 |
23 |
--- ChangeLog 3 Aug 2011 13:14:54 -0000 1.85 |
24 |
+++ ChangeLog 4 Mar 2012 03:24:53 -0000 1.86 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for dev-haskell/haddock |
27 |
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/dev-haskell/haddock/ChangeLog,v 1.85 2011/08/03 13:14:54 slyfox Exp $ |
29 |
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
30 |
+# $Header: /var/cvsroot/gentoo-x86/dev-haskell/haddock/ChangeLog,v 1.86 2012/03/04 03:24:53 gienah Exp $ |
31 |
+ |
32 |
+*haddock-2.10.0_pre20120202 (04 Mar 2012) |
33 |
+ |
34 |
+ 04 Mar 2012; Mark Wright <gienah@g.o> haddock-2.9.2.ebuild, |
35 |
+ +haddock-2.10.0_pre20120202.ebuild: |
36 |
+ Add haddock 2.10.0_pre20120202 that is included in ghc 7.4.1 |
37 |
|
38 |
*haddock-2.9.2 (03 Aug 2011) |
39 |
|
40 |
|
41 |
|
42 |
|
43 |
1.2 dev-haskell/haddock/haddock-2.9.2.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/haddock/haddock-2.9.2.ebuild?rev=1.2&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/haddock/haddock-2.9.2.ebuild?rev=1.2&content-type=text/plain |
47 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/haddock/haddock-2.9.2.ebuild?r1=1.1&r2=1.2 |
48 |
|
49 |
Index: haddock-2.9.2.ebuild |
50 |
=================================================================== |
51 |
RCS file: /var/cvsroot/gentoo-x86/dev-haskell/haddock/haddock-2.9.2.ebuild,v |
52 |
retrieving revision 1.1 |
53 |
retrieving revision 1.2 |
54 |
diff -u -r1.1 -r1.2 |
55 |
--- haddock-2.9.2.ebuild 3 Aug 2011 13:14:54 -0000 1.1 |
56 |
+++ haddock-2.9.2.ebuild 4 Mar 2012 03:24:53 -0000 1.2 |
57 |
@@ -1,6 +1,6 @@ |
58 |
-# Copyright 1999-2011 Gentoo Foundation |
59 |
+# Copyright 1999-2012 Gentoo Foundation |
60 |
# Distributed under the terms of the GNU General Public License v2 |
61 |
-# $Header: /var/cvsroot/gentoo-x86/dev-haskell/haddock/haddock-2.9.2.ebuild,v 1.1 2011/08/03 13:14:54 slyfox Exp $ |
62 |
+# $Header: /var/cvsroot/gentoo-x86/dev-haskell/haddock/haddock-2.9.2.ebuild,v 1.2 2012/03/04 03:24:53 gienah Exp $ |
63 |
|
64 |
# ebuild generated by hackport 0.2.9 |
65 |
|
66 |
@@ -29,6 +29,8 @@ |
67 |
DEPEND="${RDEPEND} |
68 |
>=dev-haskell/cabal-1.10" |
69 |
|
70 |
+CABAL_EXTRA_BUILD_FLAGS="--ghc-options=-rtsopts" |
71 |
+ |
72 |
# although haddock depends on alex and happy to build from scratch, we don't |
73 |
# want this ebuild to depend on those packages. |
74 |
# we use haddock to build the documentation enabled by USE="doc". |
75 |
|
76 |
|
77 |
|
78 |
1.1 dev-haskell/haddock/haddock-2.10.0_pre20120202.ebuild |
79 |
|
80 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/haddock/haddock-2.10.0_pre20120202.ebuild?rev=1.1&view=markup |
81 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/haddock/haddock-2.10.0_pre20120202.ebuild?rev=1.1&content-type=text/plain |
82 |
|
83 |
Index: haddock-2.10.0_pre20120202.ebuild |
84 |
=================================================================== |
85 |
# Copyright 1999-2012 Gentoo Foundation |
86 |
# Distributed under the terms of the GNU General Public License v2 |
87 |
# $Header: /var/cvsroot/gentoo-x86/dev-haskell/haddock/haddock-2.10.0_pre20120202.ebuild,v 1.1 2012/03/04 03:24:53 gienah Exp $ |
88 |
|
89 |
# haddock-2.9.4 on hackage does not work with ghc-7.4.1 |
90 |
# this ebuild uses a tarball of what's distributed with ghc-7.4.1 |
91 |
|
92 |
EAPI="4" |
93 |
|
94 |
#CABAL_FEATURES="bin lib profile haddock hscolour" |
95 |
CABAL_FEATURES="bin lib profile hscolour" |
96 |
inherit haskell-cabal pax-utils versionator |
97 |
|
98 |
MY_PV=$(get_version_component_range '1-3') |
99 |
MY_P="${MY_PN}-${PV}" |
100 |
|
101 |
DESCRIPTION="A documentation-generation tool for Haskell libraries" |
102 |
HOMEPAGE="http://www.haskell.org/haddock/" |
103 |
#SRC_URI="http://hackage.haskell.org/packages/archive/${PN}/${PV}/${P}.tar.gz" |
104 |
SRC_URI="http://dev.gentoo.org/~gienah/snapshots/${P}.tar.gz" |
105 |
|
106 |
LICENSE="BSD" |
107 |
SLOT="0" |
108 |
# ia64 lost as we don't have ghc-7 there yet |
109 |
# ppc64 needs to be rekeyworded due to xhtml not being keyworded |
110 |
KEYWORDS="~alpha ~amd64 -ia64 ~ppc ~sparc ~x86 ~x86-fbsd" |
111 |
IUSE="" |
112 |
|
113 |
RDEPEND="dev-haskell/ghc-paths[profile?] |
114 |
=dev-haskell/xhtml-3000.2*[profile?] |
115 |
>=dev-lang/ghc-7.4" |
116 |
DEPEND="${RDEPEND} |
117 |
>=dev-haskell/cabal-1.10" |
118 |
|
119 |
S="${WORKDIR}/${PN}-${MY_PV}" |
120 |
|
121 |
RESTRICT="test" # avoid depends on QC |
122 |
|
123 |
CABAL_EXTRA_BUILD_FLAGS="--ghc-options=-rtsopts" |
124 |
|
125 |
# haddock is disabled as Cabal seems to be buggy about building docks with itself. |
126 |
# however, other packages seem to work |
127 |
src_configure() { |
128 |
# create a fake haddock executable. it'll set the right version to cabal |
129 |
# configure, but will eventually get overwritten in src_compile by |
130 |
# the real executable. |
131 |
local exe="${S}/dist/build/haddock/haddock" |
132 |
mkdir -p $(dirname "${exe}") |
133 |
echo -e "#!/bin/sh\necho Haddock version ${PV}" > "${exe}" |
134 |
chmod +x "${exe}" |
135 |
|
136 |
haskell-cabal_src_configure --with-haddock="${exe}" |
137 |
} |
138 |
|
139 |
src_compile() { |
140 |
# when building the (recursive..) haddock docs, change the datadir to the |
141 |
# current directory, as we're using haddock inplace even if it's built to be |
142 |
# installed into the system first. |
143 |
haddock_datadir="${S}" haskell-cabal_src_compile |
144 |
} |
145 |
|
146 |
src_install() { |
147 |
cabal_src_install |
148 |
# haddock uses GHC-api to process TH source. |
149 |
# TH requires GHCi which needs mmap('rwx') (bug #299709) |
150 |
pax-mark -m "${D}/usr/bin/${PN}" |
151 |
} |