summaryrefslogtreecommitdiff
path: root/chat
diff options
context:
space:
mode:
authorwiz <wiz>2014-04-26 11:41:46 +0000
committerwiz <wiz>2014-04-26 11:41:46 +0000
commit46276c4d8f7dc1e7ffcff2560b5de36945ffc86a (patch)
tree5b0bc9c6c51ca3f44570751ad8323007926d574b /chat
parent3571cf64cd9b4fc19e43a02a7881c8dc136103c9 (diff)
downloadpkgsrc-46276c4d8f7dc1e7ffcff2560b5de36945ffc86a.tar.gz
Import swift-2.0 as chat/swift, packaged for wip by schnoebe and myself.
Swift is trying to plug a hole in the XMPP client landscape, and has these aims: * Wide platform availability. * Doing the "Right Thing" for the user, without configuration. * Doing the "Right Thing" with standards-compliance. * Targeting the end-users, not the system administrators. * Being an XMPP client - not multi-protocol. * Concentrating on the most frequently performed tasks. * Never interrupt the user with something that doesn't need attention. Features of interest * Easy status setting. * Easy room joining and bookmarking. * XEP-0258 Labelling for secure environments. * Stream compression for bandwidth-saving. * Support for the new SCRAM authentication mechanism.
Diffstat (limited to 'chat')
-rw-r--r--chat/swift/DESCR18
-rw-r--r--chat/swift/Makefile49
-rw-r--r--chat/swift/PLIST26
-rw-r--r--chat/swift/distinfo7
-rw-r--r--chat/swift/patches/patch-BuildTools_SCons_Tools_qt4.py15
-rw-r--r--chat/swift/patches/patch-Swiften_EventLoop_EventLoop.cpp17
6 files changed, 132 insertions, 0 deletions
diff --git a/chat/swift/DESCR b/chat/swift/DESCR
new file mode 100644
index 00000000000..c0d839b8dcb
--- /dev/null
+++ b/chat/swift/DESCR
@@ -0,0 +1,18 @@
+Swift is trying to plug a hole in the XMPP client landscape, and has
+these aims:
+
+ * Wide platform availability.
+ * Doing the "Right Thing" for the user, without configuration.
+ * Doing the "Right Thing" with standards-compliance.
+ * Targeting the end-users, not the system administrators.
+ * Being an XMPP client - not multi-protocol.
+ * Concentrating on the most frequently performed tasks.
+ * Never interrupt the user with something that doesn't need attention.
+
+Features of interest
+
+ * Easy status setting.
+ * Easy room joining and bookmarking.
+ * XEP-0258 Labelling for secure environments.
+ * Stream compression for bandwidth-saving.
+ * Support for the new SCRAM authentication mechanism.
diff --git a/chat/swift/Makefile b/chat/swift/Makefile
new file mode 100644
index 00000000000..8c815d4f504
--- /dev/null
+++ b/chat/swift/Makefile
@@ -0,0 +1,49 @@
+# $NetBSD: Makefile,v 1.1 2014/04/26 11:41:46 wiz Exp $
+
+DISTNAME= swift-2.0
+CATEGORIES= chat
+MASTER_SITES= http://swift.im/downloads/releases/swift-2.0/
+
+MAINTAINER= eric@cirr.com
+HOMEPAGE= http://swift.im/
+COMMENT= Swift XMPP Client
+LICENSE= gnu-gpl-v3
+
+DEPENDS+= scons>=1.3:../../devel/scons
+
+USE_LANGUAGES= c c++
+USE_TOOLS+= pkg-config
+
+# MAKE_ENV+= CPPPATH="${BUILDLINK_DIR}/include:${BUILDLINK_DIR}/qt4/include"
+# MAKE_ENV+= LIBPATH="${BUILDLINK_DIR}/lib:${BUILDLINK_DIR}/qt4/lib"
+
+SUBST_CLASSES+= path
+SUBST_STAGE.path= pre-configure
+SUBST_SED.path+= -e "s,/usr/local/share/,${PREFIX}/share/,"
+SUBST_FILES.path+= SwifTools/Application/UnixApplicationPathProvider.cpp
+SUBST_MESSAGE.path= Fixing path to support files.
+
+do-configure:
+ cd ${WRKSRC} ; \
+ ${ECHO} "qt=\"${QTDIR}\"" > config.py ;\
+ ${ECHO} "linkflags=\"-Wl,-R${QTDIR}/lib -Wl,-R${X11BASE}/lib -Wl,-R${BUILDLINK_DIR}/lib\"" >> config.py ; \
+ ${ECHO} "allow_warnings=\"true\"" >> config.py ;
+
+do-build:
+ cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PREFIX}/bin/scons
+
+do-install:
+ cd ${WRKSRC} && \
+ ${SETENV} ${MAKE_ENV} ${PREFIX}/bin/scons \
+ SWIFT_INSTALLDIR=${DESTDIR}/${PREFIX} ${DESTDIR}/${PREFIX}
+
+.include "../../lang/python/application.mk"
+.include "../../devel/boost-libs/buildlink3.mk"
+.include "../../devel/libidn/buildlink3.mk"
+.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
+.include "../../security/openssl/buildlink3.mk"
+.include "../../sysutils/desktop-file-utils/desktopdb.mk"
+.include "../../x11/qt4-libs/buildlink3.mk"
+.include "../../x11/qt4-qdbus/buildlink3.mk"
+.include "../../x11/qt4-tools/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/chat/swift/PLIST b/chat/swift/PLIST
new file mode 100644
index 00000000000..cd7d11be8e1
--- /dev/null
+++ b/chat/swift/PLIST
@@ -0,0 +1,26 @@
+@comment $NetBSD: PLIST,v 1.1 2014/04/26 11:41:46 wiz Exp $
+bin/swift-im
+bin/swift-open-uri
+share/applications/swift.desktop
+share/icons/hicolor/128x128/apps/swift.png
+share/icons/hicolor/16x16/apps/swift.png
+share/icons/hicolor/22x22/apps/swift.png
+share/icons/hicolor/24x24/apps/swift.png
+share/icons/hicolor/32x32/apps/swift.xpm
+share/icons/hicolor/64x64/apps/swift.png
+share/icons/hicolor/scalable/apps/swift.svg
+share/pixmaps/swift.xpm
+share/swift/sounds/message-received.wav
+share/swift/translations/swift_ca.qm
+share/swift/translations/swift_de.qm
+share/swift/translations/swift_en.qm
+share/swift/translations/swift_es.qm
+share/swift/translations/swift_fr.qm
+share/swift/translations/swift_gl.qm
+share/swift/translations/swift_he.qm
+share/swift/translations/swift_hu.qm
+share/swift/translations/swift_nl.qm
+share/swift/translations/swift_pl.qm
+share/swift/translations/swift_ru.qm
+share/swift/translations/swift_sk.qm
+share/swift/translations/swift_sv.qm
diff --git a/chat/swift/distinfo b/chat/swift/distinfo
new file mode 100644
index 00000000000..1193a2ff6d8
--- /dev/null
+++ b/chat/swift/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2014/04/26 11:41:46 wiz Exp $
+
+SHA1 (swift-2.0.tar.gz) = b04ba098fffb1edc2ef0215957371c249458f0be
+RMD160 (swift-2.0.tar.gz) = f1e8f38e650a3178e236ec8d6f3cb97fecb4910d
+Size (swift-2.0.tar.gz) = 8816954 bytes
+SHA1 (patch-BuildTools_SCons_Tools_qt4.py) = 9c1f20a0dae15f73db02bbfe0d11e077176f2fcc
+SHA1 (patch-Swiften_EventLoop_EventLoop.cpp) = a840ad43cd5082c3f511c6efd1a49e910c3fb6ea
diff --git a/chat/swift/patches/patch-BuildTools_SCons_Tools_qt4.py b/chat/swift/patches/patch-BuildTools_SCons_Tools_qt4.py
new file mode 100644
index 00000000000..1fda8cdc179
--- /dev/null
+++ b/chat/swift/patches/patch-BuildTools_SCons_Tools_qt4.py
@@ -0,0 +1,15 @@
+$NetBSD: patch-BuildTools_SCons_Tools_qt4.py,v 1.1 2014/04/26 11:41:46 wiz Exp $
+
+Handle NetBSD like Linux.
+
+--- BuildTools/SCons/Tools/qt4.py.orig 2012-12-22 12:23:58.000000000 +0000
++++ BuildTools/SCons/Tools/qt4.py
+@@ -448,7 +448,7 @@ def enable_modules(self, modules, debug=
+ except: pass
+ debugSuffix = ''
+
+- if sys.platform.startswith("linux") and not crosscompiling :
++ if (sys.platform.startswith("linux") or sys.platform.startswith("netbsd")) and not crosscompiling :
+ if debug : debugSuffix = '_debug'
+ self.AppendUnique(CPPPATH=[os.path.join("$QTDIR","include", "phonon")])
+ for module in modules :
diff --git a/chat/swift/patches/patch-Swiften_EventLoop_EventLoop.cpp b/chat/swift/patches/patch-Swiften_EventLoop_EventLoop.cpp
new file mode 100644
index 00000000000..5f302c11347
--- /dev/null
+++ b/chat/swift/patches/patch-Swiften_EventLoop_EventLoop.cpp
@@ -0,0 +1,17 @@
+$NetBSD: patch-Swiften_EventLoop_EventLoop.cpp,v 1.1 2014/04/26 11:41:46 wiz Exp $
+
+Added missing lock_guard include.
+Change-Id: I1ea6c42292b7c3b5f0ecdc1395b9c8e8cf17a6b9
+
+http://swift.im/git/swift/commit/?h=swift-2.x&id=e4a3c018fe824c0c402dbc3167a113276fbe6e4e
+
+--- Swiften/EventLoop/EventLoop.cpp.orig 2012-12-22 12:23:59.000000000 +0000
++++ Swiften/EventLoop/EventLoop.cpp
+@@ -10,6 +10,7 @@
+ #include <boost/bind.hpp>
+ #include <iostream>
+ #include <cassert>
++#include <boost/thread/locks.hpp>
+
+ #include <Swiften/Base/Log.h>
+