diff --git a/dev-cpp/mastodonpp/Manifest b/dev-cpp/mastodonpp/Manifest index f5c3ba8f8..a50f2f108 100644 --- a/dev-cpp/mastodonpp/Manifest +++ b/dev-cpp/mastodonpp/Manifest @@ -1,4 +1,16 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA512 + DIST mastodonpp-0.5.0.tar.gz 45469 BLAKE2B 54e6896f560dc94aeecbdf158611a5ac6400e4cca8f6389cae1d9a9e8d6b459a3a395f399d8f44152b93d368c9be1f106bd4bf939fdc962f89de455bb2fbb315 SHA512 9bfea1b0766189b6976539fd0f422833656878ee55d502c715b527c9cc75c3e9d3081a22dc45dd6b2abba0c35cb2af4b654b44fc9abcf6d215f494db8e348d98 +DIST mastodonpp-0.5.4.tar.gz 46644 BLAKE2B 48a008519eb1421d2b259ccccc2b628b888b1a509f1f33e45ad88f0d28ad10fb03e2e739ee192e8f734d8a37dff170ccff03d4dd1f11e89b8c3eba60c7b788bd SHA512 1efae5657406a8f7d3816ef12ff860ee84c63901b1f09e04393194327d2afd4ce73cd137023b208f92ec3781a28a612421018ee9f01818a10f96741a0066482e EBUILD mastodonpp-0.5.0.ebuild 1323 BLAKE2B 7f470faa695f039ea1e6624fac54674a8912013ed4b4ca5755e07560e580b72cd4d097812d6187409e55325af38949737d449088a2c16fcaf4e168f83ab25c91 SHA512 acff802d9e117fa75ee77249c0b5e6bca4354815e14469363e82d734353bd4eb832a24b2943789de5982b06cb07596468e2bf5306625b90de063ae716f5fe679 +EBUILD mastodonpp-0.5.4.ebuild 1293 BLAKE2B 1ffd11367eea3e41714328570e67dda777673ef661a35dd24830e36c2b60b6fd83b6462c1030c142458cdab81bb17242cc8f3c7843bd517fac1e019d2271afbf SHA512 73c57a142a3b00c0de98e69138dc51f9524ca558e1791fb5740c8a067fb4232d560614128bce70113ce590e6fb825a2b5958b3f2562e018eba7cdcd45efc5740 EBUILD mastodonpp-9999.ebuild 1323 BLAKE2B 7f470faa695f039ea1e6624fac54674a8912013ed4b4ca5755e07560e580b72cd4d097812d6187409e55325af38949737d449088a2c16fcaf4e168f83ab25c91 SHA512 acff802d9e117fa75ee77249c0b5e6bca4354815e14469363e82d734353bd4eb832a24b2943789de5982b06cb07596468e2bf5306625b90de063ae716f5fe679 MISC metadata.xml 499 BLAKE2B 6a6a405ad996e46a46dfa3398cf51717068563287fdb3d0524085ed8aee877a89d7e24820eff148efae05ff4abe2f4f9f495a866953227b9cc51ad33b7ab0e28 SHA512 0c9085edd49a5111de52db3927a202beaf46458f7517ff9c12f7a35cbd39a8478340b3cf2c1f2974bdccfb36c4956992ae2298a17fe2d5938aa8f91803175c1e +-----BEGIN PGP SIGNATURE----- + +iHUEAREKAB0WIQQ1VSZoZMptf/RapufPw5SX8bJuBwUCXsAOTgAKCRDPw5SX8bJu +B7mFAP41G0DdQ8l3L32vKyGrTNHytjDms0u/s57U4VrabhQ1+wD/azy9Xs92h7mJ +oYwzsCTYPqM5IDhqU7R/K+dU4ltcaFs= +=L5qO +-----END PGP SIGNATURE----- diff --git a/dev-cpp/mastodonpp/mastodonpp-0.5.4.ebuild b/dev-cpp/mastodonpp/mastodonpp-0.5.4.ebuild new file mode 100644 index 000000000..0a16f2905 --- /dev/null +++ b/dev-cpp/mastodonpp/mastodonpp-0.5.4.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit cmake +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="${RDEPEND} + >=dev-util/cmake-3.9" +BDEPEND="doc? ( app-doc/doxygen ) + test? ( dev-cpp/catch )" + +RESTRICT="!test? ( test )" + +if [[ "${PV}" != "9999" ]]; then + S="${WORKDIR}/${PN}" +fi + +src_configure() { + local mycmakeargs=( + -DWITH_EXAMPLES=NO + -DWITH_TESTS="$(usex test)" + ) + + cmake_src_configure +} + +src_compile() { + cmake_src_compile + + if use doc; then + ./build_doc.sh + fi +} + +src_test() { + BUILD_DIR="${BUILD_DIR}/tests" cmake_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_src_install +}