summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Wright <gienah@gentoo.org>2012-12-27 02:21:38 +0000
committerMark Wright <gienah@gentoo.org>2012-12-27 02:21:38 +0000
commite539d79d0cca0e0a5f54b713473a20152c51d498 (patch)
tree5110d62432c1aa65522e54d8db4fabf1f05b4627 /dev-haskell/wxc
parentmarked x86 per bug 448296 (diff)
downloadhistorical-e539d79d0cca0e0a5f54b713473a20152c51d498.tar.gz
historical-e539d79d0cca0e0a5f54b713473a20152c51d498.tar.bz2
historical-e539d79d0cca0e0a5f54b713473a20152c51d498.zip
Add wxc
Package-Manager: portage-2.1.11.38/cvs/Linux x86_64 RepoMan-Options: --force Manifest-Sign-Key: 0x618E971F
Diffstat (limited to 'dev-haskell/wxc')
-rw-r--r--dev-haskell/wxc/ChangeLog9
-rw-r--r--dev-haskell/wxc/Manifest15
-rw-r--r--dev-haskell/wxc/files/wxc-0.90.0.4-wxGTK-2.9.4.1.patch11
-rw-r--r--dev-haskell/wxc/metadata.xml18
-rw-r--r--dev-haskell/wxc/wxc-0.90.0.4.ebuild66
5 files changed, 119 insertions, 0 deletions
diff --git a/dev-haskell/wxc/ChangeLog b/dev-haskell/wxc/ChangeLog
new file mode 100644
index 000000000000..a74034e70e7a
--- /dev/null
+++ b/dev-haskell/wxc/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for dev-haskell/wxc
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-haskell/wxc/ChangeLog,v 1.1 2012/12/27 02:21:09 gienah Exp $
+
+*wxc-0.90.0.4 (27 Dec 2012)
+
+ 27 Dec 2012; Mark Wright <gienah@gentoo.org>
+ +files/wxc-0.90.0.4-wxGTK-2.9.4.1.patch, +metadata.xml, +wxc-0.90.0.4.ebuild:
+ Add wxc
diff --git a/dev-haskell/wxc/Manifest b/dev-haskell/wxc/Manifest
new file mode 100644
index 000000000000..06e24e255639
--- /dev/null
+++ b/dev-haskell/wxc/Manifest
@@ -0,0 +1,15 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
+AUX wxc-0.90.0.4-wxGTK-2.9.4.1.patch 371 SHA256 571c4235281a6b956ebaf7268779878cefad80027ea816f5ced91a056fba6544 SHA512 c9f680b0a1c94b388fb3da778e1965101e1d376d979a508f3e58a0038b927db9ebf8908f903745d89a4db4a1309d8272f939e6538446b2fecef6e6ea9a8a34ed WHIRLPOOL 54e2b5b3638747f66e60b1f7a7d15b5e6df3912674727b22c25956a08f3b7fec360ed38ad13dd91deb8545b94cf2efaf2ee507806f45dd1a54f0f512b0c4572a
+DIST wxc-0.90.0.4.tar.gz 181799 SHA256 e69e4870c33dc32ee388c5f1be5b0ad1f2b231aa16a51da205cfa295430402ae SHA512 4dd3846465a3c43c507a8b76e3929736b1e0ed0941201803f2209cb2ce347cddda9fd725796c6a7d306209324a9201c91d36ee9808c694c9110ab393d80f5c97 WHIRLPOOL ddebc3f800f15249185e7d0d6b207fd7576e70037792cbb164568c3a960a7cee96518eb6099ffbd2c06319b04c10e4f684b5c376388d39d648afd614806ab6e5
+EBUILD wxc-0.90.0.4.ebuild 2137 SHA256 da60a40e04d961e0d23f2bb51399b260b0aa1ee9071ce7100e1812ac5f384b5e SHA512 43beeaf8f44706866831d6a111a87b0707fbc87bca7ed3b9fe541785563fa9685f9fbcad87ba531e753a9cf8b024b4b9551baf2d4f6409eec449666f29a022ce WHIRLPOOL 9fd3219575e3fdaa6efc807e681d75a5c00977d1e9ca4dbfc9746fc08a099da4e2333b2010815982ee6733be1b29338304011ede5de0a15e56a13d0ea22e0512
+MISC ChangeLog 369 SHA256 d662615225276f0022e2dd04b6e9c64260cb83cb8e6e28f67b1b5e0cd109e16f SHA512 1ed629f844415e54062b579b5ddc717431fa17f1516e72c1da677231810ade449253bcc4a65545331d775dd3d5375d0e67a29613331beec6267655b93887219a WHIRLPOOL f51c9cfc5d893f2de19a67a5e9c85e4eeba511ecc9c96c67422a55cbd7bf7e596c38c6c2a4e45af735a998946364a773408b62961adb2e27de4881daec500168
+MISC metadata.xml 773 SHA256 d9061875f6c18b3794c90741f97bc0fee287bc547dd118777b44d26d8872f4b7 SHA512 5299c6c2957ae96c2885fd5bfea151379bd8bc511ec5a9a4d1b00797932dee7e2e3493ac376510d997d92bfc91a91a4c3d21c3b50eb6a9768295fd5333ed5493 WHIRLPOOL 087aa9b8c0a9ed12138040846271b40f5259a81322cb0f7f0b7871819bf7ee922e95fe44caa40dadd9993a6e497c651713cd12344b0954552aaa97d5617895be
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.19 (GNU/Linux)
+
+iF4EAREIAAYFAlDbsLAACgkQoBEVQmGOlx9QDAEApDNXBZWudWPm/eMrV+9A72Ko
+qUMfAQA+foQaP4PI+k8BAJXpLCw2luni749bIajnoeC4tpQUNodbgpx8uwKuRzMm
+=cQot
+-----END PGP SIGNATURE-----
diff --git a/dev-haskell/wxc/files/wxc-0.90.0.4-wxGTK-2.9.4.1.patch b/dev-haskell/wxc/files/wxc-0.90.0.4-wxGTK-2.9.4.1.patch
new file mode 100644
index 000000000000..3786e6ad5322
--- /dev/null
+++ b/dev-haskell/wxc/files/wxc-0.90.0.4-wxGTK-2.9.4.1.patch
@@ -0,0 +1,11 @@
+--- wxc-0.90.0.4-orig/src/cpp/eljpen.cpp 2012-07-03 20:12:17.000000000 +1000
++++ wxc-0.90.0.4/src/cpp/eljpen.cpp 2012-08-18 11:37:00.625281748 +1000
+@@ -156,7 +156,7 @@
+ EWXWEXPORT(void,wxPen_GetStipple)(void* self,wxBitmap* _ref)
+ {
+ #if defined(__WXGTK__)
+- *_ref = NULL;
++ *_ref = wxBitmap();
+ #else
+ *_ref = *(((wxPen*)self)->GetStipple());
+ #endif
diff --git a/dev-haskell/wxc/metadata.xml b/dev-haskell/wxc/metadata.xml
new file mode 100644
index 000000000000..0119ed024d0a
--- /dev/null
+++ b/dev-haskell/wxc/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>haskell</herd>
+ <maintainer>
+ <email>haskell@gentoo.org</email>
+ </maintainer>
+ <longdescription>
+ wxHaskell is a portable and native GUI library for Haskell. It is
+ built on top of wxWidgets, a comprehensive C++ library that is
+ portable across all major GUI platforms, including GTK, Windows,
+ X11, and MacOS X. This version works with wxWidgets 2.9 only.
+ Distributed under the WXWINDOWS LIBRARY LICENSE. Please see
+ LICENSE file, but note that this is essentially LGPL with an
+ exception allowing binary distribution of proprietary software.
+ This is the same license as wxWidgets itself uses.
+ </longdescription>
+</pkgmetadata>
diff --git a/dev-haskell/wxc/wxc-0.90.0.4.ebuild b/dev-haskell/wxc/wxc-0.90.0.4.ebuild
new file mode 100644
index 000000000000..667c17becb8f
--- /dev/null
+++ b/dev-haskell/wxc/wxc-0.90.0.4.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $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 $
+
+EAPI=5
+
+# ebuild generated by hackport 0.3.9999
+
+WX_GTK_VER="2.9"
+
+CABAL_FEATURES="lib profile"
+inherit base haskell-cabal multilib versionator wxwidgets
+
+DESCRIPTION="wxHaskell C++ wrapper"
+HOMEPAGE="http://haskell.org/haskellwiki/WxHaskell"
+SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
+
+LICENSE="wxWinLL-3.1"
+SLOT="${WX_GTK_VER}/${PV}"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE="opengl"
+
+RDEPEND=">=dev-haskell/wxdirect-0.90:${WX_GTK_VER}=[profile?]
+ x11-libs/wxGTK:${WX_GTK_VER}=[X,gstreamer,opengl?]
+ >=dev-lang/ghc-6.10.4:="
+DEPEND="${RDEPEND}
+ >=dev-haskell/cabal-1.2"
+
+PATCHES=("${FILESDIR}/${PN}-0.90.0.4-wxGTK-2.9.4.1.patch")
+
+src_prepare() {
+ base_src_prepare
+ sed -e "s@\"wx-config\"@\"${WX_CONFIG}\"@g" \
+ -i "${S}/Setup.hs" || die "Could not specify wx-config in Setup.hs"
+}
+
+src_configure() {
+ local cgcc=()
+ for i in ${CXXFLAGS}
+ do
+ cgcc+=( --gcc-option="${i}" )
+ done
+ # Trying to specify the LDFLAGS in --ld-option does not work, as ld does
+ # not understand ld options prefixed with -Wl,
+ # The linker that is used to link the libwxc.so shared library is hard coded
+ # in Setup.hs. So the --with-ld would not change the linker used when
+ # linking libwxc.so. --with-ld="gcc" does not help, as then cabal passes
+ # ld options like -x to gcc which then returns a non-zero exit status, then
+ # cabal ignores all the --ld-option parameters.
+ # So I place all the LDFLAGS in --gcc-option parameters. They are ignored
+ # when building .o files.
+ local cld=()
+ for i in ${LDFLAGS}
+ do
+ cld+=( --gcc-option="${i}" )
+ done
+ cabal_src_configure ${cgcc[*]} ${cld[*]} --verbose=3
+}
+
+src_install() {
+ cabal_src_install
+ dolib.so dist/build/lib${PN}.so.${PV}
+ dosym lib${PN}.so.${PV} /usr/$(get_libdir)/lib${PN}.so.$(get_version_component_range 1-2)
+ dosym lib${PN}.so.${PV} /usr/$(get_libdir)/lib${PN}.so.$(get_major_version)
+ dosym lib${PN}.so.${PV} /usr/$(get_libdir)/lib${PN}.so
+}