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/happy: happy-1.18.6.ebuild ChangeLog
Date: Tue, 02 Aug 2011 10:15:20
Message-Id: 20110802101509.DD6B52004C@flycatcher.gentoo.org
1 slyfox 11/08/02 10:15:09
2
3 Modified: ChangeLog
4 Added: happy-1.18.6.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.1.10.7/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.51 dev-haskell/happy/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/happy/ChangeLog?rev=1.51&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/happy/ChangeLog?rev=1.51&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/happy/ChangeLog?r1=1.50&r2=1.51
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-haskell/happy/ChangeLog,v
20 retrieving revision 1.50
21 retrieving revision 1.51
22 diff -u -r1.50 -r1.51
23 --- ChangeLog 2 Aug 2011 09:50:03 -0000 1.50
24 +++ ChangeLog 2 Aug 2011 10:15:09 -0000 1.51
25 @@ -1,6 +1,12 @@
26 # ChangeLog for dev-haskell/happy
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-haskell/happy/ChangeLog,v 1.50 2011/08/02 09:50:03 slyfox Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-haskell/happy/ChangeLog,v 1.51 2011/08/02 10:15:09 slyfox Exp $
30 +
31 +*happy-1.18.6 (02 Aug 2011)
32 +
33 + 02 Aug 2011; Sergei Trofimovich <slyfox@g.o> +happy-1.18.6.ebuild,
34 + +files/happy-1.18.6-man.patch, +files/happy-1.18.6-missing-tests.patch:
35 + Version bump.
36
37 02 Aug 2011; Sergei Trofimovich <slyfox@g.o>
38 -files/happy-1.15-ghc66.patch:
39
40
41
42 1.1 dev-haskell/happy/happy-1.18.6.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/happy/happy-1.18.6.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/happy/happy-1.18.6.ebuild?rev=1.1&content-type=text/plain
46
47 Index: happy-1.18.6.ebuild
48 ===================================================================
49 # Copyright 1999-2011 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/dev-haskell/happy/happy-1.18.6.ebuild,v 1.1 2011/08/02 10:15:09 slyfox Exp $
52
53 # ebuild generated by hackport 0.2.9
54
55 EAPI="3"
56
57 CABAL_FEATURES="bin"
58 inherit base haskell-cabal autotools
59
60 DESCRIPTION="Happy is a parser generator for Haskell"
61 HOMEPAGE="http://www.haskell.org/happy/"
62 SRC_URI="http://hackage.haskell.org/packages/archive/${PN}/${PV}/${P}.tar.gz"
63
64 LICENSE="BSD"
65 SLOT="0"
66 KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
67 IUSE="doc"
68
69 RDEPEND=""
70 DEPEND="${RDEPEND}
71 >=dev-haskell/cabal-1.2.3
72 >=dev-haskell/mtl-1.0
73 >=dev-lang/ghc-6.8.2
74 dev-lang/perl
75 doc? ( ~app-text/docbook-xml-dtd-4.2
76 app-text/docbook-xsl-stylesheets )"
77
78 PATCHES=("${FILESDIR}/${PN}-1.18.6-man.patch"
79 "${FILESDIR}/${PN}-1.18.6-missing-tests.patch")
80
81 src_prepare() {
82 base_src_prepare
83
84 use doc && cd doc && eautoconf
85 }
86
87 src_configure() {
88 cabal_src_configure
89
90 use doc && cd doc && econf || die "econf failed in /doc"
91 }
92
93 src_compile() {
94 cabal_src_compile
95
96 use doc && cd doc && emake -j1 || die "emake failed in /doc"
97 }
98
99 src_test() {
100 emake -C "${S}/tests/" || die "emake for tests failed"
101 }
102
103 src_install() {
104 cabal_src_install
105 if use doc; then
106 cd doc
107 dohtml -r happy/*
108 doman "${S}/doc/happy.1"
109 fi
110 }