From fff2f98d76335dfa1a9e1bf1a29766d4d161bf78 Mon Sep 17 00:00:00 2001 From: tastytea Date: Fri, 9 Feb 2018 14:12:04 +0100 Subject: [PATCH] added examples useflag --- packages/gentoo/mastodon-cpp-9999.ebuild | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/gentoo/mastodon-cpp-9999.ebuild b/packages/gentoo/mastodon-cpp-9999.ebuild index dbb535b..1bbc3a5 100644 --- a/packages/gentoo/mastodon-cpp-9999.ebuild +++ b/packages/gentoo/mastodon-cpp-9999.ebuild @@ -11,7 +11,7 @@ EGIT_REPO_URI="https://github.com/tastytea/mastodon-cpp.git" LICENSE="GPL-3" SLOT="0" KEYWORDS="" -IUSE="doc debug" +IUSE="doc debug examples" RDEPEND=">=dev-libs/boost-1.63.0" DEPEND=">=dev-util/cmake-3.9.6 doc? ( >=app-doc/doxygen-1.8.13-r1 ) @@ -47,9 +47,13 @@ src_compile() { src_install() { if use doc; then HTML_DOCS="doc/html/*" + fi + + if use examples; then for file in src/examples/*.cpp; do dodoc ${file} done fi + cmake-utils_src_install }