diff --git a/dev-cpp/tgbot-cpp/tgbot-cpp-1.3.ebuild b/dev-cpp/tgbot-cpp/tgbot-cpp-1.3.ebuild index eee8513a28..f4ea85de48 100644 --- a/dev-cpp/tgbot-cpp/tgbot-cpp-1.3.ebuild +++ b/dev-cpp/tgbot-cpp/tgbot-cpp-1.3.ebuild @@ -14,6 +14,7 @@ LICENSE="MIT" SLOT="0" KEYWORDS="~amd64" IUSE="+shared doc test" +RESTRICT="!test? ( test )" DEPEND=" sys-libs/zlib diff --git a/dev-cpp/tgbot-cpp/tgbot-cpp-1.3_p220616.ebuild b/dev-cpp/tgbot-cpp/tgbot-cpp-1.3_p220616.ebuild index 13802662a1..b6edc40d08 100644 --- a/dev-cpp/tgbot-cpp/tgbot-cpp-1.3_p220616.ebuild +++ b/dev-cpp/tgbot-cpp/tgbot-cpp-1.3_p220616.ebuild @@ -14,6 +14,7 @@ LICENSE="MIT" SLOT="0" KEYWORDS="~amd64" IUSE="+shared doc test" +RESTRICT="!test? ( test )" DEPEND=" sys-libs/zlib diff --git a/dev-cpp/tgbot-cpp/tgbot-cpp-1.3_p220911.ebuild b/dev-cpp/tgbot-cpp/tgbot-cpp-1.3_p220911.ebuild new file mode 100644 index 0000000000..b6edc40d08 --- /dev/null +++ b/dev-cpp/tgbot-cpp/tgbot-cpp-1.3_p220911.ebuild @@ -0,0 +1,34 @@ +# Copyright 2021-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake git-r3 + +DESCRIPTION="C++ library for Telegram bot API" +HOMEPAGE="https://github.com/reo7sp/tgbot-cpp" +EGIT_REPO_URI="https://github.com/reo7sp/${PN}.git" +EGIT_COMMIT=336a7c5 + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="+shared doc test" +RESTRICT="!test? ( test )" + +DEPEND=" + sys-libs/zlib + dev-libs/openssl + >=net-misc/curl-7.56.0 + >=dev-libs/boost-1.59.0" +RDEPEND="${DEPEND}" +BDEPEND="doc? ( app-doc/doxygen[dot] )" + +src_configure() { + mycmakeargs=( + -DENABLE_TESTS=$(usex test ON OFF) + -DBUILD_SHARED_LIBS=$(usex shared ON OFF) + -DBUILD_DOCUMENTATION=$(usex doc ON OFF) + ) + cmake_src_configure +}