pkgsrc-WIP-changes archive

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

telegram-purple: prepare the update to version 1.4.7



Module Name:	pkgsrc-wip
Committed By:	Pierre Pronchery <khorben%defora.org@localhost>
Pushed By:	khorben
Date:		Sun Jul 10 06:33:25 2022 +0200
Changeset:	105caadfad6190ecb4fb7d8b098d75d026f3cb86

Modified Files:
	Makefile
Added Files:
	telegram-purple/DESCR
	telegram-purple/Makefile
	telegram-purple/PLIST
	telegram-purple/distinfo
	telegram-purple/patches/patch-Makefile.in
	telegram-purple/patches/patch-configure
	telegram-purple/patches/patch-tgl_Makefile.in
	telegram-purple/patches/patch-tgl_tl-parser_tl-parser.c

Log Message:
telegram-purple: prepare the update to version 1.4.7

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=105caadfad6190ecb4fb7d8b098d75d026f3cb86

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

diffstat:
 Makefile                                           |  1 +
 telegram-purple/DESCR                              |  8 +++++++
 telegram-purple/Makefile                           | 27 ++++++++++++++++++++++
 telegram-purple/PLIST                              | 21 +++++++++++++++++
 telegram-purple/distinfo                           |  9 ++++++++
 telegram-purple/patches/patch-Makefile.in          | 21 +++++++++++++++++
 telegram-purple/patches/patch-configure            | 15 ++++++++++++
 telegram-purple/patches/patch-tgl_Makefile.in      | 21 +++++++++++++++++
 .../patches/patch-tgl_tl-parser_tl-parser.c        | 23 ++++++++++++++++++
 9 files changed, 146 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 1996833879..eab99e969e 100644
--- a/Makefile
+++ b/Makefile
@@ -5472,6 +5472,7 @@ SUBDIR+=	teco
 SUBDIR+=	telegraf
 SUBDIR+=	telegram-cli
 SUBDIR+=	telegram-desktop
+SUBDIR+=	telegram-purple
 SUBDIR+=	telepathy-butterfly
 SUBDIR+=	telepathy-logger
 SUBDIR+=	template-glib
diff --git a/telegram-purple/DESCR b/telegram-purple/DESCR
new file mode 100644
index 0000000000..e034d95599
--- /dev/null
+++ b/telegram-purple/DESCR
@@ -0,0 +1,8 @@
+Telegram is a cloud-based instant messaging service. Telegram clients exist for
+both mobile (Android, iOS, Windows Phone, Ubuntu Touch) and desktop systems
+(Windows, OS X, Linux). Users can send messages and exchange photos, videos,
+stickers and files of any type up to 1.5 GB in size. Telegram also provides
+optional end-to-end encrypted messaging with self-destruct timers.
+
+This package contains a libpurple protocol plugin that adds support for the
+Telegram messenger.
diff --git a/telegram-purple/Makefile b/telegram-purple/Makefile
new file mode 100644
index 0000000000..fc04d065fb
--- /dev/null
+++ b/telegram-purple/Makefile
@@ -0,0 +1,27 @@
+# $NetBSD: Makefile,v 1.18 2022/04/18 19:10:32 adam Exp $
+
+DISTNAME=	telegram-purple_1.4.7.orig
+PKGNAME=	telegram-purple-1.4.7
+CATEGORIES=	chat
+MASTER_SITES=	${MASTER_SITE_GITHUB:=majn/}
+GITHUB_PROJECT=	telegram-purple
+GITHUB_RELEASE=	v1.4.7
+
+MAINTAINER=	khorben%defora.org@localhost
+HOMEPAGE=	https://github.com/majn/telegram-purple/
+COMMENT=	libpurple protocol plugin for the Telegram messenger
+LICENSE=	gnu-gpl-v3
+
+WRKSRC=		${WRKDIR}/${PKGBASE}
+USE_TOOLS+=	gmake msgfmt pkg-config
+
+GNU_CONFIGURE=	yes
+
+BUILDLINK_TRANSFORM+=	rm:-Werror
+
+.include "../../chat/libpurple/buildlink3.mk"
+.include "../../devel/libexecinfo/buildlink3.mk"
+.include "../../graphics/png/buildlink3.mk"
+.include "../../graphics/libwebp/buildlink3.mk"
+.include "../../security/libgcrypt/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/telegram-purple/PLIST b/telegram-purple/PLIST
new file mode 100644
index 0000000000..6dffb2470d
--- /dev/null
+++ b/telegram-purple/PLIST
@@ -0,0 +1,21 @@
+@comment $NetBSD$
+lib/purple-2/telegram-purple.so
+share/locale/bg/LC_MESSAGES/telegram-purple.mo
+share/locale/cs_CZ/LC_MESSAGES/telegram-purple.mo
+share/locale/de/LC_MESSAGES/telegram-purple.mo
+share/locale/es/LC_MESSAGES/telegram-purple.mo
+share/locale/es_AR/LC_MESSAGES/telegram-purple.mo
+share/locale/fr/LC_MESSAGES/telegram-purple.mo
+share/locale/fur/LC_MESSAGES/telegram-purple.mo
+share/locale/it/LC_MESSAGES/telegram-purple.mo
+share/locale/nl/LC_MESSAGES/telegram-purple.mo
+share/locale/nn/LC_MESSAGES/telegram-purple.mo
+share/locale/pl/LC_MESSAGES/telegram-purple.mo
+share/locale/pt_BR/LC_MESSAGES/telegram-purple.mo
+share/locale/ru/LC_MESSAGES/telegram-purple.mo
+share/locale/sq/LC_MESSAGES/telegram-purple.mo
+share/locale/uk/LC_MESSAGES/telegram-purple.mo
+share/metainfo/telegram-purple.metainfo.xml
+share/pixmaps/pidgin/protocols/16/telegram.png
+share/pixmaps/pidgin/protocols/22/telegram.png
+share/pixmaps/pidgin/protocols/48/telegram.png
diff --git a/telegram-purple/distinfo b/telegram-purple/distinfo
new file mode 100644
index 0000000000..1a4a98b8cb
--- /dev/null
+++ b/telegram-purple/distinfo
@@ -0,0 +1,9 @@
+$NetBSD: distinfo,v 1.7 2021/10/26 10:05:26 nia Exp $
+
+BLAKE2s (telegram-purple_1.4.7.orig.tar.gz) = 01183ead0864c8a53cbadaee803eb5266de7ba9d1335299912476fadcd079893
+SHA512 (telegram-purple_1.4.7.orig.tar.gz) = ae3032b33bd2a20b58b2d66c83fbc405f43c38c0e93b00394ad3165b0bc5d5aba02a8e1946872e4bd082894679737fa20f3e1991e9bb16c3c3aba4c7abbbf7d8
+Size (telegram-purple_1.4.7.orig.tar.gz) = 498573 bytes
+SHA1 (patch-Makefile.in) = 40059334d21cb6dd45c23e6edfdc0a1871197c4d
+SHA1 (patch-configure) = c6af945b2dc575375c29d643783d4c6e92d53817
+SHA1 (patch-tgl_Makefile.in) = 3a584e4258cfb0368a9e9704018dc48df8dfa715
+SHA1 (patch-tgl_tl-parser_tl-parser.c) = bd6af1514d724f71ffffb51b824baa18084c289d
diff --git a/telegram-purple/patches/patch-Makefile.in b/telegram-purple/patches/patch-Makefile.in
new file mode 100644
index 0000000000..5bdc1cfa0e
--- /dev/null
+++ b/telegram-purple/patches/patch-Makefile.in
@@ -0,0 +1,21 @@
+$NetBSD$
+
+Let GCC generate random seeds
+
+--- Makefile.in.orig	2021-04-04 15:44:49.000000000 +0000
++++ Makefile.in
+@@ -72,10 +72,10 @@ ifeq "$(STACK_PROTECTOR_UNSUPPORTED)" "0
+ 	CFLAGS += -fstack-protector-strong
+ endif
+ # Check if -frandom-seed is supported before enabling it
+-RANDOM_SEED_UNSUPPORTED = $(shell $(CC) -frandom-seed=77e0418a98676b76729b50fe91cc1f250c14fd8f664f8430649487a6f918926d 2>&1 | grep -c 'random-seed')
+-ifeq "$(RANDOM_SEED_UNSUPPORTED)" "0"
+-	CFLAGS += -frandom-seed=0x$$(sha256sum $< | cut -f1 -d" ")
+-endif
++#RANDOM_SEED_UNSUPPORTED = $(shell $(CC) -frandom-seed=77e0418a98676b76729b50fe91cc1f250c14fd8f664f8430649487a6f918926d 2>&1 | grep -c 'random-seed')
++#ifeq "$(RANDOM_SEED_UNSUPPORTED)" "0"
++#	CFLAGS += -frandom-seed=0x$$(sha256sum $< | cut -f1 -d" ")
++#endif
+ # Check if -ffile-prefix-map is supported before enabling it
+ FILE_PREFIX_MAP_UNSUPPORTED = $(shell $(CC) -ffile-prefix-map=/foo/bar/baz=/quux 2>&1 | grep -c 'file-prefix-map')
+ ifeq "$(FILE_PREFIX_MAP_UNSUPPORTED)" "0"
diff --git a/telegram-purple/patches/patch-configure b/telegram-purple/patches/patch-configure
new file mode 100644
index 0000000000..7f47b41a8d
--- /dev/null
+++ b/telegram-purple/patches/patch-configure
@@ -0,0 +1,15 @@
+$NetBSD: patch-configure,v 1.3 2017/05/12 22:35:52 khorben Exp $
+
+Fix POSIX compliance for the configure script
+
+--- configure.orig	2016-08-08 08:53:04.000000000 +0000
++++ configure
+@@ -4409,7 +4409,7 @@ if test "${enable_icons+set}" = set; the
+   enableval=$enable_icons;
+ fi
+ 
+-if test "x$enable_icons" == "xno"; then :
++if test "x$enable_icons" = "xno"; then :
+ 
+   as_fn_error $? "--disable-icons is now obsolete. Please use 'make noicon_install' for the same effect." "$LINENO" 5
+ 
diff --git a/telegram-purple/patches/patch-tgl_Makefile.in b/telegram-purple/patches/patch-tgl_Makefile.in
new file mode 100644
index 0000000000..3c14d40dd0
--- /dev/null
+++ b/telegram-purple/patches/patch-tgl_Makefile.in
@@ -0,0 +1,21 @@
+$NetBSD$
+
+Let GCC generate random seeds
+
+--- tgl/Makefile.in.orig	2021-04-04 15:44:06.000000000 +0000
++++ tgl/Makefile.in
+@@ -39,10 +39,10 @@ ifeq "$(STACK_PROTECTOR_UNSUPPORTED)" "0
+ 	CFLAGS += -fstack-protector-strong
+ endif
+ # Check if -frandom-seed is supported before enabling it
+-RANDOM_SEED_UNSUPPORTED = $(shell $(CC) -frandom-seed=77e0418a98676b76729b50fe91cc1f250c14fd8f664f8430649487a6f918926d 2>&1 | grep -c 'random-seed')
+-ifeq "$(RANDOM_SEED_UNSUPPORTED)" "0"
+-	CFLAGS += -frandom-seed=0x$$(sha256sum $< | cut -f1 -d" ")
+-endif
++#RANDOM_SEED_UNSUPPORTED = $(shell $(CC) -frandom-seed=77e0418a98676b76729b50fe91cc1f250c14fd8f664f8430649487a6f918926d 2>&1 | grep -c 'random-seed')
++#ifeq "$(RANDOM_SEED_UNSUPPORTED)" "0"
++#	CFLAGS += -frandom-seed=0x$$(sha256sum $< | cut -f1 -d" ")
++#endif
+ # Check if -ffile-prefix-map is supported before enabling it
+ FILE_PREFIX_MAP_UNSUPPORTED = $(shell $(CC) -ffile-prefix-map=/foo/bar/baz=/quux 2>&1 | grep -c 'file-prefix-map')
+ ifeq "$(FILE_PREFIX_MAP_UNSUPPORTED)" "0"
diff --git a/telegram-purple/patches/patch-tgl_tl-parser_tl-parser.c b/telegram-purple/patches/patch-tgl_tl-parser_tl-parser.c
new file mode 100644
index 0000000000..83031578a1
--- /dev/null
+++ b/telegram-purple/patches/patch-tgl_tl-parser_tl-parser.c
@@ -0,0 +1,23 @@
+$NetBSD: patch-tgl_tl-parser_tl-parser.c,v 1.1 2018/09/27 19:53:07 tnn Exp $
+
+error: %m is only allowed in syslog(3) like functions
+
+--- tgl/tl-parser/tl-parser.c.orig	2015-10-17 13:33:25.000000000 +0000
++++ tgl/tl-parser/tl-parser.c
+@@ -32,6 +32,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <assert.h>
++#include <errno.h>
+ #include <string.h>
+ #include <time.h>
+ #include <zlib.h>
+@@ -333,7 +334,7 @@ int expect (char *s) {
+ struct parse *tl_init_parse_file (const char *fname) {
+   int fd = open (fname, O_RDONLY);
+   if (fd < 0) {
+-    fprintf (stderr, "Error %m\n");
++    fprintf (stderr, "Error %s\n", strerror(errno));
+     assert (0);
+     return 0;
+   }


Home | Main Index | Thread Index | Old Index