From e4058807ca86d2beadf49552cf8b2ae0747d8412 Mon Sep 17 00:00:00 2001 From: tastytea Date: Fri, 20 Sep 2019 04:03:46 +0200 Subject: [PATCH] dev-cpp/mastodon-cpp: Version bump 0.110.0. Package-Manager: Portage-2.3.69, Repoman-2.3.16 Manifest-Sign-Key: 3555266864CA6D7FF45AA6E7CFC39497F1B26E07 --- dev-cpp/mastodon-cpp/Manifest | 10 ++- .../mastodon-cpp/mastodon-cpp-0.110.0.ebuild | 85 +++++++++++++++++++ 2 files changed, 91 insertions(+), 4 deletions(-) create mode 100644 dev-cpp/mastodon-cpp/mastodon-cpp-0.110.0.ebuild diff --git a/dev-cpp/mastodon-cpp/Manifest b/dev-cpp/mastodon-cpp/Manifest index c6f58ada6..8eb997a28 100644 --- a/dev-cpp/mastodon-cpp/Manifest +++ b/dev-cpp/mastodon-cpp/Manifest @@ -2,15 +2,17 @@ Hash: SHA256 DIST mastodon-cpp-0.106.0.tar.gz 68062 BLAKE2B 477f862bdcc8521c3b2ed814454760f63d7efd20e76a92faf70ddea8bb4d36bafefabb15d52c2c3bad65322296f8177c64c2c2aa0422c62fea57b100e1c62b2a SHA512 a55a8bd1b8d9d582b04c36dd6283cbdd5b18ab0bdc7983fdeee6bad4ed9319824edc6d5569646aa53689c5bb6c06ec00d8c656dd7ce177e9958ea3dc7b6a36d2 +DIST mastodon-cpp-0.110.0.tar.gz 71064 BLAKE2B 25f22b9c12837e87b80f8f27db22721b4f84d87e42d2012b5613ec709e1005653f621677240cd06e314ff4a91a6c88aae2afd761a67a8774f71271babbe519f1 SHA512 0ab416fdec1594759fb843694eb539fb8b492a98a619a72274b931a6e4e73b085c440ff72bfed2c63b1ee64952ed48f524bcf14277a676f90f3d3a675a8495da DIST mastodon-cpp-0.30.2.tar.gz 57807 BLAKE2B 1ed18131d24fcd7b21e31834db4bdc3f99dbbd2396ab9f25d1a2dd46d5013ab8e5cee97f63dff2476c6888637483bb4315b46278715ad12046f8eb1cb940332b SHA512 4399e6eac4018e0d52e86d5bad5049b3a95f6974597c070f55dc70e62b443175038192f0165c49d4fcec5d0312080f525ab608fc267092b8b0f008c8c1b46ec2 EBUILD mastodon-cpp-0.106.0.ebuild 1728 BLAKE2B 7fa80ef3cbd7dd44e548b56fa207291f9f1bd744635ad19c13348b45a46a57a7099b5d992268e520c43733411722dc5ea42facadb384751698764cba39e586f3 SHA512 d8a5059b126edc71286b0d5417289c61afcad20a91c0de66ede886baaf8ce9a2053d10651cb0cde6f4a80774dd914cecdb58827606935c2798058dd71b6909b4 +EBUILD mastodon-cpp-0.110.0.ebuild 1747 BLAKE2B 4e2d4532cdce635e38be2b982e2069fb954c420c094eddb18b42c4cc4ef25cc535dcd3ef4c2406b81f510cc2454c3304bcaa8b97b8a0486f97554f5686f739dd SHA512 37457b94c61f20a8cc61f16b7a7984a4cbe9b1024000f17d44dc48c038bf87742abf4c04d33d20d266b414edf5fdb735a5c40d6dfb831f3b5fb2a2fb7eb21612 EBUILD mastodon-cpp-0.30.2-r1.ebuild 1178 BLAKE2B 2585cdffcc3a214660ce1574616632f6efee7c3bfc1048923bb2c9394058a42f1fa19d00468497fcbeb634f099cd0f513560aed7987116d8a736d6dc5b7017db SHA512 35cba0bd663b998aebd47ee60689d8f9f66ffffced025bd9ed7990cfa0182379bf1da80c5522e512daf2fac6b29a184a7c48577e02578f9ebd45149881eb0b10 EBUILD mastodon-cpp-9999.ebuild 1747 BLAKE2B 4e2d4532cdce635e38be2b982e2069fb954c420c094eddb18b42c4cc4ef25cc535dcd3ef4c2406b81f510cc2454c3304bcaa8b97b8a0486f97554f5686f739dd SHA512 37457b94c61f20a8cc61f16b7a7984a4cbe9b1024000f17d44dc48c038bf87742abf4c04d33d20d266b414edf5fdb735a5c40d6dfb831f3b5fb2a2fb7eb21612 MISC metadata.xml 529 BLAKE2B 0e315bbc4644309a5a843fca3e7c4dadda28982930c592e73201b174fc5626b45d0bcb96dfca7c1085fc059ef454957b728d139ad8a99cbddca5cda6dd431448 SHA512 85bd72c7fb3e173354877cd183a4869e733a90d200f95cf8ecf85a658f9229010298ae8e265cf3d309f022f0b242898da04249933aaca5c12c26eeec8beb71f6 -----BEGIN PGP SIGNATURE----- -iHUEAREIAB0WIQQ1VSZoZMptf/RapufPw5SX8bJuBwUCXXY9rQAKCRDPw5SX8bJu -B6yNAP0aC4RFJlh8fVh+ZAr7iceru/gIINytwYiJ+jpRJNMW8gD/Ww5ijAfrpl2w -VO8sVhyhpfLE0BVorjQYomYb8L4/wRw= -=2NuQ +iHUEAREIAB0WIQQ1VSZoZMptf/RapufPw5SX8bJuBwUCXYQzgQAKCRDPw5SX8bJu +By05AP4mRlbqCX9PuvXwNtFWRs1XwCNiatp1rCh5fdLP7Q0uDgD8CV+Av9lsMFbl +OwreZ8Kg6bYaHlXJUkOBj5h2CyOZfvg= +=KXgy -----END PGP SIGNATURE----- diff --git a/dev-cpp/mastodon-cpp/mastodon-cpp-0.110.0.ebuild b/dev-cpp/mastodon-cpp/mastodon-cpp-0.110.0.ebuild new file mode 100644 index 000000000..bec688432 --- /dev/null +++ b/dev-cpp/mastodon-cpp/mastodon-cpp-0.110.0.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2019 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="mastodon-cpp is a C++ wrapper for the Mastodon API." +HOMEPAGE="https://schlomp.space/tastytea/mastodon-cpp" +if [[ "${PV}" == "9999" ]]; then + EGIT_REPO_URI="https://schlomp.space/tastytea/mastodon-cpp.git" +else + SRC_URI="https://schlomp.space/tastytea/mastodon-cpp/archive/${PV}.tar.gz -> ${P}.tar.gz" +fi + +LICENSE="GPL-3" +SLOT="0" +if [[ "${PV}" == "9999" ]]; then + KEYWORDS="" +else + KEYWORDS="~amd64 ~x86" +fi +IUSE="doc examples minimal test" + +RDEPEND=" + >=dev-libs/poco-1.9.0-r2[net,ssl] + !minimal? ( dev-libs/jsoncpp ) +" +DEPEND=" + dev-util/cmake + doc? ( app-doc/doxygen ) + test? ( dev-cpp/catch ) + ${RDEPEND} +" + +if [[ "${PV}" != "9999" ]]; then + S="${WORKDIR}/${PN}" +fi + +src_configure() { + local mycmakeargs=( + -DWITH_DOC=NO + -DWITH_EXAMPLES=NO + -DWITH_EASY="$(usex minimal NO YES)" + -DWITH_TESTS="$(usex test)" + ) + if use test; then + # Don't run tests that need a network connection. + mycmakeargs+=(-DEXTRA_TEST_ARGS="~[api]") + fi + + cmake-utils_src_configure +} + +# We can not let cmake handle the documentation, because it would end up in +# doc/mastodon-cpp-${PROJECT_VERSION} instead of -9999 +src_compile() { + cmake-utils_src_compile + + if use doc; then + ./build_doc.sh + fi +} + +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 +} + +src_postinst() { + ewarn "This version of mastodon-cpp is considerably different from versions below 0.100.0." + ewarn "Upgrading will require extensive code changes." +}