Added mastodon-cpp-0.12.1

This commit is contained in:
tastytea 2018-05-13 07:23:18 +02:00
parent eada355aa8
commit e715d04018
Signed by untrusted user: tastytea
GPG Key ID: 59346E0EA35C67E5
2 changed files with 54 additions and 0 deletions

View File

@ -1,2 +1,3 @@
DIST mastodon-cpp-0.10.1.tar.gz 48709 BLAKE2B 67ff2680a2b3dc5c90c43981d1b558f809d37865a122136edc0aed5192df858682f465aa304b9dfd1d00b6a00778d494cc7fee7f0efc32af3884a4da4e002a36 SHA512 5b1557c5ec027c21d3d14b7067e473c131dde699592a2f434090979285ad2ee2f89b4e3a664264b99b1e5c42a4b271c565b2c008c34ea78927733c7b4290fd98
DIST mastodon-cpp-0.12.0.tar.gz 51931 BLAKE2B fdf08a8dbe9a5b29a37f32ea3156e74b68c84c85737c8717a0eb52d2a6e6ded2602b1817b2014c71e2f9144fd60135a6c0d6c5b222b57f71d0600f298fb2d721 SHA512 407e80d2e92a45214a83ee9659d2014c89e11df3e9d0af9f9094775cb459b086964d64de097d5f8ded3e3a20c8b9f02c0567044952c1fbaadd3b215efb75c1d7
DIST mastodon-cpp-0.12.1.tar.gz 52000 BLAKE2B c9a1755d910b48c5241ec796f1104c7ea790c29fdd6f8c21eb5e5bde51f0a8cf4357379c0690754fe4612667bde28b0c422d4e4fe4e8105694b54fad9e1b3559 SHA512 488fb3406aeb50804f8333bdd8958f981bdc0718edcafb3ee2db807f61c11547804ca9c2d03361afcd6ceab62f585abdec27a25d25cd24d087bf19112a20e324

View File

@ -0,0 +1,53 @@
EAPI=6
inherit cmake-utils
DESCRIPTION="mastodon-cpp is a C++ wrapper for the Mastodon API."
HOMEPAGE="https://github.com/tastytea/mastodon-cpp"
SRC_URI="https://github.com/tastytea/mastodon-cpp/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
IUSE="doc debug examples"
RDEPEND=">=dev-cpp/curlpp-0.7.3
>=dev-libs/jsoncpp-1.8.1"
DEPEND=">=dev-util/cmake-3.9.6
doc? ( >=app-doc/doxygen-1.8.13-r1 )
${RDEPEND}"
src_configure() {
local mycmakeargs=(
-DWITH_DOC=NO
-DWITH_EXAMPLES=NO
-DWITH_TESTS=NO
)
if use debug; then
mycmakeargs+=(-DCMAKE_BUILD_TYPE=Debug)
else
mycmakeargs+=(-DCMAKE_BUILD_TYPE=Release)
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() {
if use doc; then
./build_doc.sh
fi
cmake-utils_src_compile
}
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
}