dec-cpp/tgbot-cpp: add new package (#1472)

This commit is contained in:
陈浩南 authored and GitHub committed 2021-12-12 15:30:02 +08:00
1 parent babff023dc
commit effdbd066a
2 files changed
+44

No files matched your search

+33
View File
@@ -0,0 +1,33 @@
# Copyright 2021 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=f74c381
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="+shared doc 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
}