pkgsrc-WIP-changes archive

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

+telegram-cli: Command-line interface for Telegram. Uses readline interface. It is client implementation of TGL library.



Module Name:	pkgsrc-wip
Committed By:	AcidBear <jake.slazenger%yandex.com@localhost>
Pushed By:	jakeSlaz
Date:		Wed Mar 3 22:06:15 2021 +0300
Changeset:	232467c2aecc2faf9215128cb3f2bafc178dcff1

Added Files:
	telegram-cli/DESCR
	telegram-cli/Makefile
	telegram-cli/PLIST
	telegram-cli/distinfo
	telegram-cli/patches/patch-Makefile.in

Log Message:
+telegram-cli: Command-line interface for Telegram. Uses readline interface. It is client implementation of TGL library.

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

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

diffstat:
 telegram-cli/DESCR                     |  1 +
 telegram-cli/Makefile                  | 37 ++++++++++++++++++++++++++++++++++
 telegram-cli/PLIST                     |  2 ++
 telegram-cli/distinfo                  |  7 +++++++
 telegram-cli/patches/patch-Makefile.in | 31 ++++++++++++++++++++++++++++
 5 files changed, 78 insertions(+)

diffs:
diff --git a/telegram-cli/DESCR b/telegram-cli/DESCR
new file mode 100644
index 0000000000..1197dae995
--- /dev/null
+++ b/telegram-cli/DESCR
@@ -0,0 +1 @@
+Command-line interface for Telegram. Uses readline interface. It is client implementation of TGL library.
diff --git a/telegram-cli/Makefile b/telegram-cli/Makefile
new file mode 100644
index 0000000000..04a6c43a66
--- /dev/null
+++ b/telegram-cli/Makefile
@@ -0,0 +1,37 @@
+# $NetBSD$
+
+GITHUB_PROJECT=	tg
+GITHUB_TAG=	20200106
+DISTNAME=	20200106
+PKGNAME=	telegram-cli-${DISTNAME}
+CATEGORIES=	net
+MASTER_SITES=	${MASTER_SITE_GITHUB:=kenorb-contrib/}
+DIST_SUBDIR=	${GITHUB_PROJECT}
+
+TOOL_DEPENDS+= git-[0-9]*:../../devel/git
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://github.com/kenorb-contrib/tg/
+COMMENT=	CLI for telegram messenger
+LICENSE=	gnu-gpl-v2
+
+GNU_CONFIGURE= yes
+USE_TOOLS+= gmake
+CONFIGURE_ARGS+= --disable-python
+CONFIGURE_ARGS+= --disable-liblua
+
+SUBST_CLASSES+= fix-paths
+SUBST_STAGE.fix-paths= pre-configure
+SUBST_FILES.fix-paths= ${WRKSRC}/Makefile.in
+SUBST_SED.fix-paths= -e 's,/usr/local,${DESTDIR}/${PREFIX},g'
+
+post-patch:
+	${RUN}cd ${WRKDIR}/tg-${GITHUB_TAG} && git clone https://github.com/kenorb-contrib/tgl tgl
+
+.include "../../devel/libevent/buildlink3.mk"
+.include "../../devel/libconfig/buildlink3.mk"
+.include "../../devel/readline/buildlink3.mk"
+.include "../../security/openssl/buildlink3.mk"
+.include "../../textproc/jansson/buildlink3.mk"
+# url2pkg-marker (please do not remove this line.)
+.include "../../mk/bsd.pkg.mk"
diff --git a/telegram-cli/PLIST b/telegram-cli/PLIST
new file mode 100644
index 0000000000..fcf58fc85b
--- /dev/null
+++ b/telegram-cli/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD$
+bin/telegram-cli
diff --git a/telegram-cli/distinfo b/telegram-cli/distinfo
new file mode 100644
index 0000000000..735875099e
--- /dev/null
+++ b/telegram-cli/distinfo
@@ -0,0 +1,7 @@
+$NetBSD$
+
+SHA1 (tg/20200106-20200106.tar.gz) = b912d4f693019e7e41292d51a6aa3aeaee9a5aed
+RMD160 (tg/20200106-20200106.tar.gz) = 1043fd4e23bdcdd1e090687b265936adec7d4c2a
+SHA512 (tg/20200106-20200106.tar.gz) = 041c37b24bc91f46f156cfdc76f29ac7b963398d4d1fd54d6b7bc271841e4d326ae053e3ed3d2fcd9bf08ce47cb6d1bfe899bebd4e72ca067a8e01a534aeaece
+Size (tg/20200106-20200106.tar.gz) = 167428 bytes
+SHA1 (patch-Makefile.in) = 222a4e7e6f552050650c72855e84fcced5372cfb
diff --git a/telegram-cli/patches/patch-Makefile.in b/telegram-cli/patches/patch-Makefile.in
new file mode 100644
index 0000000000..482060eaac
--- /dev/null
+++ b/telegram-cli/patches/patch-Makefile.in
@@ -0,0 +1,31 @@
+$NetBSD$
+
+--- Makefile.in.orig	2020-01-06 10:43:44.000000000 +0000
++++ Makefile.in
+@@ -11,8 +11,10 @@ LOCAL_LDFLAGS=-rdynamic -ggdb -levent ${
+ LINK_FLAGS=${LDFLAGS} ${LOCAL_LDFLAGS}
+ 
+ ifneq (${TARGET_OS}, FreeBSD)
++ifneq (${TARGET_OS}, NetBSD)
+ 	LOCAL_LDFLAGS += -ldl
+ endif
++endif
+ 
+ DEP=dep
+ AUTO=auto
+@@ -29,7 +31,7 @@ INCLUDE=-I. -I${srcdir} -I${srcdir}/tgl
+ CC=@CC@
+ 
+ PREFIX?=/usr/local
+-INSTALL_BIN=$(PREFIX)/bin
++INSTALL_BIN=$(DESTDIR)/${PREFIX}/bin
+ INSTALL=install
+ 
+ .SUFFIXES:
+@@ -67,5 +69,5 @@ distclean:
+ 
+ install: all
+ 	@mkdir -p $(INSTALL_BIN)
+-	$(INSTALL) telegram $(INSTALL_BIN)
++	$(INSTALL) ${EXE}/telegram-cli $(INSTALL_BIN)
+ 	rm -rf ${DIR_LIST} config.log config.status > /dev/null || echo "all clean"


Home | Main Index | Thread Index | Old Index