Gentoo Archives: gentoo-commits

From: "Luis F. Araujo (araujo)" <araujo@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-haskell/gtk2hs: ChangeLog gtk2hs-0.9.12.1.ebuild
Date: Sat, 10 Nov 2007 03:10:49
Message-Id: E1Iqgk7-00038c-FG@stork.gentoo.org
1 araujo 07/11/10 03:10:43
2
3 Modified: ChangeLog
4 Added: gtk2hs-0.9.12.1.ebuild
5 Log:
6 Adding new gtk2hs version
7 (Portage version: 2.1.3.19)
8
9 Revision Changes Path
10 1.38 dev-haskell/gtk2hs/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-haskell/gtk2hs/ChangeLog?rev=1.38&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-haskell/gtk2hs/ChangeLog?rev=1.38&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-haskell/gtk2hs/ChangeLog?r1=1.37&r2=1.38
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-haskell/gtk2hs/ChangeLog,v
19 retrieving revision 1.37
20 retrieving revision 1.38
21 diff -u -r1.37 -r1.38
22 --- ChangeLog 9 Nov 2007 20:38:16 -0000 1.37
23 +++ ChangeLog 10 Nov 2007 03:10:42 -0000 1.38
24 @@ -1,6 +1,11 @@
25 # ChangeLog for dev-haskell/gtk2hs
26 # Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-haskell/gtk2hs/ChangeLog,v 1.37 2007/11/09 20:38:16 araujo Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-haskell/gtk2hs/ChangeLog,v 1.38 2007/11/10 03:10:42 araujo Exp $
29 +
30 +*gtk2hs-0.9.12.1 (10 Nov 2007)
31 +
32 + 10 Nov 2007; Luis F. Araujo <araujo@g.o> +gtk2hs-0.9.12.1.ebuild:
33 + Adding new version
34
35 09 Nov 2007; Luis F. Araujo <araujo@g.o> gtk2hs-0.9.12.ebuild:
36 Adding missing backslash to fix package registration
37
38
39
40 1.1 dev-haskell/gtk2hs/gtk2hs-0.9.12.1.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-haskell/gtk2hs/gtk2hs-0.9.12.1.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-haskell/gtk2hs/gtk2hs-0.9.12.1.ebuild?rev=1.1&content-type=text/plain
44
45 Index: gtk2hs-0.9.12.1.ebuild
46 ===================================================================
47 # Copyright 1999-2007 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/dev-haskell/gtk2hs/gtk2hs-0.9.12.1.ebuild,v 1.1 2007/11/10 03:10:42 araujo Exp $
50
51 inherit base eutils ghc-package multilib toolchain-funcs versionator
52
53 DESCRIPTION="A GUI Library for Haskell based on Gtk+"
54 HOMEPAGE="http://haskell.org/gtk2hs/"
55 SRC_URI="mirror://sourceforge/gtk2hs/${P}.tar.gz"
56 LICENSE="LGPL-2.1"
57 SLOT="0"
58
59 KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
60
61 IUSE="doc glade gnome opengl svg firefox seamonkey profile xulrunner"
62
63 RDEPEND=">=dev-lang/ghc-6.4
64 dev-haskell/mtl
65 >=x11-libs/gtk+-2
66 glade? ( >=gnome-base/libglade-2 )
67 gnome? ( >=gnome-base/libglade-2
68 >=x11-libs/gtksourceview-0.6
69 >=gnome-base/gconf-2 )
70 svg? ( >=gnome-base/librsvg-2.16 )
71 opengl? ( x11-libs/gtkglext )
72 seamonkey? ( >=www-client/seamonkey-1.0.2 )
73 firefox? ( >=www-client/mozilla-firefox-1.0.4 )
74 xulrunner? ( net-libs/xulrunner )"
75 DEPEND="${RDEPEND}
76 doc? ( >=dev-haskell/haddock-0.8 )"
77
78 src_compile() {
79 econf \
80 --enable-packager-mode \
81 $(version_is_at_least "4.2" "$(gcc-version)" && \
82 echo --disable-split-objs) \
83 $(has_version '>=x11-libs/gtk+-2.8' && echo --enable-cairo) \
84 $(use glade || use gnome && echo --enable-libglade) \
85 $(use_enable gnome gconf) \
86 $(use_enable gnome sourceview) \
87 $(use_enable svg svg) \
88 $(use_enable opengl opengl) \
89 $(use_enable seamonkey seamonkey) \
90 $(use_enable firefox firefox) \
91 $(use_enable xulrunner xulrunner) \
92 $(use_enable doc docs) \
93 $(use_enable profile profiling) \
94 || die "Configure failed"
95
96 # parallel build doesn't work, so specify -j1
97 emake -j1 || die "Make failed"
98 }
99
100 src_install() {
101
102 make install \
103 DESTDIR="${D}" \
104 htmldir="/usr/share/doc/${PF}/html" \
105 haddockifacedir="/usr/share/doc/${PF}" \
106 || die "Make install failed"
107
108 # for some reason it creates the doc dir even if it is configured
109 # to not generate docs, so lets remove the empty dirs in that case
110 # (and lets be cautious and only remove them if they're empty)
111 if ! use doc; then
112 rmdir "${D}/usr/share/doc/${PF}/html"
113 rmdir "${D}/usr/share/doc/${PF}"
114 rmdir "${D}/usr/share/doc"
115 rmdir "${D}/usr/share"
116 fi
117
118 # arrange for the packages to be registered
119 ghc-setup-pkg \
120 "${D}/usr/$(get_libdir)/gtk2hs/glib.package.conf" \
121 $(has_version '>=x11-libs/gtk+-2.8' && echo \
122 "${D}/usr/$(get_libdir)/gtk2hs/cairo.package.conf") \
123 "${D}/usr/$(get_libdir)/gtk2hs/gtk.package.conf" \
124 "${D}/usr/$(get_libdir)/gtk2hs/soegtk.package.conf" \
125 $(use glade || use gnome && echo \
126 "${D}/usr/$(get_libdir)/gtk2hs/glade.package.conf") \
127 $(use gnome && echo \
128 "${D}/usr/$(get_libdir)/gtk2hs/gconf.package.conf" \
129 "${D}/usr/$(get_libdir)/gtk2hs/sourceview.package.conf" ) \
130 $(use svg && echo \
131 "${D}/usr/$(get_libdir)/gtk2hs/svgcairo.package.conf") \
132 $(use opengl && echo \
133 "${D}/usr/$(get_libdir)/gtk2hs/gtkglext.package.conf") \
134 $(use seamonkey || use firefox || use xulrunner && echo \
135 "${D}/usr/$(get_libdir)/gtk2hs/mozembed.package.conf")
136 ghc-install-pkg
137 }
138
139
140
141 --
142 gentoo-commits@g.o mailing list