From 12e71255611aef1fd2bf3ebaccb32751c1cf752e Mon Sep 17 00:00:00 2001 From: tastytea Date: Mon, 4 Jun 2018 14:00:05 +0200 Subject: [PATCH] change spaces to tabs, add src_unpack() --- packages/gentoo/mastodon-cpp-0.0.0.ebuild | 63 ++++++++++++----------- 1 file changed, 34 insertions(+), 29 deletions(-) diff --git a/packages/gentoo/mastodon-cpp-0.0.0.ebuild b/packages/gentoo/mastodon-cpp-0.0.0.ebuild index 88dd9ab..da533c9 100644 --- a/packages/gentoo/mastodon-cpp-0.0.0.ebuild +++ b/packages/gentoo/mastodon-cpp-0.0.0.ebuild @@ -9,45 +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}" + 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 + 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 }