aboutsummaryrefslogtreecommitdiff
path: root/net-im/hs-haskell-xmpp
diff options
context:
space:
mode:
Diffstat (limited to 'net-im/hs-haskell-xmpp')
-rw-r--r--net-im/hs-haskell-xmpp/Makefile17
-rw-r--r--net-im/hs-haskell-xmpp/distinfo2
-rw-r--r--net-im/hs-haskell-xmpp/files/patch-src_Network_XMPP_Stream.hs7
-rw-r--r--net-im/hs-haskell-xmpp/files/patch-src__Network__XMPP__Types.hs12
-rw-r--r--net-im/hs-haskell-xmpp/pkg-descr10
5 files changed, 48 insertions, 0 deletions
diff --git a/net-im/hs-haskell-xmpp/Makefile b/net-im/hs-haskell-xmpp/Makefile
new file mode 100644
index 000000000000..afd534cb0357
--- /dev/null
+++ b/net-im/hs-haskell-xmpp/Makefile
@@ -0,0 +1,17 @@
+# $FreeBSD$
+
+PORTNAME= haskell-xmpp
+PORTVERSION= 1.0.2
+PORTREVISION= 1
+CATEGORIES= net-im haskell
+
+MAINTAINER= haskell@FreeBSD.org
+COMMENT= Haskell XMPP library based on HaXml & STM
+
+LICENSE= BSD3CLAUSE
+
+USE_CABAL= HaXml>=1.23.3 html mtl>=1.0 network \
+ polyparse random regex-compat stm utf8-string
+
+.include "${.CURDIR}/../../lang/ghc/bsd.cabal.mk"
+.include <bsd.port.mk>
diff --git a/net-im/hs-haskell-xmpp/distinfo b/net-im/hs-haskell-xmpp/distinfo
new file mode 100644
index 000000000000..a7a81655356b
--- /dev/null
+++ b/net-im/hs-haskell-xmpp/distinfo
@@ -0,0 +1,2 @@
+SHA256 (cabal/haskell-xmpp-1.0.2.tar.gz) = a9345eb03a7ea0dc4a50af3a916ad2c455fb2232c6d36830afc8e70d6c259dfc
+SIZE (cabal/haskell-xmpp-1.0.2.tar.gz) = 24931
diff --git a/net-im/hs-haskell-xmpp/files/patch-src_Network_XMPP_Stream.hs b/net-im/hs-haskell-xmpp/files/patch-src_Network_XMPP_Stream.hs
new file mode 100644
index 000000000000..0ec10f55f409
--- /dev/null
+++ b/net-im/hs-haskell-xmpp/files/patch-src_Network_XMPP_Stream.hs
@@ -0,0 +1,7 @@
+--- src/Network/XMPP/Stream.hs.orig 2012-08-30 21:44:36 UTC
++++ src/Network/XMPP/Stream.hs
+@@ -1,3 +1,4 @@
++{-# LANGUAGE FlexibleContexts #-}
+ -----------------------------------------------------------------------------
+ -- |
+ -- Module : Network.XMPP.Stream
diff --git a/net-im/hs-haskell-xmpp/files/patch-src__Network__XMPP__Types.hs b/net-im/hs-haskell-xmpp/files/patch-src__Network__XMPP__Types.hs
new file mode 100644
index 000000000000..c92ed1abec05
--- /dev/null
+++ b/net-im/hs-haskell-xmpp/files/patch-src__Network__XMPP__Types.hs
@@ -0,0 +1,12 @@
+--- ./src/Network/XMPP/Types.hs.orig 2013-07-05 10:53:16.000000000 +0800
++++ ./src/Network/XMPP/Types.hs 2013-07-05 10:53:56.000000000 +0800
+@@ -139,9 +139,6 @@
+
+ data ShowType = Available | Away | FreeChat | DND | XAway deriving Eq
+
+-instance Show (Content a) where
+- show = render . P.content
+-
+ instance Show MessageType where
+ show Chat = "chat"
+ show GroupChat = "groupchat"
diff --git a/net-im/hs-haskell-xmpp/pkg-descr b/net-im/hs-haskell-xmpp/pkg-descr
new file mode 100644
index 000000000000..3ab97f7c9d50
--- /dev/null
+++ b/net-im/hs-haskell-xmpp/pkg-descr
@@ -0,0 +1,10 @@
+Haskell XMPP (eXtensible Message Passing Protocol, a.k.a. Jabber) library
+
+Unlike package network-protocol-xmpp, which uses libxml-sax, this library
+uses HaXml and supports MUC. However, MUC support of the moment is worse
+than that in package XMPP.
+
+This library make extensive use of STM and threads to simplify writing
+message-handling code.
+
+WWW: http://patch-tag.com/r/adept/haskell-xmpp/home