From 894399ce5a85e42e090b693a768070660a2095ed Mon Sep 17 00:00:00 2001 From: tastytea Date: Sun, 2 Feb 2020 15:32:26 +0100 Subject: [PATCH] dev-cpp/mastodonpp: Version bump 0.5.0. --- dev-cpp/mastodonpp/Manifest | 12 +--- dev-cpp/mastodonpp/mastodonpp-0.5.0.ebuild | 75 ++++++++++++++++++++++ 2 files changed, 77 insertions(+), 10 deletions(-) create mode 100644 dev-cpp/mastodonpp/mastodonpp-0.5.0.ebuild diff --git a/dev-cpp/mastodonpp/Manifest b/dev-cpp/mastodonpp/Manifest index 58db128..ed599c9 100644 --- a/dev-cpp/mastodonpp/Manifest +++ b/dev-cpp/mastodonpp/Manifest @@ -1,14 +1,6 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA256 - DIST mastodonpp-0.4.0.tar.gz 43431 BLAKE2B c00068e32da791ab2b571f8165bb6b441875331624c526f1246acb62cab43fa37a8715807f3bfb7ec152d5839be4a04f7fa1a03a9dc4dea72bc13df12d6563c3 SHA512 b8afd0aed463a50031668b1cd719f4fda0506a722345719691bd632be353e7004b20ad28487ca49c7af0ea7dbba3a21256545e51cf718e02a0e35baade5ac2cc +DIST mastodonpp-0.5.0.tar.gz 45469 BLAKE2B 54e6896f560dc94aeecbdf158611a5ac6400e4cca8f6389cae1d9a9e8d6b459a3a395f399d8f44152b93d368c9be1f106bd4bf939fdc962f89de455bb2fbb315 SHA512 9bfea1b0766189b6976539fd0f422833656878ee55d502c715b527c9cc75c3e9d3081a22dc45dd6b2abba0c35cb2af4b654b44fc9abcf6d215f494db8e348d98 EBUILD mastodonpp-0.4.0.ebuild 1292 BLAKE2B 4a6c8d10136cf73e7389a0a8f9915e88d012c082062305e1c597e0a5e383cf92419e99362d036fd37afd26320549a4c6c66dc20d9d276364ee001d2709304f03 SHA512 af36bd45164f9eb9b483cf4369859c651240ab210e1d13a8da0ab74b23ec23671f87caff1e27d4c42f291c584424a04d87f4dc5ff2849c3c6d19c8a8cc2d8885 +EBUILD mastodonpp-0.5.0.ebuild 1292 BLAKE2B 4a6c8d10136cf73e7389a0a8f9915e88d012c082062305e1c597e0a5e383cf92419e99362d036fd37afd26320549a4c6c66dc20d9d276364ee001d2709304f03 SHA512 af36bd45164f9eb9b483cf4369859c651240ab210e1d13a8da0ab74b23ec23671f87caff1e27d4c42f291c584424a04d87f4dc5ff2849c3c6d19c8a8cc2d8885 EBUILD mastodonpp-9999.ebuild 1292 BLAKE2B 4a6c8d10136cf73e7389a0a8f9915e88d012c082062305e1c597e0a5e383cf92419e99362d036fd37afd26320549a4c6c66dc20d9d276364ee001d2709304f03 SHA512 af36bd45164f9eb9b483cf4369859c651240ab210e1d13a8da0ab74b23ec23671f87caff1e27d4c42f291c584424a04d87f4dc5ff2849c3c6d19c8a8cc2d8885 MISC metadata.xml 499 BLAKE2B 6a6a405ad996e46a46dfa3398cf51717068563287fdb3d0524085ed8aee877a89d7e24820eff148efae05ff4abe2f4f9f495a866953227b9cc51ad33b7ab0e28 SHA512 0c9085edd49a5111de52db3927a202beaf46458f7517ff9c12f7a35cbd39a8478340b3cf2c1f2974bdccfb36c4956992ae2298a17fe2d5938aa8f91803175c1e ------BEGIN PGP SIGNATURE----- - -iHUEAREIAB0WIQQ1VSZoZMptf/RapufPw5SX8bJuBwUCXiCeXgAKCRDPw5SX8bJu -B7rPAP9H+ChDfojNN2Lb1L7xzJNffGN/D/eyO+JpSSDNz3aIAAD7BHjCASuDuOYh -nFzPOnV6C0ekxGGrZ/x5nbLpYQLMdeY= -=alwU ------END PGP SIGNATURE----- diff --git a/dev-cpp/mastodonpp/mastodonpp-0.5.0.ebuild b/dev-cpp/mastodonpp/mastodonpp-0.5.0.ebuild new file mode 100644 index 0000000..5883fe5 --- /dev/null +++ b/dev-cpp/mastodonpp/mastodonpp-0.5.0.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit cmake-utils +if [[ "${PV}" == "9999" ]]; then + inherit git-r3 +fi + +DESCRIPTION="C++ wrapper for the Mastodon and Pleroma APIs." +HOMEPAGE="https://schlomp.space/tastytea/mastodonpp" +if [[ "${PV}" == "9999" ]]; then + EGIT_REPO_URI="https://schlomp.space/tastytea/mastodonpp.git" +else + SRC_URI="https://schlomp.space/tastytea/mastodonpp/archive/${PV}.tar.gz -> ${P}.tar.gz" +fi + +LICENSE="AGPL-3" +SLOT="0" +if [[ "${PV}" == "9999" ]]; then + KEYWORDS="" +else + KEYWORDS="~amd64 ~x86" +fi +IUSE="doc examples test" + +RDEPEND=" + >=net-misc/curl-7.56.0[ssl] +" +DEPEND=" + >=dev-util/cmake-3.9 + doc? ( app-doc/doxygen ) + test? ( dev-cpp/catch ) + ${RDEPEND} +" + +if [[ "${PV}" != "9999" ]]; then + S="${WORKDIR}/${PN}" +fi + +src_configure() { + local mycmakeargs=( + -DWITH_EXAMPLES=NO + -DWITH_TESTS="$(usex test)" + ) + + cmake-utils_src_configure +} + +src_compile() { + cmake-utils_src_compile + + if use doc; then + ./build_doc.sh + fi +} + +src_test() { + BUILD_DIR="${BUILD_DIR}/tests" cmake-utils_src_test +} + +src_install() { + if use doc; then + HTML_DOCS="doc/html/*" + fi + + if use examples; then + docinto examples + for file in examples/*.cpp; do + dodoc ${file} + done + fi + + cmake-utils_src_install +}