pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/chat chat/carbons-purple: Import version 0.2.1



details:   https://anonhg.NetBSD.org/pkgsrc/rev/366082b8b47c
branches:  trunk
changeset: 387911:366082b8b47c
user:      nia <nia%pkgsrc.org@localhost>
date:      Tue Nov 27 19:25:05 2018 +0000

description:
chat/carbons-purple: Import version 0.2.1

If you have multiple devices and want messages sent and received
by one device show up on all others, XEP-0280: Message Carbons is
what you are looking for.

This is an experimental XMPP XEP-0280: Message Carbons plugin for
libpurple (Pidgin, Finch, etc.)

diffstat:

 chat/Makefile                              |   3 +-
 chat/carbons-purple/DESCR                  |   6 ++++
 chat/carbons-purple/Makefile               |  22 ++++++++++++++++
 chat/carbons-purple/PLIST                  |   2 +
 chat/carbons-purple/distinfo               |   7 +++++
 chat/carbons-purple/patches/patch-Makefile |  40 ++++++++++++++++++++++++++++++
 6 files changed, 79 insertions(+), 1 deletions(-)

diffs (114 lines):

diff -r ef6c077ef749 -r 366082b8b47c chat/Makefile
--- a/chat/Makefile     Tue Nov 27 19:08:26 2018 +0000
+++ b/chat/Makefile     Tue Nov 27 19:25:05 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.207 2018/11/27 18:21:54 maya Exp $
+# $NetBSD: Makefile,v 1.208 2018/11/27 19:25:05 nia Exp $
 #
 
 COMMENT=       Communication programs
@@ -10,6 +10,7 @@
 SUBDIR+=       bitlbee
 SUBDIR+=       bnc
 SUBDIR+=       bsflite
+SUBDIR+=       carbons-purple
 SUBDIR+=       centerim
 SUBDIR+=       cgiirc
 SUBDIR+=       climm
diff -r ef6c077ef749 -r 366082b8b47c chat/carbons-purple/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/chat/carbons-purple/DESCR Tue Nov 27 19:25:05 2018 +0000
@@ -0,0 +1,6 @@
+If you have multiple devices and want messages sent and received
+by one device show up on all others, XEP-0280: Message Carbons is
+what you are looking for.
+
+This is an experimental XMPP XEP-0280: Message Carbons plugin for
+libpurple (Pidgin, Finch, etc.)
diff -r ef6c077ef749 -r 366082b8b47c chat/carbons-purple/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/chat/carbons-purple/Makefile      Tue Nov 27 19:25:05 2018 +0000
@@ -0,0 +1,22 @@
+# $NetBSD: Makefile,v 1.1 2018/11/27 19:25:05 nia Exp $
+
+DISTNAME=      carbons-purple-0.2.1
+CATEGORIES=    chat
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=gkdr/}
+GITHUB_PROJECT=        carbons
+GITHUB_TAG=    v${PKGVERSION_NOREV}
+
+MAINTAINER=    nia%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/gkdr/carbons
+COMMENT=       XEP-0280: Message Carbons plugin for libpurple
+LICENSE=       gnu-gpl-v2
+
+EXTRACT_USING= bsdtar
+USE_TOOLS+=    gmake pkg-config
+
+MAKE_FLAGS+=   PURPLE_PLUGIN_DIR=${DESTDIR}${PREFIX}/lib/purple-2
+
+.include "../../chat/libpurple/buildlink3.mk"
+.include "../../mk/dlopen.buildlink3.mk"
+BUILDLINK_TRANSFORM+=  opt:-ldl:${BUILDLINK_LDADD.dl:Q}
+.include "../../mk/bsd.pkg.mk"
diff -r ef6c077ef749 -r 366082b8b47c chat/carbons-purple/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/chat/carbons-purple/PLIST Tue Nov 27 19:25:05 2018 +0000
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2018/11/27 19:25:05 nia Exp $
+lib/purple-2/carbons.so
diff -r ef6c077ef749 -r 366082b8b47c chat/carbons-purple/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/chat/carbons-purple/distinfo      Tue Nov 27 19:25:05 2018 +0000
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2018/11/27 19:25:05 nia Exp $
+
+SHA1 (carbons-purple-0.2.1.tar.gz) = 7cc39a82ee562196f804f66ddb7f2d74ca67bbac
+RMD160 (carbons-purple-0.2.1.tar.gz) = 7b847baeace9eac5d56f3a648715357de5c9e405
+SHA512 (carbons-purple-0.2.1.tar.gz) = 1184ff3fa7f7a8f1c90d8a66ca050bf605dab6056a8f732648b0a6ba747e2975fb82bb411caf5e3752cbd74b702c74908388174d925787dbf3fe9de900cf9eb6
+Size (carbons-purple-0.2.1.tar.gz) = 21773 bytes
+SHA1 (patch-Makefile) = 1c0754391b4589a5741e58043155484427875536
diff -r ef6c077ef749 -r 366082b8b47c chat/carbons-purple/patches/patch-Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/chat/carbons-purple/patches/patch-Makefile        Tue Nov 27 19:25:05 2018 +0000
@@ -0,0 +1,40 @@
+$NetBSD: patch-Makefile,v 1.1 2018/11/27 19:25:05 nia Exp $
+
+Needs -lpurple.
+
+--- Makefile.orig      2018-10-14 19:45:13.000000000 +0000
++++ Makefile
+@@ -2,14 +2,13 @@ PURPLE_PLUGIN_DIR=~/.purple/plugins
+ PIDGIN_DIR=./pidgin-2.11.0
+ PURPLE_PLUGIN_SRC_DIR=$(PIDGIN_DIR)/libpurple/plugins
+ 
+-CC ?= gcc
+-
+ PKG_CONFIG ?= pkg-config
+ GLIB_CFLAGS ?= $(shell $(PKG_CONFIG) --cflags glib-2.0)
+ GLIB_LDFLAGS ?= $(shell $(PKG_CONFIG) --libs glib-2.0)
+ 
+ LIBPURPLE_CFLAGS ?= $(shell $(PKG_CONFIG) --cflags purple)
+-LIBPURPLE_LDFLAGS ?= $(shell $(PKG_CONFIG) --cflags purple) \
++LIBPURPLE_LDFLAGS=$(shell $(PKG_CONFIG) --libs purple) \
++                   -Wl,-R$(shell $(PKG_CONFIG) --variable=plugindir purple) \
+                    -L$(shell $(PKG_CONFIG) --variable=plugindir purple)
+ 
+ XML2_CONFIG ?= xml2-config
+@@ -32,14 +31,10 @@ PKGCFG_L=$(GLIB_LDFLAGS) \
+        $(LIBPURPLE_LDFLAGS) \
+        $(XML2_LDFLAGS)
+ 
+-CFLAGS=-std=c11 -Wall -g -Wstrict-overflow -fPIC -shared -D_XOPEN_SOURCE=700 -D_BSD_SOURCE -D_DEFAULT_SOURCE $(PKGCFG_C) $(HEADERS)
++CFLAGS+=-std=c11 -Wall -Wstrict-overflow -fPIC -shared -D_XOPEN_SOURCE=700 -D_BSD_SOURCE -D_DEFAULT_SOURCE $(PKGCFG_C) $(HEADERS)
+ PLUGIN_CPPFLAGS=-DPURPLE_PLUGINS
+ 
+-ifneq ("$(wildcard /etc/redhat-release)","")
+-      LJABBER?=-lxmpp
+-else
+-      LJABBER?=-ljabber
+-endif
++LJABBER?=-ljabber
+ LFLAGS= -ldl -lm $(PKGCFG_L) $(LJABBER)
+ 
+ all: $(BDIR)/carbons.so



Home | Main Index | Thread Index | Old Index