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