dev-cpp/mastodonpp: Update live ebuild.

This commit is contained in:
tastytea 2020-11-13 14:34:02 +01:00
parent ec7fe2bcae
commit d07623181f
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 11 additions and 16 deletions

View File

@ -17,18 +17,20 @@ fi
LICENSE="AGPL-3"
SLOT="0"
if [[ "${PV}" == "9999" ]]; then
KEYWORDS=""
else
if [[ "${PV}" != "9999" ]]; then
KEYWORDS="~amd64 ~x86"
fi
IUSE="doc examples test"
RDEPEND=">=net-misc/curl-7.56.0[ssl]"
DEPEND="${RDEPEND}
>=dev-util/cmake-3.9"
BDEPEND="doc? ( app-doc/doxygen )
test? ( dev-cpp/catch )"
DEPEND="
${RDEPEND}
>=dev-util/cmake-3.9
"
BDEPEND="
doc? ( app-doc/doxygen )
test? ( dev-cpp/catch )
"
RESTRICT="!test? ( test )"
@ -40,26 +42,19 @@ src_configure() {
local mycmakeargs=(
-DWITH_EXAMPLES=NO
-DWITH_TESTS="$(usex test)"
-DWITH_DOC="$(usex doc)"
)
cmake_src_configure
}
src_compile() {
cmake_src_compile
if use doc; then
./build_doc.sh
fi
}
src_test() {
BUILD_DIR="${BUILD_DIR}/tests" cmake_src_test
}
src_install() {
if use doc; then
HTML_DOCS="doc/html/*"
HTML_DOCS="build/doc/html/*"
fi
if use examples; then