diff --git a/dev-cpp/mastodon-cpp/Manifest b/dev-cpp/mastodon-cpp/Manifest index e1382cb..1d0cf9a 100644 --- a/dev-cpp/mastodon-cpp/Manifest +++ b/dev-cpp/mastodon-cpp/Manifest @@ -1,14 +1,16 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 +DIST mastodon-cpp-0.104.0.tar.gz 59458 BLAKE2B 249f55f4bd4aff2ea6a84db8f0dd6ce4b7d134e354f4ed5438ba9d90e8190be52e8e337065a7acc079ec75a263d42ee5dae1ea0e96f6bda89986ea9a182a2ebb SHA512 50497879fad7da5f2c9b4c9376c2a2b0b2a308f3bd564f7ff541463b95890b08bcb3dfb554683e42ea4c785857d6ee760ade9c467189cdf16fb23cd87ff7af7b DIST mastodon-cpp-0.30.2.tar.gz 57807 BLAKE2B 1ed18131d24fcd7b21e31834db4bdc3f99dbbd2396ab9f25d1a2dd46d5013ab8e5cee97f63dff2476c6888637483bb4315b46278715ad12046f8eb1cb940332b SHA512 4399e6eac4018e0d52e86d5bad5049b3a95f6974597c070f55dc70e62b443175038192f0165c49d4fcec5d0312080f525ab608fc267092b8b0f008c8c1b46ec2 +EBUILD mastodon-cpp-0.104.0.ebuild 1325 BLAKE2B a9175df964441f36b6b4169b381e28f83304e0845e37b9789844a23ab2acfbd12417d91b8c3af4ea1657b4b008ffd327207eba2570dc6362ed2ec7085c14dc8a SHA512 7fa00b45ce2b680eb566f807ced7c74e15e658d416bff67ff6507d36360445df651244820460938a66eca6f9fd1c2f4a53180a832570af765897172841188e92 EBUILD mastodon-cpp-0.30.2-r1.ebuild 1178 BLAKE2B 2585cdffcc3a214660ce1574616632f6efee7c3bfc1048923bb2c9394058a42f1fa19d00468497fcbeb634f099cd0f513560aed7987116d8a736d6dc5b7017db SHA512 35cba0bd663b998aebd47ee60689d8f9f66ffffced025bd9ed7990cfa0182379bf1da80c5522e512daf2fac6b29a184a7c48577e02578f9ebd45149881eb0b10 -EBUILD mastodon-cpp-9999.ebuild 1180 BLAKE2B 59043205be427a170183843d903f7a31debd70b862538a147cb3612cf617d359feb536c034c783b02aa0889d8be6ee7c0b00783a75655005304f78872c6ef474 SHA512 c2b25e87fd1f5b83b58b370f552331b2837c0eb532b346b4ff8103bee9c94c01a4ce247b63b62cac6df72dcedf8ce396b5cba922ef8780957c0d1e44cf7d94bb +EBUILD mastodon-cpp-9999.ebuild 1319 BLAKE2B f18356df2d4ce67cb559a3f8e3f7e20701436c48a394c81fdfbb686e3dcf544c98f988d627d1a752c3647839cadefd809083a969e8cc3a6e9681f352c4863efe SHA512 2f61a0ba54e60391187c2bd829a219711482574b4914ef59c624236cc5b970e42b8006825ed874be0028db9500231551c191f6c531d2c3dc212aeaeba4b1295f MISC metadata.xml 529 BLAKE2B 0e315bbc4644309a5a843fca3e7c4dadda28982930c592e73201b174fc5626b45d0bcb96dfca7c1085fc059ef454957b728d139ad8a99cbddca5cda6dd431448 SHA512 85bd72c7fb3e173354877cd183a4869e733a90d200f95cf8ecf85a658f9229010298ae8e265cf3d309f022f0b242898da04249933aaca5c12c26eeec8beb71f6 -----BEGIN PGP SIGNATURE----- -iHUEAREIAB0WIQQ1VSZoZMptf/RapufPw5SX8bJuBwUCXJ3AVAAKCRDPw5SX8bJu -B+/IAPwMZ/BQzP1ZCreQSeqPsdw5eLvbLvjzG2dGy5XWzAWBxwEAhBtTuWdOHud/ -ftC6MW3M1W4jPVLTQruPGzPtcEZBEz8= -=yS9F +iHUEAREIAB0WIQQ1VSZoZMptf/RapufPw5SX8bJuBwUCXLleRgAKCRDPw5SX8bJu +B2+IAQCCQiaOxCjjAYqB8K4l4QRvNOVDN/NansbcdlJ4YXR0HwD/YjKyc3f752/d +VgWU/kLvll0FDc8HRZ8X7AALDMp3MNs= +=hLwG -----END PGP SIGNATURE----- diff --git a/dev-cpp/mastodon-cpp/mastodon-cpp-0.104.0.ebuild b/dev-cpp/mastodon-cpp/mastodon-cpp-0.104.0.ebuild new file mode 100644 index 0000000..b08f03d --- /dev/null +++ b/dev-cpp/mastodon-cpp/mastodon-cpp-0.104.0.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit cmake-utils + +DESCRIPTION="mastodon-cpp is a C++ wrapper for the Mastodon API." +HOMEPAGE="https://schlomp.space/tastytea/mastodon-cpp" +SRC_URI="https://schlomp.space/tastytea/mastodon-cpp/archive/${PV}.tar.gz -> ${P}.tar.gz" +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="doc examples minimal" +RDEPEND=" + dev-cpp/curlpp + !minimal? ( dev-libs/jsoncpp ) +" +DEPEND=" + dev-util/cmake + doc? ( app-doc/doxygen ) + ${RDEPEND} +" + +S="${WORKDIR}/${PN}" + +src_configure() { + local mycmakeargs=( + -DWITH_DOC=NO + -DWITH_EXAMPLES=NO + -DWITH_TESTS=NO + ) + + if use minimal; then + mycmakeargs+=(-DWITH_EASY=NO) + fi + + cmake-utils_src_configure +} + +# We won't let cmake handle the documentation, because it would install the +# examples, no matter if we want them. +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." +} diff --git a/dev-cpp/mastodon-cpp/mastodon-cpp-9999.ebuild b/dev-cpp/mastodon-cpp/mastodon-cpp-9999.ebuild index aaf7217..ba60bd3 100644 --- a/dev-cpp/mastodon-cpp/mastodon-cpp-9999.ebuild +++ b/dev-cpp/mastodon-cpp/mastodon-cpp-9999.ebuild @@ -1,7 +1,7 @@ # Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=7 inherit git-r3 cmake-utils DESCRIPTION="mastodon-cpp is a C++ wrapper for the Mastodon API." @@ -10,12 +10,16 @@ EGIT_REPO_URI="https://schlomp.space/tastytea/mastodon-cpp.git" LICENSE="GPL-3" SLOT="0" KEYWORDS="" -IUSE="doc examples static-libs" -RDEPEND=">=dev-cpp/curlpp-0.8.1 - >=dev-libs/jsoncpp-1.8.1" -DEPEND=">=dev-util/cmake-3.9.6 - doc? ( >=app-doc/doxygen-1.8.13-r1 ) - ${RDEPEND}" +IUSE="doc examples minimal" +RDEPEND=" + dev-cpp/curlpp + !minimal? ( dev-libs/jsoncpp ) +" +DEPEND=" + dev-util/cmake + doc? ( app-doc/doxygen ) + ${RDEPEND} +" src_unpack() { git-r3_src_unpack @@ -27,8 +31,9 @@ src_configure() { -DWITH_EXAMPLES=NO -DWITH_TESTS=NO ) - if use static-libs; then - mycmakeargs+=(-DWITH_STATIC=YES) + + if use minimal; then + mycmakeargs+=(-DWITH_EASY=NO) fi cmake-utils_src_configure @@ -45,8 +50,6 @@ src_compile() { } src_install() { - cmake-utils_src_install - if use doc; then HTML_DOCS="doc/html/*" fi @@ -57,4 +60,11 @@ src_install() { 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." }