Gentoo Archives: gentoo-commits

From: "Mark Wright (gienah)" <gienah@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-haskell/wxc: metadata.xml wxc-0.90.0.4.ebuild ChangeLog
Date: Thu, 27 Dec 2012 02:21:20
Message-Id: 20121227022110.070DA2171E@flycatcher.gentoo.org
1 gienah 12/12/27 02:21:09
2
3 Added: metadata.xml wxc-0.90.0.4.ebuild ChangeLog
4 Log:
5 Add wxc
6
7 (Portage version: 2.1.11.38/cvs/Linux x86_64, RepoMan options: --force, signed Manifest commit with key 618E971F)
8
9 Revision Changes Path
10 1.1 dev-haskell/wxc/metadata.xml
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/wxc/metadata.xml?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/wxc/metadata.xml?rev=1.1&content-type=text/plain
14
15 Index: metadata.xml
16 ===================================================================
17 <?xml version="1.0" encoding="UTF-8"?>
18 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
19 <pkgmetadata>
20 <herd>haskell</herd>
21 <maintainer>
22 <email>haskell@g.o</email>
23 </maintainer>
24 <longdescription>
25 wxHaskell is a portable and native GUI library for Haskell. It is
26 built on top of wxWidgets, a comprehensive C++ library that is
27 portable across all major GUI platforms, including GTK, Windows,
28 X11, and MacOS X. This version works with wxWidgets 2.9 only.
29 Distributed under the WXWINDOWS LIBRARY LICENSE. Please see
30 LICENSE file, but note that this is essentially LGPL with an
31 exception allowing binary distribution of proprietary software.
32 This is the same license as wxWidgets itself uses.
33 </longdescription>
34 </pkgmetadata>
35
36
37
38 1.1 dev-haskell/wxc/wxc-0.90.0.4.ebuild
39
40 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/wxc/wxc-0.90.0.4.ebuild?rev=1.1&view=markup
41 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/wxc/wxc-0.90.0.4.ebuild?rev=1.1&content-type=text/plain
42
43 Index: wxc-0.90.0.4.ebuild
44 ===================================================================
45 # Copyright 1999-2012 Gentoo Foundation
46 # Distributed under the terms of the GNU General Public License v2
47 # $Header: /var/cvsroot/gentoo-x86/dev-haskell/wxc/wxc-0.90.0.4.ebuild,v 1.1 2012/12/27 02:21:09 gienah Exp $
48
49 EAPI=5
50
51 # ebuild generated by hackport 0.3.9999
52
53 WX_GTK_VER="2.9"
54
55 CABAL_FEATURES="lib profile"
56 inherit base haskell-cabal multilib versionator wxwidgets
57
58 DESCRIPTION="wxHaskell C++ wrapper"
59 HOMEPAGE="http://haskell.org/haskellwiki/WxHaskell"
60 SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
61
62 LICENSE="wxWinLL-3.1"
63 SLOT="${WX_GTK_VER}/${PV}"
64 KEYWORDS="~amd64 ~ppc ~sparc ~x86"
65 IUSE="opengl"
66
67 RDEPEND=">=dev-haskell/wxdirect-0.90:${WX_GTK_VER}=[profile?]
68 x11-libs/wxGTK:${WX_GTK_VER}=[X,gstreamer,opengl?]
69 >=dev-lang/ghc-6.10.4:="
70 DEPEND="${RDEPEND}
71 >=dev-haskell/cabal-1.2"
72
73 PATCHES=("${FILESDIR}/${PN}-0.90.0.4-wxGTK-2.9.4.1.patch")
74
75 src_prepare() {
76 base_src_prepare
77 sed -e "s@\"wx-config\"@\"${WX_CONFIG}\"@g" \
78 -i "${S}/Setup.hs" || die "Could not specify wx-config in Setup.hs"
79 }
80
81 src_configure() {
82 local cgcc=()
83 for i in ${CXXFLAGS}
84 do
85 cgcc+=( --gcc-option="${i}" )
86 done
87 # Trying to specify the LDFLAGS in --ld-option does not work, as ld does
88 # not understand ld options prefixed with -Wl,
89 # The linker that is used to link the libwxc.so shared library is hard coded
90 # in Setup.hs. So the --with-ld would not change the linker used when
91 # linking libwxc.so. --with-ld="gcc" does not help, as then cabal passes
92 # ld options like -x to gcc which then returns a non-zero exit status, then
93 # cabal ignores all the --ld-option parameters.
94 # So I place all the LDFLAGS in --gcc-option parameters. They are ignored
95 # when building .o files.
96 local cld=()
97 for i in ${LDFLAGS}
98 do
99 cld+=( --gcc-option="${i}" )
100 done
101 cabal_src_configure ${cgcc[*]} ${cld[*]} --verbose=3
102 }
103
104 src_install() {
105 cabal_src_install
106 dolib.so dist/build/lib${PN}.so.${PV}
107 dosym lib${PN}.so.${PV} /usr/$(get_libdir)/lib${PN}.so.$(get_version_component_range 1-2)
108 dosym lib${PN}.so.${PV} /usr/$(get_libdir)/lib${PN}.so.$(get_major_version)
109 dosym lib${PN}.so.${PV} /usr/$(get_libdir)/lib${PN}.so
110 }
111
112
113
114 1.1 dev-haskell/wxc/ChangeLog
115
116 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/wxc/ChangeLog?rev=1.1&view=markup
117 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-haskell/wxc/ChangeLog?rev=1.1&content-type=text/plain
118
119 Index: ChangeLog
120 ===================================================================
121 # ChangeLog for dev-haskell/wxc
122 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
123 # $Header: /var/cvsroot/gentoo-x86/dev-haskell/wxc/ChangeLog,v 1.1 2012/12/27 02:21:09 gienah Exp $
124
125 *wxc-0.90.0.4 (27 Dec 2012)
126
127 27 Dec 2012; Mark Wright <gienah@g.o>
128 +files/wxc-0.90.0.4-wxGTK-2.9.4.1.patch, +metadata.xml, +wxc-0.90.0.4.ebuild:
129 Add wxc