1 |
gienah 12/06/02 03:36:51 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: haddock-2.10.0-r1.ebuild |
5 |
Log: |
6 |
Apply patch from upstream: Don't crash on unicode strings in doc comments. |
7 |
|
8 |
(Portage version: 2.1.10.63/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.91 dev-haskell/haddock/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/haddock/ChangeLog?rev=1.91&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/haddock/ChangeLog?rev=1.91&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/haddock/ChangeLog?r1=1.90&r2=1.91 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-haskell/haddock/ChangeLog,v |
20 |
retrieving revision 1.90 |
21 |
retrieving revision 1.91 |
22 |
diff -u -r1.90 -r1.91 |
23 |
--- ChangeLog 25 Mar 2012 14:25:09 -0000 1.90 |
24 |
+++ ChangeLog 2 Jun 2012 03:36:51 -0000 1.91 |
25 |
@@ -1,6 +1,13 @@ |
26 |
# ChangeLog for dev-haskell/haddock |
27 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/dev-haskell/haddock/ChangeLog,v 1.90 2012/03/25 14:25:09 slyfox Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/dev-haskell/haddock/ChangeLog,v 1.91 2012/06/02 03:36:51 gienah Exp $ |
30 |
+ |
31 |
+*haddock-2.10.0-r1 (02 Jun 2012) |
32 |
+ |
33 |
+ 02 Jun 2012; Mark Wright <gienah@g.o> |
34 |
+ +files/haddock-2.10.0-dont-crash-on-unicode-strings-in-doc-comments.patch, |
35 |
+ +haddock-2.10.0-r1.ebuild: |
36 |
+ Apply patch from upstream: Don't crash on unicode strings in doc comments. |
37 |
|
38 |
25 Mar 2012; Sergei Trofimovich <slyfox@g.o> |
39 |
+files/haddock-2.10.0-drop-tools.patch, haddock-2.10.0.ebuild: |
40 |
|
41 |
|
42 |
|
43 |
1.1 dev-haskell/haddock/haddock-2.10.0-r1.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/haddock/haddock-2.10.0-r1.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/haddock/haddock-2.10.0-r1.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: haddock-2.10.0-r1.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2012 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/dev-haskell/haddock/haddock-2.10.0-r1.ebuild,v 1.1 2012/06/02 03:36:51 gienah Exp $ |
53 |
|
54 |
EAPI="4" |
55 |
|
56 |
CABAL_FEATURES="bin lib profile haddock hscolour" |
57 |
inherit eutils haskell-cabal pax-utils |
58 |
|
59 |
DESCRIPTION="A documentation-generation tool for Haskell libraries" |
60 |
HOMEPAGE="http://www.haskell.org/haddock/" |
61 |
SRC_URI="http://hackage.haskell.org/packages/archive/${PN}/${PV}/${P}.tar.gz" |
62 |
|
63 |
LICENSE="BSD" |
64 |
SLOT="0" |
65 |
# ia64 lost as we don't have ghc-7 there yet |
66 |
# ppc64 needs to be rekeyworded due to xhtml not being keyworded |
67 |
KEYWORDS="~alpha ~amd64 -ia64 ~ppc ~sparc ~x86 ~x86-fbsd" |
68 |
IUSE="" |
69 |
|
70 |
RDEPEND="dev-haskell/ghc-paths[profile?] |
71 |
=dev-haskell/xhtml-3000.2*[profile?] |
72 |
>=dev-lang/ghc-7.4" |
73 |
DEPEND="${RDEPEND} |
74 |
>=dev-haskell/cabal-1.14" |
75 |
|
76 |
RESTRICT="test" # avoid depends on QC |
77 |
|
78 |
CABAL_EXTRA_BUILD_FLAGS="--ghc-options=-rtsopts" |
79 |
|
80 |
src_prepare() { |
81 |
# we would like to avoid happy and alex depends |
82 |
epatch "${FILESDIR}"/${P}-drop-tools.patch |
83 |
# http://www.mail-archive.com/cvs-ghc@×××××××.org/msg37186.html |
84 |
epatch "${FILESDIR}"/${P}-dont-crash-on-unicode-strings-in-doc-comments.patch |
85 |
|
86 |
for f in Lex Parse; do |
87 |
rm "src/Haddock/$f."* |
88 |
mv "dist/build/haddock/haddock-tmp/Haddock/$f.hs" src/Haddock/ |
89 |
done |
90 |
} |
91 |
|
92 |
src_configure() { |
93 |
# create a fake haddock executable. it'll set the right version to cabal |
94 |
# configure, but will eventually get overwritten in src_compile by |
95 |
# the real executable. |
96 |
local exe="${S}/dist/build/haddock/haddock" |
97 |
mkdir -p $(dirname "${exe}") |
98 |
echo -e "#!/bin/sh\necho Haddock version ${PV}" > "${exe}" |
99 |
chmod +x "${exe}" |
100 |
|
101 |
haskell-cabal_src_configure --with-haddock="${exe}" |
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 |
} |
110 |
|
111 |
src_install() { |
112 |
cabal_src_install |
113 |
# haddock uses GHC-api to process TH source. |
114 |
# TH requires GHCi which needs mmap('rwx') (bug #299709) |
115 |
pax-mark -m "${D}/usr/bin/${PN}" |
116 |
} |