diff --git a/dev-cpp/mastodon-cpp/mastodon-cpp-0.15.1.ebuild b/dev-cpp/mastodon-cpp/mastodon-cpp-0.15.1.ebuild index ee253d803..da533c90f 100644 --- a/dev-cpp/mastodon-cpp/mastodon-cpp-0.15.1.ebuild +++ b/dev-cpp/mastodon-cpp/mastodon-cpp-0.15.1.ebuild @@ -9,50 +9,50 @@ SLOT="0" KEYWORDS="~amd64" IUSE="doc debug examples" RDEPEND=">=dev-cpp/curlpp-0.7.3 - >=dev-libs/jsoncpp-1.8.1" + >=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 -} + doc? ( >=app-doc/doxygen-1.8.13-r1 ) + ${RDEPEND}" src_unpack() { - default_src_unpack - mv ${PN} ${P} + 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 + 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 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 + if use examples; then + docinto examples + for file in examples/*.cpp; do + dodoc ${file} + done + fi + + cmake-utils_src_install }