pkgsrc-Changes archive

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

CVS commit: pkgsrc/chat



Module Name:    pkgsrc
Committed By:   adam
Date:           Mon Jan 20 17:25:10 UTC 2020

Modified Files:
        pkgsrc/chat: Makefile
Added Files:
        pkgsrc/chat/libgadu: DESCR Makefile PLIST buildlink3.mk distinfo
        pkgsrc/chat/libgadu/patches: patch-configure.ac patch-protobufgen.sh

Log Message:
libgadu: added version 1.12.2

libgadu is library for handling Gadu-Gadu instant messenger protocol. For a
long time it was an intergral part of ekg application but due to packaging
issues and use in other appliactions it became a project on its own.
Proprietary protocol was reverse engineered which may make libgadu less than
100% compatible with the original.


To generate a diff of this commit:
cvs rdiff -u -r1.236 -r1.237 pkgsrc/chat/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/chat/libgadu/DESCR pkgsrc/chat/libgadu/Makefile \
    pkgsrc/chat/libgadu/PLIST pkgsrc/chat/libgadu/buildlink3.mk \
    pkgsrc/chat/libgadu/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/chat/libgadu/patches/patch-configure.ac \
    pkgsrc/chat/libgadu/patches/patch-protobufgen.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/chat/Makefile
diff -u pkgsrc/chat/Makefile:1.236 pkgsrc/chat/Makefile:1.237
--- pkgsrc/chat/Makefile:1.236  Thu Jan 16 13:44:19 2020
+++ pkgsrc/chat/Makefile        Mon Jan 20 17:25:10 2020
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.236 2020/01/16 13:44:19 nia Exp $
+# $NetBSD: Makefile,v 1.237 2020/01/20 17:25:10 adam Exp $
 #
 
 COMMENT=       Communication programs
@@ -67,6 +67,7 @@ SUBDIR+=      ktp-filetransfer-handler
 SUBDIR+=       ktp-kded-integration-module
 SUBDIR+=       ktp-send-file
 SUBDIR+=       ktp-text-ui
+SUBDIR+=       libgadu
 SUBDIR+=       libfolks
 SUBDIR+=       libirc
 SUBDIR+=       libmsn

Added files:

Index: pkgsrc/chat/libgadu/DESCR
diff -u /dev/null pkgsrc/chat/libgadu/DESCR:1.1
--- /dev/null   Mon Jan 20 17:25:10 2020
+++ pkgsrc/chat/libgadu/DESCR   Mon Jan 20 17:25:10 2020
@@ -0,0 +1,5 @@
+libgadu is library for handling Gadu-Gadu instant messenger protocol. For a
+long time it was an intergral part of ekg application but due to packaging
+issues and use in other appliactions it became a project on its own.
+Proprietary protocol was reverse engineered which may make libgadu less than
+100% compatible with the original.
Index: pkgsrc/chat/libgadu/Makefile
diff -u /dev/null pkgsrc/chat/libgadu/Makefile:1.1
--- /dev/null   Mon Jan 20 17:25:10 2020
+++ pkgsrc/chat/libgadu/Makefile        Mon Jan 20 17:25:10 2020
@@ -0,0 +1,36 @@
+# $NetBSD: Makefile,v 1.1 2020/01/20 17:25:10 adam Exp $
+
+DISTNAME=      libgadu-1.12.2
+CATEGORIES=    chat
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=wojtekka/}
+
+MAINTAINER=    adam%NetBSD.org@localhost
+HOMEPAGE=      http://libgadu.net/
+COMMENT=       Library for handling the protocol of Gadu-Gadu
+LICENSE=       gnu-lgpl-v2.1
+
+USE_LANGUAGES=         c c++
+USE_LIBTOOL=           yes
+USE_TOOLS+=            autoconf automake gmake perl:test pkg-config
+GNU_CONFIGURE=         yes
+CONFIGURE_ARGS+=       --with-openssl
+CONFIGURE_ARGS+=       --without-bind
+CONFIGURE_ARGS+=       --without-gnutls
+# XXX: https://github.com/wojtekka/libgadu/issues/25
+CONFIGURE_ARGS+=       --without-pthread
+PKGCONFIG_OVERRIDE+=   pkgconfig/libgadu.pc.in
+TEST_TARGET=           check
+
+REPLACE_PERL=  test/protocol/compile
+
+pre-configure:
+       cd ${WRKSRC} && \
+       ${SETENV} NOCONFIGURE=no ${SH} ./autogen.sh
+
+.include "../../devel/protobuf-c/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../security/openssl/buildlink3.mk"
+.include "../../textproc/libxml2/buildlink3.mk"
+.include "../../www/curl/buildlink3.mk"
+#.include "../../mk/pthread.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/chat/libgadu/PLIST
diff -u /dev/null pkgsrc/chat/libgadu/PLIST:1.1
--- /dev/null   Mon Jan 20 17:25:10 2020
+++ pkgsrc/chat/libgadu/PLIST   Mon Jan 20 17:25:10 2020
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1 2020/01/20 17:25:10 adam Exp $
+include/libgadu.h
+lib/libgadu.la
+lib/pkgconfig/libgadu.pc
Index: pkgsrc/chat/libgadu/buildlink3.mk
diff -u /dev/null pkgsrc/chat/libgadu/buildlink3.mk:1.1
--- /dev/null   Mon Jan 20 17:25:10 2020
+++ pkgsrc/chat/libgadu/buildlink3.mk   Mon Jan 20 17:25:10 2020
@@ -0,0 +1,16 @@
+# $NetBSD: buildlink3.mk,v 1.1 2020/01/20 17:25:10 adam Exp $
+
+BUILDLINK_TREE+=       libgadu
+
+.if !defined(LIBGADU_BUILDLINK3_MK)
+LIBGADU_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.libgadu+=        libgadu>=1.12.2
+BUILDLINK_PKGSRCDIR.libgadu?=  ../../chat/libgadu
+
+.include "../../devel/protobuf-c/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../security/openssl/buildlink3.mk"
+.endif # LIBGADU_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -libgadu
Index: pkgsrc/chat/libgadu/distinfo
diff -u /dev/null pkgsrc/chat/libgadu/distinfo:1.1
--- /dev/null   Mon Jan 20 17:25:10 2020
+++ pkgsrc/chat/libgadu/distinfo        Mon Jan 20 17:25:10 2020
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1 2020/01/20 17:25:10 adam Exp $
+
+SHA1 (libgadu-1.12.2.tar.gz) = 252ecade86e0d53ff30c4ece71b764c571b28b2a
+RMD160 (libgadu-1.12.2.tar.gz) = 5d67b799710d42985b18bef15ddfc9e2f2eb5309
+SHA512 (libgadu-1.12.2.tar.gz) = d3b4fde94327ef312b1df668b8eb73fea9325c9258d85aa65e2746b73f00c2606ebe23f3330493a135a0fec1d0f24988f0cec607d4d899d880853ee8bf60e677
+Size (libgadu-1.12.2.tar.gz) = 298884 bytes
+SHA1 (patch-configure.ac) = 7e25edf3aa50ec2bb1cca842686b1af08ecd6530
+SHA1 (patch-protobufgen.sh) = 27cc83cff2a20b24fef5e1c8c87140a0e91fdbbc

Index: pkgsrc/chat/libgadu/patches/patch-configure.ac
diff -u /dev/null pkgsrc/chat/libgadu/patches/patch-configure.ac:1.1
--- /dev/null   Mon Jan 20 17:25:10 2020
+++ pkgsrc/chat/libgadu/patches/patch-configure.ac      Mon Jan 20 17:25:10 2020
@@ -0,0 +1,15 @@
+$NetBSD: patch-configure.ac,v 1.1 2020/01/20 17:25:10 adam Exp $
+
+Portability fix.
+
+--- configure.ac.orig  2020-01-17 21:30:01.000000000 +0000
++++ configure.ac
+@@ -461,7 +461,7 @@ dnl
+ AC_ARG_ENABLE(werror,
+         [  --enable-werror         halt on warnings])
+ 
+-if test "x$enable_werror" == "xyes"; then
++if test "x$enable_werror" = "xyes"; then
+       CFLAGS="$CFLAGS -Werror"
+ fi
+ 
Index: pkgsrc/chat/libgadu/patches/patch-protobufgen.sh
diff -u /dev/null pkgsrc/chat/libgadu/patches/patch-protobufgen.sh:1.1
--- /dev/null   Mon Jan 20 17:25:10 2020
+++ pkgsrc/chat/libgadu/patches/patch-protobufgen.sh    Mon Jan 20 17:25:10 2020
@@ -0,0 +1,17 @@
+$NetBSD: patch-protobufgen.sh,v 1.1 2020/01/20 17:25:10 adam Exp $
+
+Portability fix.
+
+--- protobufgen.sh.orig        2020-01-17 21:22:08.000000000 +0000
++++ protobufgen.sh
+@@ -42,8 +42,8 @@ if [ "x$PROTOC_LEGACY" = "xyes" ]; then
+       sed -i 's/PROTOBUF_C_MESSAGE_DESCRIPTOR_MAGIC/PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC/g' packets.pb-c.c
+       sed -i 's/PROTOBUF_C_ENUM_DESCRIPTOR_MAGIC/PROTOBUF_C__ENUM_DESCRIPTOR_MAGIC/g' packets.pb-c.c
+ else
+-      sed -i 's/<protobuf-c\/protobuf-c.h>/"protobuf.h"/g' packets.pb-c.h
++      sed 's/<protobuf-c\/protobuf-c.h>/"protobuf.h"/g' packets.pb-c.h > include/packets.pb-c.h
+ fi
+ 
+-mv packets.pb-c.h include
++rm packets.pb-c.h
+ mv packets.pb-c.c src



Home | Main Index | Thread Index | Old Index