From 3b10b78c52330cf7b9bb98515920c0d16833afbc Mon Sep 17 00:00:00 2001 From: tastytea Date: Sun, 27 May 2018 12:21:29 +0200 Subject: [PATCH] Added mastodon-cpp 0.13.1, 0.14.0, 0.15.1 --- dev-cpp/mastodon-cpp/Manifest | 3 ++ .../mastodon-cpp/mastodon-cpp-0.13.1.ebuild | 53 +++++++++++++++++++ .../mastodon-cpp/mastodon-cpp-0.14.0.ebuild | 53 +++++++++++++++++++ .../mastodon-cpp/mastodon-cpp-0.15.1.ebuild | 53 +++++++++++++++++++ 4 files changed, 162 insertions(+) create mode 100644 dev-cpp/mastodon-cpp/mastodon-cpp-0.13.1.ebuild create mode 100644 dev-cpp/mastodon-cpp/mastodon-cpp-0.14.0.ebuild create mode 100644 dev-cpp/mastodon-cpp/mastodon-cpp-0.15.1.ebuild diff --git a/dev-cpp/mastodon-cpp/Manifest b/dev-cpp/mastodon-cpp/Manifest index d8ff4d9..da7c697 100644 --- a/dev-cpp/mastodon-cpp/Manifest +++ b/dev-cpp/mastodon-cpp/Manifest @@ -1,3 +1,6 @@ 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 +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 be3b4cff218f4a6078fc02c423e2dbefe5c6c9f033c677004f96be124c0aeb7aca09663aca5ade152e85f115dea2b44e90f1550625b310ec2f48797bbfef6167 SHA512 432a81af105fe4158b66fa084e633cb36ffa10825da5f7183c1cdbef7aacae454f214b6e390e741b510b125dd879e22bf7f2aa5794ba0ae96ced6bd68bfdae3b diff --git a/dev-cpp/mastodon-cpp/mastodon-cpp-0.13.1.ebuild b/dev-cpp/mastodon-cpp/mastodon-cpp-0.13.1.ebuild new file mode 100644 index 0000000..0240eb2 --- /dev/null +++ b/dev-cpp/mastodon-cpp/mastodon-cpp-0.13.1.ebuild @@ -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 +} diff --git a/dev-cpp/mastodon-cpp/mastodon-cpp-0.14.0.ebuild b/dev-cpp/mastodon-cpp/mastodon-cpp-0.14.0.ebuild new file mode 100644 index 0000000..0240eb2 --- /dev/null +++ b/dev-cpp/mastodon-cpp/mastodon-cpp-0.14.0.ebuild @@ -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 +} diff --git a/dev-cpp/mastodon-cpp/mastodon-cpp-0.15.1.ebuild b/dev-cpp/mastodon-cpp/mastodon-cpp-0.15.1.ebuild new file mode 100644 index 0000000..0240eb2 --- /dev/null +++ b/dev-cpp/mastodon-cpp/mastodon-cpp-0.15.1.ebuild @@ -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 +}