public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Andrew Ammerlaan" <andrewammerlaan@riseup.net>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-cpp/mastodonpp/
Date: Sat, 28 Nov 2020 13:57:55 +0000 (UTC)	[thread overview]
Message-ID: <1606487319.f8ca58ad6502dd0e0b91c1fce2004dc7ce283766.andrewammerlaan@gentoo> (raw)

commit:     f8ca58ad6502dd0e0b91c1fce2004dc7ce283766
Author:     Ronny (tastytea) Gutbrod <gentoo <AT> tastytea <DOT> de>
AuthorDate: Fri Nov 27 14:18:00 2020 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Fri Nov 27 14:28:39 2020 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=f8ca58ad

dev-cpp/mastodonpp: New package.

C++ wrapper for the Mastodon and Pleroma APIs.

Signed-off-by: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea.de>

 dev-cpp/mastodonpp/Manifest                |  1 +
 dev-cpp/mastodonpp/mastodonpp-0.5.7.ebuild | 59 ++++++++++++++++++++++++++++++
 dev-cpp/mastodonpp/mastodonpp-9999.ebuild  | 59 ++++++++++++++++++++++++++++++
 dev-cpp/mastodonpp/metadata.xml            | 16 ++++++++
 4 files changed, 135 insertions(+)

diff --git a/dev-cpp/mastodonpp/Manifest b/dev-cpp/mastodonpp/Manifest
new file mode 100644
index 00000000..0d31c4cf
--- /dev/null
+++ b/dev-cpp/mastodonpp/Manifest
@@ -0,0 +1 @@
+DIST mastodonpp-0.5.7.tar.gz 48181 BLAKE2B cce2b9b61c3cb88a5246888d97b5495979b15e41b1e6d5499d09f00cd24fc94b78a983d634ec28dee0d537642294542235efa261faaa3320ab905f7196b16133 SHA512 83efbd32f7cde6a19546c21d99ed1c8b747ac995b69a5e87876bd0ea0aa9c932d0d255ed2cbe5b0fe4a92aec06d6c75d455f13e9537aade31176ec757916b27a

diff --git a/dev-cpp/mastodonpp/mastodonpp-0.5.7.ebuild b/dev-cpp/mastodonpp/mastodonpp-0.5.7.ebuild
new file mode 100644
index 00000000..60770d51
--- /dev/null
+++ b/dev-cpp/mastodonpp/mastodonpp-0.5.7.ebuild
@@ -0,0 +1,59 @@
+# 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
+}

diff --git a/dev-cpp/mastodonpp/mastodonpp-9999.ebuild b/dev-cpp/mastodonpp/mastodonpp-9999.ebuild
new file mode 100644
index 00000000..60770d51
--- /dev/null
+++ b/dev-cpp/mastodonpp/mastodonpp-9999.ebuild
@@ -0,0 +1,59 @@
+# 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
+}

diff --git a/dev-cpp/mastodonpp/metadata.xml b/dev-cpp/mastodonpp/metadata.xml
new file mode 100644
index 00000000..a4a476a4
--- /dev/null
+++ b/dev-cpp/mastodonpp/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="person">
+		<email>gentoo@tastytea.de</email>
+		<name>Ronny (tastytea) Gutbrod</name>
+	</maintainer>
+	<upstream>
+		<maintainer>
+			<name>tastytea</name>
+			<email>tastytea@tastytea.de</email>
+		</maintainer>
+		<doc>https://doc.schlomp.space/mastodonpp/</doc>
+		<bugs-to>https://schlomp.space/tastytea/mastodonpp/issues</bugs-to>
+	</upstream>
+</pkgmetadata>


             reply	other threads:[~2020-11-28 13:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-28 13:57 Andrew Ammerlaan [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-08-02 10:55 [gentoo-commits] repo/proj/guru:master commit in: dev-cpp/mastodonpp/ Haelwenn Monnier
2022-08-02 10:55 Haelwenn Monnier
2023-03-14 16:35 Florian Schmaus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1606487319.f8ca58ad6502dd0e0b91c1fce2004dc7ce283766.andrewammerlaan@gentoo \
    --to=andrewammerlaan@riseup.net \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox