dev-cpp/tgbot-cpp: add 1.12
Because upstream rewrote the library around C++20 and changed its API and SONAME, retain 1.11 as a fallback.\n\nBecause upstream replaced OpenSSL and zlib with nlohmann-json and GoogleTest, update the direct and test dependencies. Signed-off-by: Xianggang Wang <dev@wangxianggang.com>
This commit is contained in:
1 parent
15a13d6fc8
commit
8d1ae24d0a
2 files changed
+34
No files matched your search
@@ -1 +1,2 @@
|
||||
DIST tgbot-cpp-1.11.tar.gz 188288 BLAKE2B 34f05957c9081f402823134b985d80034bffd27f1fabd7657a4644c8c3f8ea158a9c0724bec027591e50e63a45983353dc43f09a15ccd883358e448f643e6dce SHA512 f167df28f082a2c4e737aca1cc21654d15975351396e7804ec1cbc00999e53461abc2ed35b5362e67ee3f58f1ae0027b531244d6b4a85788c6c07ae5c5c70e79
|
||||
DIST tgbot-cpp-1.12.tar.gz 346353 BLAKE2B 5d9cf6c0c1cfc6aebf8027f9ad07e069efa2f6104e261f0106f8b7b3dba3f3708c9d624627f5e1c309a2454982cc5711182dba960fb6e2f181caae8617d384c9 SHA512 ddc1d02d3ee00f86e0b726243b9a1628aaa045e1398afc410559def50c15927c6ed5ec622c060afded07e9648d9674c11379a35f982d5f197b2038d6367db1c3
|
||||
@@ -0,0 +1,33 @@
|
||||
# Copyright 2021-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit cmake
|
||||
|
||||
DESCRIPTION="C++ library for Telegram bot API"
|
||||
HOMEPAGE="https://github.com/reo7sp/tgbot-cpp"
|
||||
SRC_URI="https://github.com/reo7sp/tgbot-cpp/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="+shared-libs doc test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-cpp/nlohmann_json-3.7.3
|
||||
>=dev-libs/boost-1.65.1
|
||||
>=net-misc/curl-7.58.0:="
|
||||
DEPEND="${RDEPEND}
|
||||
test? ( dev-cpp/gtest )"
|
||||
BDEPEND="doc? ( app-text/doxygen[dot] )"
|
||||
|
||||
src_configure() {
|
||||
mycmakeargs=(
|
||||
-DENABLE_TESTS=$(usex test ON OFF)
|
||||
-DBUILD_SHARED_LIBS=$(usex shared-libs ON OFF)
|
||||
-DBUILD_DOCUMENTATION=$(usex doc ON OFF)
|
||||
)
|
||||
cmake_src_configure
|
||||
}
|
||||
Reference in new issue
Block a user