From 93d6ac4d57898cde7bd91ec2db7d0163437b4f5a Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 18 Apr 2018 03:12:52 +0100 Subject: net-misc/megasync : new package --- net-misc/megasync/files/megasync-qmake.diff | 50 +++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 net-misc/megasync/files/megasync-qmake.diff (limited to 'net-misc/megasync/files/megasync-qmake.diff') diff --git a/net-misc/megasync/files/megasync-qmake.diff b/net-misc/megasync/files/megasync-qmake.diff new file mode 100644 index 00000000..357454d7 --- /dev/null +++ b/net-misc/megasync/files/megasync-qmake.diff @@ -0,0 +1,50 @@ +--- a/src/MEGAShellExtNautilus/MEGAShellExtNautilus.pro ++++ b/src/MEGAShellExtNautilus/MEGAShellExtNautilus.pro +@@ -1,6 +1,7 @@ + QT -= core gui + +-TARGET = MEGAShellExtNautilus ++TARGET = libMEGAShellExtNautilus ++CONFIG += plugin no_plugin_name_prefix + TEMPLATE = lib + + SOURCES += mega_ext_module.c \ +@@ -41,5 +42,4 @@ INSTALLS += emblems32 emblems64 + !contains(DEFINES, no_desktop) { + update_cache.commands = gtk-update-icon-cache -f -t $${HICOLOR} || true + update_cache.path = $$PWD +- INSTALLS += update_cache + } +--- a/src/MEGASync/platform/platform.pri ++++ b/src/MEGASync/platform/platform.pri +@@ -34,7 +34,8 @@ unix:!macx { + system(command -v lsb_release): version.commands = lsb_release -rs > $$version.target + version.files = $$version.target + +- INSTALLS += distro version ++ target.path = $$PREFIX/bin ++ INSTALLS += target + + QT += dbus + SOURCES += $$PWD/linux/LinuxPlatform.cpp \ +@@ -62,7 +62,6 @@ unix:!macx { + # desktop + desktop.path = $$DESKTOP_DESTDIR/share/applications + desktop.files = $$PWD/linux/data/megasync.desktop +- desktop.commands = update-desktop-database &> /dev/null || true + INSTALLS += desktop + + HICOLOR = $$DESKTOP_DESTDIR/share/icons/hicolor +--- a/src/MEGA.pro ++++ b/src/MEGA.pro +@@ -17,8 +17,9 @@ win32 { + unix:!macx { + CONFIG(with_ext) { + SUBDIRS += MEGAShellExtNautilus ++ } ++ CONFIG(with_thu) { + SUBDIRS += MEGAShellExtThunar +- SUBDIRS += MEGAShellExtDolphin + } + } + -- cgit v1.2.3