Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-haskell/glade/, dev-haskell/glade/files/
Date: Thu, 16 Feb 2017 22:16:46
Message-Id: 1487283390.9e500362b1b6703443395aea56ebd23f9cebc21b.slyfox@gentoo
1 commit: 9e500362b1b6703443395aea56ebd23f9cebc21b
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Thu Feb 16 22:07:55 2017 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Thu Feb 16 22:16:30 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9e500362
7
8 dev-haskell/glade: tweak for ghc-8
9
10 Package-Manager: Portage-2.3.3, Repoman-2.3.1
11
12 dev-haskell/glade/files/Setup.hs | 8 ++++++
13 dev-haskell/glade/glade-0.12.5.0-r100.ebuild | 43 ++++++++++++++++++++++++++++
14 2 files changed, 51 insertions(+)
15
16 diff --git a/dev-haskell/glade/files/Setup.hs b/dev-haskell/glade/files/Setup.hs
17 new file mode 100644
18 index 0000000000..5fbe833309
19 --- /dev/null
20 +++ b/dev-haskell/glade/files/Setup.hs
21 @@ -0,0 +1,8 @@
22 +-- Adjustments specific to this package,
23 +-- all Gtk2Hs-specific boilerplate is kept in
24 +-- gtk2hs-buildtools:Gtk2HsSetup
25 +--
26 +import Gtk2HsSetup ( gtk2hsUserHooks )
27 +import Distribution.Simple ( defaultMainWithHooks )
28 +
29 +main = defaultMainWithHooks gtk2hsUserHooks
30
31 diff --git a/dev-haskell/glade/glade-0.12.5.0-r100.ebuild b/dev-haskell/glade/glade-0.12.5.0-r100.ebuild
32 new file mode 100644
33 index 0000000000..3ce300d275
34 --- /dev/null
35 +++ b/dev-haskell/glade/glade-0.12.5.0-r100.ebuild
36 @@ -0,0 +1,43 @@
37 +# Copyright 1999-2017 Gentoo Foundation
38 +# Distributed under the terms of the GNU General Public License v2
39 +# $Id$
40 +
41 +EAPI=5
42 +
43 +# ebuild generated by hackport 0.3.5.9999
44 +
45 +CABAL_FEATURES="lib profile haddock hoogle hscolour"
46 +inherit haskell-cabal
47 +
48 +DESCRIPTION="Binding to the glade library"
49 +HOMEPAGE="http://projects.haskell.org/gtk2hs/"
50 +SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
51 +
52 +LICENSE="LGPL-2.1"
53 +SLOT="2/${PV}"
54 +KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
55 +IUSE=""
56 +
57 +RDEPEND=">=dev-haskell/glib-0.12.5.0:0=[profile?]
58 + >=dev-haskell/gtk-0.12.5.0:2=[profile?]
59 + >=dev-lang/ghc-6.10.4:=
60 + gnome-base/libglade:2.0
61 +"
62 +DEPEND="${RDEPEND}
63 + >=dev-haskell/gtk2hs-buildtools-0.12.5.1-r1:0=
64 + >=dev-haskell/cabal-1.24
65 + virtual/pkgconfig
66 +"
67 +
68 +src_prepare() {
69 + epatch "${FILESDIR}"/${P}-ghc-7.10.patch
70 +
71 + # update to latest gtk2hs-buildtools
72 + rm Setup.hs || die
73 + rm Gtk2HsSetup.hs || die
74 + cp "${FILESDIR}"/Setup.hs ./ || die
75 +
76 + cabal_chdeps \
77 + 'glib >= 0.12.5.0 && < 0.13' 'glib >= 0.12.5.0' \
78 + 'gtk >= 0.12.5.0 && < 0.13' 'gtk >= 0.12.5.0'
79 +}