From nobody Wed Jan 10 01:51:03 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4T8rP32n6Xz57Bv1; Wed, 10 Jan 2024 01:51:03 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4T8rP32L5Gz4jkg; Wed, 10 Jan 2024 01:51:03 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704851463; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=tfBOP8ANM8XmVB/jyA3X+103bl0tS2tMGsA9/SBXmfk=; b=gDxCzpyGQqmoqn352gxfjGBghJSnRMybFX3PVeaSzxY4pBpI/Zlmmbf5cRgMeYUiWYIff4 kowsFHArbrrdRC0vzO6bJujZ/1Yx5aOCkEX0ZKugHmNug075bdrSnqJG+9ACouMRo4DPQn 5t0/hzbsQGkO+G7ZCLC4fjVXjlcUOkac98awNBb/CkTcJBGxGNJdQCXdh2PDBOvnVAFbat P8JTxqfj8hWlXBTbz4Ftpq4HrlVdqrb2WNdlt69lf9bcmT+zxG4OY9CJJ2yVAR2U/21HSs GMIZn+8DIqtCs6GNWFPUlYk7EelNFuuLvDRp+V9SIVaWaHCVBHcxAKMCHy4cXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704851463; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=tfBOP8ANM8XmVB/jyA3X+103bl0tS2tMGsA9/SBXmfk=; b=HCPqHnPiN48JlpZgAAMr/K76pnVRn5teijJ+L9nUJzF9kphObecM4xXQ/LjoN/ruaFLfSP T96xpl0Koy8sjfBrm1bET9IiZMsaqyoYhzdpjKfD/1+3WQtBEVh9swsTjGEVt8KEhZ3Q8I XlSiNUYMFncBRZTpslj5F8r8RiDdqsWqjM0XWSTBYV6i+9DLsSRqFR+iMH6GDqLVNvRjez 6DxDXeOl595F/9ZlRvbhOTsAKyjrOeIi+9wWS0o+/EChegEmcnR/l6okbUqpJO+yBWqSMU /cy3lEgH1ZUki9YynlYGWdPLQYNPUC7t59SHqMTNfwXqYat7jx0EafNseQ1PqA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1704851463; a=rsa-sha256; cv=none; b=ypjGpMRpgfKb0zrdoOJeBc684OXfkIy6sbFBgYraEv1GwJbFYxYoR37WzLKlCPDFZgC127 hOB/A309s8a62ig9ypWapFEuWPD/pH18wA7fvm9Yz8Q1nll2x4q8JghvfP2LE62PP4O9G4 RER1Sy5ZkoBHMyrtkxRL4wiuqAX+MgriDkv/bnLblXenS/QSF2fVUeDrlpLe5OH6zevmeV cnXxP7P/gU4sf4bzLAPvvrftrIypryuO+hsyzyEcUsPJVoFvyKC/wFGYPXQ63RBfpdtrPh DzdBywDFky43kdKFi0vR/iQnDxM0Sv6VbfzoH2py1oxGWg8Zu9Jxp78kF0f6aA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4T8rP31PX2zF3p; Wed, 10 Jan 2024 01:51:03 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 40A1p3XN080723; Wed, 10 Jan 2024 01:51:03 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 40A1p3ux080720; Wed, 10 Jan 2024 01:51:03 GMT (envelope-from git) Date: Wed, 10 Jan 2024 01:51:03 GMT Message-Id: <202401100151.40A1p3ux080720@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: 5484cd257e61 - main - www/dpp: New port: C++ Discord API bot library List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 5484cd257e61bdd718356b6429e917157cf4e647 Auto-Submitted: auto-generated The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=5484cd257e61bdd718356b6429e917157cf4e647 commit 5484cd257e61bdd718356b6429e917157cf4e647 Author: Yuri Victorovich AuthorDate: 2024-01-10 01:04:58 +0000 Commit: Yuri Victorovich CommitDate: 2024-01-10 01:51:00 +0000 www/dpp: New port: C++ Discord API bot library --- www/Makefile | 1 + www/dpp/Makefile | 34 ++++++++++++++++++++++ www/dpp/distinfo | 3 ++ www/dpp/pkg-descr | 19 ++++++++++++ www/dpp/pkg-plist | 86 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 143 insertions(+) diff --git a/www/Makefile b/www/Makefile index 44b296569c1e..721540c31124 100644 --- a/www/Makefile +++ b/www/Makefile @@ -145,6 +145,7 @@ SUBDIR += domoticz SUBDIR += dooble SUBDIR += dot-http + SUBDIR += dpp SUBDIR += drill SUBDIR += drupal10 SUBDIR += drupal7 diff --git a/www/dpp/Makefile b/www/dpp/Makefile new file mode 100644 index 000000000000..6977b897516d --- /dev/null +++ b/www/dpp/Makefile @@ -0,0 +1,34 @@ +PORTNAME= dpp +DISTVERSION= 10.0.29 +CATEGORIES= www devel +MASTER_SITES= https://github.com/brainboxdotcc/DPP/releases/download/v${DISTVERSION}/ +PKGNAMESUFFIX= -discord +DISTNAME= DPP-${DISTVERSION} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= C++ Discord API bot library +WWW= https://dpp.dev/ + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= nlohmann-json>0:devel/nlohmann-json +LIB_DEPENDS= libopus.so:audio/opus \ + libsodium.so:security/libsodium +RUN_DEPENDS= nlohmann-json>0:devel/nlohmann-json + +USES= cmake:testing compiler:c++20-lang localbase ssl + +CMAKE_ON= DPP_USE_EXTERNAL_JSON DPP_NO_VCPKG +CMAKE_ON+= DPP_CORO # experimental support for C++20 coroutines +CMAKE_OFF= RUN_LDCONFIG DPP_BUILD_TEST +CMAKE_TESTING_ON= DPP_BUILD_TEST + +MAKE_ENV= TEST_DATA_DIR=${WRKSRC}/testdata/ # only for tests + +post-extract: + @${RM} -r ${WRKSRC}/include/dpp/nlohmann + +# 1 test fails: ts_not_null(), see https://github.com/brainboxdotcc/DPP/issues/1063 + +.include diff --git a/www/dpp/distinfo b/www/dpp/distinfo new file mode 100644 index 000000000000..c19e9667f3fb --- /dev/null +++ b/www/dpp/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1704840621 +SHA256 (DPP-10.0.29.tar.gz) = a37e91fbdabee20cb0313700588db4077abf0ebabafe386457d999d22d2d0682 +SIZE (DPP-10.0.29.tar.gz) = 15560520 diff --git a/www/dpp/pkg-descr b/www/dpp/pkg-descr new file mode 100644 index 000000000000..b6a26753f1d5 --- /dev/null +++ b/www/dpp/pkg-descr @@ -0,0 +1,19 @@ +D++ is a lightweight and efficient library for Discord written in modern C++, +covering as much of the API specification as possible with an incredibly small +memory footprint even when caching large amounts of data. + +Library Features: +* Support for Discord API v10 +* Really small memory footprint +* Efficient caching system for guilds, channels, guild members, roles, users +* Sharding and clustering (Many shards, one process: specify the number of + shards, or let the library decide) +* Highly optimised ETF (Erlang Term Format) support for very fast websocket + throughput +* Slash Commands/Interactions support +* Voice support (sending and receiving audio) +* The entire Discord API is available for use in the library +* Stable Windows support +* Ready-made compiled packages for Windows, Raspberry Pi (ARM64/ARM7/ARMv6), + Debian x86/x64, and RPM based distributions +* Highly scalable for large amounts of guilds and users diff --git a/www/dpp/pkg-plist b/www/dpp/pkg-plist new file mode 100644 index 000000000000..c61fa5f5eaeb --- /dev/null +++ b/www/dpp/pkg-plist @@ -0,0 +1,86 @@ +include/dpp/appcommand.h +include/dpp/application.h +include/dpp/auditlog.h +include/dpp/automod.h +include/dpp/ban.h +include/dpp/cache.h +include/dpp/channel.h +include/dpp/cluster.h +include/dpp/cluster_coro_calls.h +include/dpp/cluster_sync_calls.h +include/dpp/collector.h +include/dpp/colors.h +include/dpp/commandhandler.h +include/dpp/coro.h +include/dpp/coro/async.h +include/dpp/coro/coro.h +include/dpp/coro/coroutine.h +include/dpp/coro/job.h +include/dpp/coro/task.h +include/dpp/coro/when_any.h +include/dpp/discordclient.h +include/dpp/discordevents.h +include/dpp/discordvoiceclient.h +include/dpp/dispatcher.h +include/dpp/dns.h +include/dpp/dpp.h +include/dpp/dtemplate.h +include/dpp/emoji.h +include/dpp/entitlement.h +include/dpp/etf.h +include/dpp/event.h +include/dpp/event_router.h +include/dpp/exception.h +include/dpp/export.h +include/dpp/guild.h +include/dpp/httpsclient.h +include/dpp/integration.h +include/dpp/intents.h +include/dpp/invite.h +include/dpp/isa/avx.h +include/dpp/isa/avx2.h +include/dpp/isa/avx512.h +include/dpp/isa/fallback.h +include/dpp/isa_detection.h +include/dpp/json.h +include/dpp/json_fwd.h +include/dpp/json_interface.h +include/dpp/managed.h +include/dpp/message.h +include/dpp/misc-enum.h +include/dpp/once.h +include/dpp/permissions.h +include/dpp/presence.h +include/dpp/prune.h +include/dpp/queues.h +include/dpp/restrequest.h +include/dpp/restresults.h +include/dpp/role.h +include/dpp/scheduled_event.h +include/dpp/sku.h +include/dpp/snowflake.h +include/dpp/socket.h +include/dpp/sslclient.h +include/dpp/stage_instance.h +include/dpp/stringops.h +include/dpp/sync.h +include/dpp/sysdep.h +include/dpp/thread.h +include/dpp/timed_listener.h +include/dpp/timer.h +include/dpp/unicode_emoji.h +include/dpp/user.h +include/dpp/utility.h +include/dpp/version.h +include/dpp/voiceregion.h +include/dpp/voicestate.h +include/dpp/webhook.h +include/dpp/win32_safe_warnings.h +include/dpp/wsclient.h +lib/cmake/dpp/dpp-config-version.cmake +lib/cmake/dpp/dpp-config.cmake +lib/cmake/dpp/dpp-%%CMAKE_BUILD_TYPE%%.cmake +lib/cmake/dpp/dpp.cmake +lib/libdpp.so +lib/libdpp.so.10.0.29 +libdata/pkgconfig/dpp.pc