[chrome-gnome-shell] cmake: workaround for wrong FreeBSD Chromium patch



commit 038a9dfcfadf499ceb4d4e13a9880b37b69168f9
Author: Yuri Konotopov <ykonotopov gmail com>
Date:   Fri Aug 19 14:02:29 2016 +0300

    cmake: workaround for wrong FreeBSD Chromium patch

 CMakeLists.txt |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 921064b..203f5e0 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -160,6 +160,14 @@ if(BUILD_CONNECTOR)
        install(FILES "${CMAKE_BINARY_DIR}/org.gnome.chrome_gnome_shell.json" DESTINATION 
"/etc/opt/chrome/native-messaging-hosts/")
        install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/connector/external_extension.json" DESTINATION 
"/usr/share/google-chrome/extensions/" RENAME "${EXTENSION_ID}.json")
        install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/connector/external_extension.json" DESTINATION 
"/usr/share/chromium/extensions/" RENAME "${EXTENSION_ID}.json")
+
+       # There is wrong patch in FreeBSD that forces Chromium to look into
+       # /usr/local/etc/chrome/native-messaging-hosts for native messaging host manifest.
+       # https://svn0.us-east.freebsd.org/ports/head/www/chromium/files/patch-chrome_common_chrome__paths.cc
+       if(CMAKE_SYSTEM_NAME MATCHES "DragonFly.*|FreeBSD")
+               install(FILES "${CMAKE_BINARY_DIR}/io.github.ne0sight.gs_chrome_connector.json" DESTINATION 
"/usr/local/etc/chrome/native-messaging-hosts/")
+               install(FILES "${CMAKE_BINARY_DIR}/org.gnome.chrome_gnome_shell.json" DESTINATION 
"/usr/local/etc/chrome/native-messaging-hosts/")
+       endif(CMAKE_SYSTEM_NAME MATCHES "DragonFly.*|FreeBSD")
 endif(BUILD_CONNECTOR)
 
 if(BUILD_SOURCE_PACKAGE)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]