net-misc/megasync: fix unable to find cmakelists.txt

- also fix dep on doxygen

Closes: https://bugs.gentoo.org/763057
Bug: https://bugs.gentoo.org/763138
Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net>
This commit is contained in:
Andrew Ammerlaan
2021-01-03 14:58:02 +01:00
parent 9fa34503f6
commit 9785f55f12

View File

@@ -63,19 +63,22 @@ DEPEND="
dev-qt/qtsvg:5
"
BDEPEND="
app-doc/doxygen
dev-lang/swig
dev-qt/linguist-tools
"
DOCS=( CREDITS.md README.md )
CMAKE_USE_DIR="${S}/src/MEGAShellExtDolphin"
src_prepare() {
if [[ ${PV} != 9999 ]]; then
rmdir src/MEGASync/mega
mv "${WORKDIR}"/sdk-${MEGA_SDK_REV} src/MEGASync/mega
fi
if use dolphin; then
# use the kde5 CMakeLists instead of the kde 4 version
mv src/MEGAShellExtDolphin/CMakeLists_kde5.txt src/MEGAShellExtDolphin/CMakeLists.txt || die
cmake_src_prepare
else
default