dev-cpp/mastodonpp: drop 0.5.7

Signed-off-by: Ronny (tastytea) Gutbrod <gentoo@tastytea.de>
This commit is contained in:
Ronny (tastytea) Gutbrod 2022-08-01 14:38:23 +02:00
parent cf91875627
commit fcb6d7fca5
No known key found for this signature in database
GPG Key ID: CFC39497F1B26E07

View File

@ -1,59 +0,0 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit cmake
[[ "${PV}" == "9999" ]] && inherit git-r3
DESCRIPTION="C++ wrapper for the Mastodon and Pleroma APIs."
HOMEPAGE="https://schlomp.space/tastytea/mastodonpp"
if [[ "${PV}" != "9999" ]]; then
SRC_URI="https://schlomp.space/tastytea/mastodonpp/archive/${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}"
KEYWORDS="~amd64"
else
EGIT_REPO_URI="https://schlomp.space/tastytea/mastodonpp.git"
fi
LICENSE="AGPL-3"
SLOT="0"
IUSE="doc examples test"
RDEPEND=">=net-misc/curl-7.56.0[ssl]"
DEPEND="${RDEPEND}"
BDEPEND="
doc? ( app-doc/doxygen[dot] )
test? ( dev-cpp/catch )
"
RESTRICT="!test? ( test )"
src_configure() {
local mycmakeargs=(
-DWITH_EXAMPLES=NO
-DWITH_TESTS="$(usex test)"
-DWITH_DOC="$(usex doc)"
)
cmake_src_configure
}
src_test() {
BUILD_DIR="${BUILD_DIR}/tests" cmake_src_test
}
src_install() {
if use doc; then
HTML_DOCS="${BUILD_DIR}/doc/html/*"
fi
if use examples; then
docinto examples
for file in examples/*.cpp; do
dodoc ${file}
done
fi
cmake_src_install
}