From 91ac78cd442be9e0b59c3103cd2dd160fd2ae35c Mon Sep 17 00:00:00 2001 From: tastytea Date: Thu, 9 Jan 2020 18:50:04 +0100 Subject: [PATCH] dev-cpp/mastodonpp: New package. Package-Manager: Portage-2.3.84, Repoman-2.3.16 Manifest-Sign-Key: 3555266864CA6D7FF45AA6E7CFC39497F1B26E07 --- dev-cpp/mastodonpp/Manifest | 12 ++++ dev-cpp/mastodonpp/mastodonpp-9999.ebuild | 75 +++++++++++++++++++++++ dev-cpp/mastodonpp/metadata.xml | 16 +++++ 3 files changed, 103 insertions(+) create mode 100644 dev-cpp/mastodonpp/Manifest create mode 100644 dev-cpp/mastodonpp/mastodonpp-9999.ebuild create mode 100644 dev-cpp/mastodonpp/metadata.xml diff --git a/dev-cpp/mastodonpp/Manifest b/dev-cpp/mastodonpp/Manifest new file mode 100644 index 0000000..6263147 --- /dev/null +++ b/dev-cpp/mastodonpp/Manifest @@ -0,0 +1,12 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + +EBUILD mastodonpp-9999.ebuild 1279 BLAKE2B f3a6073fab42aba73c313482331ab39b9ab9580e8f3b4c4aa2629c5fa4efa610049cb52b981f5f9ee779f6068ac835812a40a720299b30b581edaa4fcd0be16c SHA512 6f0f4374b06c6c828f846cc691f6352563231bbc2e1f02c152e2a361ebbc7aa1d42e5a873d4ae45a2b8a3ae9638c56eb7c0e3fa5095170cf3b599f7e541c9b2b +MISC metadata.xml 499 BLAKE2B 6a6a405ad996e46a46dfa3398cf51717068563287fdb3d0524085ed8aee877a89d7e24820eff148efae05ff4abe2f4f9f495a866953227b9cc51ad33b7ab0e28 SHA512 0c9085edd49a5111de52db3927a202beaf46458f7517ff9c12f7a35cbd39a8478340b3cf2c1f2974bdccfb36c4956992ae2298a17fe2d5938aa8f91803175c1e +-----BEGIN PGP SIGNATURE----- + +iHUEAREIAB0WIQQ1VSZoZMptf/RapufPw5SX8bJuBwUCXhdnzAAKCRDPw5SX8bJu +B9i2AP4h88xCGUUeIOYbm33bK172CdJPknibeZQx6McVSVhg0gD9GuX3Dg7NHbew +6LBo0AXE5avGxPRwCEyeOX23UAlv8lo= +=l/BO +-----END PGP SIGNATURE----- diff --git a/dev-cpp/mastodonpp/mastodonpp-9999.ebuild b/dev-cpp/mastodonpp/mastodonpp-9999.ebuild new file mode 100644 index 0000000..ffb9efc --- /dev/null +++ b/dev-cpp/mastodonpp/mastodonpp-9999.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 API." +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.32.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 +} diff --git a/dev-cpp/mastodonpp/metadata.xml b/dev-cpp/mastodonpp/metadata.xml new file mode 100644 index 0000000..94d68d6 --- /dev/null +++ b/dev-cpp/mastodonpp/metadata.xml @@ -0,0 +1,16 @@ + + + + + gentoo@tastytea.de + tastytea + + + + tastytea + tastytea@tastytea.de + + https://doc.schlomp.space/mastodonpp/ + https://schlomp.space/tastytea/mastodonpp/issues + +