dev-cpp/mastodonpp: New package.
continuous-integration/drone/push Build is failing Details

Package-Manager: Portage-2.3.84, Repoman-2.3.16
Manifest-Sign-Key: 3555266864CA6D7FF45AA6E7CFC39497F1B26E07
This commit is contained in:
tastytea 2020-01-09 18:50:04 +01:00
parent e5752b8927
commit 91ac78cd44
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
3 changed files with 103 additions and 0 deletions

View File

@ -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-----

View File

@ -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
}

View File

@ -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>tastytea</name>
</maintainer>
<upstream>
<maintainer status="active">
<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>