commit 203895bbb3f8177b0a4cac9de85bdda155dd2baa
parent aaf421eafedd53670ed9fded435c890e39d86981
Author: Dan Callaghan <djc@djc.id.au>
Date: Fri, 6 Jan 2012 18:07:06 +1000
initial exheres for dev-haskell/DBus
Diffstat:
3 files changed, 51 insertions(+), 0 deletions(-)
diff --git a/packages/dev-haskell/DBus/DBus-0.4.exheres-0 b/packages/dev-haskell/DBus/DBus-0.4.exheres-0
@@ -0,0 +1,24 @@
+# Copyright 2011 Dan Callaghan <djc@djc.id.au>
+# Distributed under the terms of the GNU General Public License v2
+
+require hackage
+
+SUMMARY="Haskell bindings for the D-Bus API"
+
+LICENCES="BSD-3"
+PLATFORMS="~x86 ~amd64"
+
+DEPENDENCIES="
+ sys-apps/dbus
+ $(haskell_lib_dependencies "
+ dev-haskell/bytestring
+ ")
+"
+
+DEFAULT_SRC_PREPARE_PATCHES=(
+ "${FILES}/${PNV}-setup-autoconf.patch"
+ "${FILES}/${PNV}-oldexception.patch"
+)
+
+BUGS_TO="djc@djc.id.au"
+
diff --git a/packages/dev-haskell/DBus/files/DBus-0.4-oldexception.patch b/packages/dev-haskell/DBus/files/DBus-0.4-oldexception.patch
@@ -0,0 +1,16 @@
+Source: Dan Callaghan <djc@djc.id.au>
+Reason: fails to build on GHC 7
+Upstream: mail sent to maintainer 2012-01-06
+
+diff -ur DBus-0.4.orig/DBus/Internal.hsc DBus-0.4/DBus/Internal.hsc
+--- DBus-0.4.orig/DBus/Internal.hsc 2012-01-06 18:00:20.564122299 +1000
++++ DBus-0.4/DBus/Internal.hsc 2012-01-06 18:05:56.182462752 +1000
+@@ -9,7 +9,7 @@
+
+ module DBus.Internal where
+
+-import Control.Exception (throwDyn)
++import Control.OldException (throwDyn)
+ import Control.Monad (when)
+ import DBus (Error(..))
+ import Foreign
diff --git a/packages/dev-haskell/DBus/files/DBus-0.4-setup-autoconf.patch b/packages/dev-haskell/DBus/files/DBus-0.4-setup-autoconf.patch
@@ -0,0 +1,11 @@
+Source: Dan Callaghan <djc@djc.id.au>
+Reason: `runhaskell Setup.hs configure` fails to run ./configure
+Upstream: mail sent to maintainer 2012-01-06
+
+diff -ur DBus-0.4.orig/Setup.hs DBus-0.4/Setup.hs
+--- DBus-0.4.orig/Setup.hs 2012-01-06 18:00:20.565122304 +1000
++++ DBus-0.4/Setup.hs 2012-01-06 18:00:15.846096013 +1000
+@@ -1,2 +1,2 @@
+ import Distribution.Simple
+-main = defaultMain
++main = defaultMainWithHooks autoconfUserHooks