FreeBSD Bugzilla – Attachment 229728 Details for
Bug 260048
[NEW PORT] net-im/purple-tdlib: New libpurple plugin for Telegram
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
new ports: net-im/tdlib-purple and net-im/tdlib16
tdlib-purple.diff (text/plain), 6.79 KB, created by
Jose G. Juanino
on 2021-11-25 20:55:21 UTC
(
hide
)
Description:
new ports: net-im/tdlib-purple and net-im/tdlib16
Filename:
MIME Type:
Creator:
Jose G. Juanino
Created:
2021-11-25 20:55:21 UTC
Size:
6.79 KB
patch
obsolete
>diff --git a/net-im/tdlib-purple/Makefile b/net-im/tdlib-purple/Makefile >new file mode 100644 >index 000000000..0d0ea7458 >--- /dev/null >+++ b/net-im/tdlib-purple/Makefile >@@ -0,0 +1,39 @@ >+PORTNAME= tdlib-purple >+DISTVERSIONPREFIX= v >+DISTVERSION= 0.7.8 >+CATEGORIES= net-im >+ >+MAINTAINER= jjuanino@gmail.com >+COMMENT= New libpurple plugin for Telegram >+ >+LICENSE= GPLv2+ >+ >+LIB_DEPENDS= libpng16.so:graphics/png \ >+ libpurple.so:net-im/libpurple \ >+ libtdjson.so:net-im/tdlib16 \ >+ libwebp.so:graphics/webp >+ >+USES= cmake gnome pkgconfig ssl >+CMAKE_ARGS= -DNoVoip:BOOL=True \ >+ -DTd_DIR=${LOCALBASE}/lib/cmake/Td >+ >+USE_GITHUB= yes >+GH_ACCOUNT= ars3niy >+GH_PROJECT= tdlib-purple >+ >+USE_GNOME= glib20 >+ >+CONFLICTS_INSTALL= telegram-purple >+ >+OPTIONS_DEFINE= NLS >+OPTIONS_SUB= yes >+ >+NLS_USES= gettext >+NLS_CMAKE_BOOL_OFF= NoTranslations >+ >+do-test: >+ cd ${BUILD_WRKSRC} && \ >+ ${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} \ >+ ${CMAKE_SOURCE_PATH} >+ >+.include <bsd.port.mk> >diff --git a/net-im/tdlib-purple/distinfo b/net-im/tdlib-purple/distinfo >new file mode 100644 >index 000000000..f11b36657 >--- /dev/null >+++ b/net-im/tdlib-purple/distinfo >@@ -0,0 +1,3 @@ >+TIMESTAMP = 1636235132 >+SHA256 (ars3niy-tdlib-purple-v0.7.8_GH0.tar.gz) = 72b6d10749e5f234b51f3fdeabb69d58a18a80e70e698e87fe45e6246f496d1b >+SIZE (ars3niy-tdlib-purple-v0.7.8_GH0.tar.gz) = 775719 >diff --git a/net-im/tdlib-purple/files/patch-tdlib-purple.cpp b/net-im/tdlib-purple/files/patch-tdlib-purple.cpp >new file mode 100644 >index 000000000..ba3c0e995 >--- /dev/null >+++ b/net-im/tdlib-purple/files/patch-tdlib-purple.cpp >@@ -0,0 +1,10 @@ >+--- tdlib-purple.cpp.orig 2021-11-07 17:49:46 UTC >++++ tdlib-purple.cpp >+@@ -6,6 +6,7 @@ >+ #include "buildopt.h" >+ #include <purple.h> >+ >++#include <array> >+ #include <cstdint> >+ #include <functional> >+ #include <iostream> >diff --git a/net-im/tdlib-purple/pkg-descr b/net-im/tdlib-purple/pkg-descr >new file mode 100644 >index 000000000..69b6deea7 >--- /dev/null >+++ b/net-im/tdlib-purple/pkg-descr >@@ -0,0 +1,4 @@ >+tdlib-purple is a libpurple plugin that adds support for the Telegram >+messenger. This is a future successor to telegram-purple port. >+ >+WWW: https://github.com/ars3niy/tdlib-purple >diff --git a/net-im/tdlib-purple/pkg-plist b/net-im/tdlib-purple/pkg-plist >new file mode 100644 >index 000000000..f4295535e >--- /dev/null >+++ b/net-im/tdlib-purple/pkg-plist >@@ -0,0 +1,9 @@ >+lib/purple-2/libtelegram-tdlib.so >+share/locale/cs/LC_MESSAGES/tdlib-purple.mo >+share/locale/de/LC_MESSAGES/tdlib-purple.mo >+share/locale/pl/LC_MESSAGES/tdlib-purple.mo >+share/locale/sq/LC_MESSAGES/tdlib-purple.mo >+share/metainfo/tdlib-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/net-im/tdlib/Makefile b/net-im/tdlib/Makefile >index 2c955fc62..514ed58fb 100644 >--- a/net-im/tdlib/Makefile >+++ b/net-im/tdlib/Makefile >@@ -16,6 +16,8 @@ GH_TAGNAME= a7dcbe8c18938c67d35dee6da7782851e3b5ec4b > > CMAKE_OFF= BUILD_TESTING FREEBSD_BUILD_BENCHMARKS > >+CONFLICTS_INSTALL= tdlib16 >+ > do-test: > @cd ${BUILD_WRKSRC} && \ > ${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DFREEBSD_BUILD_TESTING:BOOL=ON ${CMAKE_SOURCE_PATH} && \ >diff --git a/net-im/tdlib16/Makefile b/net-im/tdlib16/Makefile >new file mode 100644 >index 000000000..f094e8174 >--- /dev/null >+++ b/net-im/tdlib16/Makefile >@@ -0,0 +1,36 @@ >+PORTNAME= tdlib >+DISTVERSIONPREFIX= v >+DISTVERSION= 1.6.0 >+CATEGORIES= net-im devel >+PKGNAMESUFFIX= 16 >+ >+MAINTAINER= jjuanino@gmail.om >+COMMENT= Library for building Telegram clients, old version 1.6.0 >+ >+LICENSE= BSL >+ >+USES= cmake:testing compiler:c++14-lang gperf ssl >+ >+USE_GITHUB= yes >+GH_PROJECT= td >+GH_TAGNAME= 278c7ac >+ >+CMAKE_OFF= BUILD_TESTING FREEBSD_BUILD_BENCHMARKS >+ >+# net-im/tdlib keeps the last upstream version. >+# No other version of tdlib may coexist with it >+CONFLICTS_INSTALL= tdlib >+ >+post-patch: >+ ${REINPLACE_CMD} -e 's|$$(git rev-parse HEAD)|${GH_TAGNAME}|' \ >+ -e 's|git diff-index --quiet HEAD|true|' \ >+ ${WRKSRC}/gen_git_commit_h.sh >+ >+do-test: >+ cd ${BUILD_WRKSRC} && \ >+ ${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} \ >+ -DFREEBSD_BUILD_TESTING:BOOL=ON ${CMAKE_SOURCE_PATH} && \ >+ ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \ >+ ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} test >+ >+.include <bsd.port.mk> >diff --git a/net-im/tdlib16/distinfo b/net-im/tdlib16/distinfo >new file mode 100644 >index 000000000..57836d07d >--- /dev/null >+++ b/net-im/tdlib16/distinfo >@@ -0,0 +1,3 @@ >+TIMESTAMP = 1636238542 >+SHA256 (tdlib-td-v1.6.0-278c7ac_GH0.tar.gz) = b16f4a6dccd49ee4d357d9b9b1bee3c3557fa344d67daca35ffc6542d343e1ce >+SIZE (tdlib-td-v1.6.0-278c7ac_GH0.tar.gz) = 3825502 >diff --git a/net-im/tdlib16/files/patch-CMakeLists.txt b/net-im/tdlib16/files/patch-CMakeLists.txt >new file mode 100644 >index 000000000..fa81fa16e >--- /dev/null >+++ b/net-im/tdlib16/files/patch-CMakeLists.txt >@@ -0,0 +1,17 @@ >+- make tests and benchmarks conditional on special cmake variables, see https://github.com/tdlib/td/issues/1583 >+ >+--- CMakeLists.txt.orig 2021-05-20 23:05:03 UTC >++++ CMakeLists.txt >+@@ -189,9 +189,11 @@ add_subdirectory(sqlite) >+ >+ add_subdirectory(tddb) >+ >++if (BUILD_TESTING) >+ add_subdirectory(test) >++endif() >+ >+-if (NOT CMAKE_CROSSCOMPILING) >++if (FREEBSD_BUILD_BENCHMARKS AND NOT CMAKE_CROSSCOMPILING) >+ add_subdirectory(benchmark) >+ endif() >+ >diff --git a/net-im/tdlib16/pkg-descr b/net-im/tdlib16/pkg-descr >new file mode 100644 >index 000000000..ed66fa0bc >--- /dev/null >+++ b/net-im/tdlib16/pkg-descr >@@ -0,0 +1,4 @@ >+TDLib (Telegram Database library) is a cross-platform library for building >+Telegram clients. It can be easily used from almost any programming language. >+ >+WWW: https://github.com/tdlib/td >diff --git a/net-im/tdlib16/pkg-plist b/net-im/tdlib16/pkg-plist >new file mode 100644 >index 000000000..529523551 >--- /dev/null >+++ b/net-im/tdlib16/pkg-plist >@@ -0,0 +1,23 @@ >+include/td/telegram/Client.h >+include/td/telegram/Log.h >+include/td/telegram/td_api.h >+include/td/telegram/td_api.hpp >+include/td/telegram/td_json_client.h >+include/td/telegram/td_log.h >+include/td/telegram/tdjson_export.h >+include/td/tl/TlObject.h >+lib/cmake/Td/TdConfig.cmake >+lib/cmake/Td/TdConfigVersion.cmake >+lib/cmake/Td/TdTargets-%%CMAKE_BUILD_TYPE%%.cmake >+lib/cmake/Td/TdTargets.cmake >+lib/libtdactor.a >+lib/libtdclient.a >+lib/libtdcore.a >+lib/libtddb.a >+lib/libtdjson.so >+lib/libtdjson.so.1.6.0 >+lib/libtdjson_private.a >+lib/libtdjson_static.a >+lib/libtdnet.a >+lib/libtdsqlite.a >+lib/libtdutils.a >diff --git a/net-im/telegram-purple/Makefile b/net-im/telegram-purple/Makefile >index f6e0c1cd6..4f62f63a3 100644 >--- a/net-im/telegram-purple/Makefile >+++ b/net-im/telegram-purple/Makefile >@@ -26,6 +26,8 @@ USE_GNOME= glib20 > > GNU_CONFIGURE= yes > >+CONFLICTS_INSTALL= net-im/tdlib-purple >+ > OPTIONS_DEFINE= NLS > OPTIONS_SUB= yes > NLS_USES= gettext
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 260048
:
229728
|
229747
|
230000
|
230020
|
230034
|
230074