added mastodon-cpp-0.16.1

This commit is contained in:
tastytea 2018-06-12 08:33:40 +02:00
parent 99a142d783
commit 1d178c7283
Signed by: tastytea
GPG Key ID: 59346E0EA35C67E5
2 changed files with 59 additions and 0 deletions

View File

@ -4,3 +4,4 @@ DIST mastodon-cpp-0.12.1.tar.gz 52000 BLAKE2B c9a1755d910b48c5241ec796f1104c7ea7
DIST mastodon-cpp-0.13.1.tar.gz 52884 BLAKE2B 2c8b37e32d7cb599d70269528c9b57117a35d11f88f8386ec27de636244c66badc658f5367043cb097c46a69a0d154fedb273c68165cc709274b168231d01fa3 SHA512 474583aae0bd6f78ea98c70cb6acca24757ed3ef66a7c2c5b016db2906f5caf5e32cfa237b6246222b6f7d98e9394a05770a8264dd00dd786f4fc06ac7eab2a3
DIST mastodon-cpp-0.14.0.tar.gz 53734 BLAKE2B e3f391e02c541de3fb4889f7e98b66fbb12b11dd1a3ca393eebbaa775e68618e041c5197db3b61cab15ec1b4c2d9b99f109a2e701eb86af25437a029ca25d304 SHA512 f674ed84a8eb86d1c6ff87f6e343ec72c8c8cca271bd4741528b42a094aa87f03a46a662c35f39a416e717e6823d3e3df4973d06eb1a0d172873f980470f1164
DIST mastodon-cpp-0.15.1.tar.gz 54270 BLAKE2B c5f01dcc615cb5a94dc40adbbdf47a4253472d752b63a04ac29b99ece3a67cbe5aedc955683a35492aa8d96f3975a443444fffed2d5d2c6055de5762a1f10aff SHA512 fe72c4cb0d8f15d01290f9fec317bc7c49b3d9fc2460f04f1639e3ae658bd1b1c1ad4f29c84efccac86a140584ca62dafa17ab14469bc3242d767b3cecb0a4ac
DIST mastodon-cpp-0.16.1.tar.gz 55378 BLAKE2B c1d02b5554f57df105666fe7d0fa3bc28113691de9c67e0bdd591e3fe1f0b6201bc0069814d317740e047b3a2dd105f4d471818f73c320c3d711236648b38caf SHA512 15f7e34090cc058be309dd2b89fb96f4f704e351de0414eb19afefad7f6f0d60b56d20606cf8206772370199e9e32e09c349a26c36b2503d420ed561db2107af

View File

@ -0,0 +1,58 @@
EAPI=6
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"
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_unpack() {
default_src_unpack
mv ${PN} ${P}
}
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
}