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/missingh: missingh-1.1.1.0.ebuild ChangeLog missingh-1.1.0.3.ebuild
Date: Sun, 04 Dec 2011 18:20:25
Message-Id: 20111204182015.66C0C2004B@flycatcher.gentoo.org
1 slyfox 11/12/04 18:20:15
2
3 Modified: ChangeLog
4 Added: missingh-1.1.1.0.ebuild
5 Removed: missingh-1.1.0.3.ebuild
6 Log:
7 Verison bump. Fixes FEATURES=test case (bug #294306 by Diego Elio Pettenò)
8
9 (Portage version: 2.2.0_alpha77_p1/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.17 dev-haskell/missingh/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/missingh/ChangeLog?rev=1.17&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/missingh/ChangeLog?rev=1.17&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/missingh/ChangeLog?r1=1.16&r2=1.17
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/dev-haskell/missingh/ChangeLog,v
21 retrieving revision 1.16
22 retrieving revision 1.17
23 diff -u -r1.16 -r1.17
24 --- ChangeLog 9 Aug 2010 17:46:14 -0000 1.16
25 +++ ChangeLog 4 Dec 2011 18:20:15 -0000 1.17
26 @@ -1,6 +1,12 @@
27 # ChangeLog for dev-haskell/missingh
28 -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/dev-haskell/missingh/ChangeLog,v 1.16 2010/08/09 17:46:14 kolmodin Exp $
30 +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
31 +# $Header: /var/cvsroot/gentoo-x86/dev-haskell/missingh/ChangeLog,v 1.17 2011/12/04 18:20:15 slyfox Exp $
32 +
33 +*missingh-1.1.1.0 (04 Dec 2011)
34 +
35 + 04 Dec 2011; Sergei Trofimovich <slyfox@g.o> +missingh-1.1.1.0.ebuild,
36 + -missingh-1.1.0.3.ebuild:
37 + Verison bump. Fixes FEATURES=test case (bug #294306 by Diego Elio Pettenò)
38
39 09 Aug 2010; Lennart Kolmodin <kolmodin@g.o>
40 missingh-1.1.0.3.ebuild:
41
42
43
44 1.1 dev-haskell/missingh/missingh-1.1.1.0.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/missingh/missingh-1.1.1.0.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/missingh/missingh-1.1.1.0.ebuild?rev=1.1&content-type=text/plain
48
49 Index: missingh-1.1.1.0.ebuild
50 ===================================================================
51 # Copyright 1999-2011 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/dev-haskell/missingh/missingh-1.1.1.0.ebuild,v 1.1 2011/12/04 18:20:14 slyfox Exp $
54
55 EAPI="3"
56
57 CABAL_FEATURES="bin lib profile haddock hscolour hoogle"
58 inherit eutils haskell-cabal
59
60 MY_PN="MissingH"
61 MY_P="${MY_PN}-${PV}"
62
63 DESCRIPTION="Large utility library"
64 HOMEPAGE="http://software.complete.org/missingh"
65 SRC_URI="http://hackage.haskell.org/packages/archive/${MY_PN}/${PV}/${MY_P}.tar.gz"
66
67 LICENSE="GPL-2"
68 SLOT="0"
69 KEYWORDS="~amd64 ~sparc ~x86"
70 IUSE="test"
71
72 # testpack dependency is a workaround for cabal-1.8 bug, which pulls
73 # depends even for 'Buildable: false' target
74 RDEPEND=">=dev-lang/ghc-6.10
75 dev-haskell/hslogger
76 dev-haskell/hunit
77 dev-haskell/mtl
78 dev-haskell/network
79 dev-haskell/parsec
80 dev-haskell/regex-compat"
81
82 DEPEND=">=dev-haskell/cabal-1.2.3
83 virtual/libiconv
84 ${RDEPEND}
85 test? ( dev-haskell/testpack
86 dev-haskell/quickcheck:1
87 dev-haskell/hunit )"
88
89 # libiconv is needed for the trick below to make it compile with ghc-6.12
90
91 S="${WORKDIR}/${MY_P}"
92
93 src_prepare() {
94 # (non-ASCII non-UTF-8 source breaks hscolour)
95 cd src/System/Time
96 mv ParseDate.hs ParseDate.hs.ISO-8859-1
97 iconv -f ISO-8859-1 -t UTF-8 -c ParseDate.hs.ISO-8859-1 > ParseDate.hs || die "unable to recode ParseDate.hs to UTF-8"
98 }
99
100 src_configure() {
101 cabal_src_configure $(cabal_flag test buildtests)
102 }
103
104 src_test() {
105 # default tests
106 haskell-cabal_src_test || die "cabal test failed"
107
108 # built custom tests
109 "${S}/dist/build/runtests/runtests" || die "unit tests failed"
110 }
111
112 src_install() {
113 cabal_src_install
114
115 # if tests were enabled, make sure the unit test driver is deleted
116 rm -f "${D}/usr/bin/runtests"
117 }