deja-dup 34.3
[git/cygwin-packages/deja-dup.git] / 03-caja-extension.patch
CommitLineData
600a2d68
YS
1--- origsrc/deja-dup-32.0/CMakeLists.txt 2014-09-20 10:04:47.000000000 -0500
2+++ src/deja-dup-32.0/CMakeLists.txt 2015-06-24 17:24:57.396380700 -0500
9ea1d3d2 3@@ -25,6 +25,8 @@ include(DejaDupMacros)
1d9e60e2 4
600a2d68
YS
5 deja_option(ENABLE_CCPANEL "Build gnome-control-center panel" CHECK)
6 deja_option(ENABLE_NAUTILUS "Build nautilus plugin" CHECK)
7+deja_option(ENABLE_CAJA "Build caja plugin" CHECK)
9ea1d3d2 8+deja_option(ENABLE_NEMO "Build nemo plugin" CHECK)
600a2d68
YS
9 deja_option(ENABLE_UNITY "Integrate with Unity" CHECK)
10 deja_option(ENABLE_UNITY_CCPANEL "Build unity-control-center panel" CHECK)
11
9ea1d3d2 12@@ -53,6 +55,22 @@ if(ENABLE_NAUTILUS)
600a2d68
YS
13 OUTPUT_STRIP_TRAILING_WHITESPACE
14 ERROR_QUIET)
15 endif()
16+
17+deja_enable_option(CAJA libcaja-extension)
18+if(ENABLE_CAJA)
19+ execute_process(COMMAND ${PKG_CONFIG_EXECUTABLE} --variable=extensiondir libcaja-extension
20+ OUTPUT_VARIABLE CAJA_EXTENSIONDIR
21+ OUTPUT_STRIP_TRAILING_WHITESPACE
22+ ERROR_QUIET)
9ea1d3d2
YS
23+endif()
24+
25+deja_enable_option(NEMO libnemo-extension)
26+if(ENABLE_NEMO)
27+ execute_process(COMMAND ${PKG_CONFIG_EXECUTABLE} --variable=extensiondir libnemo-extension
28+ OUTPUT_VARIABLE NEMO_EXTENSIONDIR
29+ OUTPUT_STRIP_TRAILING_WHITESPACE
30+ ERROR_QUIET)
600a2d68
YS
31+endif()
32
33 deja_enable_option(UNITY_CCPANEL libunity-control-center)
34 if(ENABLE_UNITY_CCPANEL)
35--- origsrc/deja-dup-32.0/deja-dup/CMakeLists.txt 2014-05-02 11:47:15.000000000 -0500
36+++ src/deja-dup-32.0/deja-dup/CMakeLists.txt 2015-06-24 17:21:33.982746100 -0500
9ea1d3d2 37@@ -50,6 +50,8 @@ install(DIRECTORY ui DESTINATION "${PKG_
600a2d68
YS
38 add_subdirectory(help)
39 add_subdirectory(monitor)
40 add_subdirectory(nautilus)
41+add_subdirectory(caja)
9ea1d3d2 42+add_subdirectory(nemo)
600a2d68
YS
43 add_subdirectory(preferences)
44 add_subdirectory(tests)
45 add_subdirectory(widgets)
c0d1c697
YS
46--- origsrc/deja-dup-34.0/deja-dup/caja/CMakeLists.txt 1969-12-31 18:00:00.000000000 -0600
47+++ src/deja-dup-34.0/deja-dup/caja/CMakeLists.txt 2015-11-18 19:17:15.888685200 -0600
9ea1d3d2 48@@ -0,0 +1,13 @@
c0d1c697
YS
49+if(ENABLE_CAJA)
50+add_library(caja-deja-dup MODULE CajaExtension.c)
51+target_link_libraries(caja-deja-dup ${GLIB_LDFLAGS} ${CAJA_LDFLAGS})
52+set_target_properties(caja-deja-dup PROPERTIES
53+ INCLUDE_DIRECTORIES "${CMAKE_BINARY_DIR}/libdeja"
54+ COMPILE_FLAGS "${GLIB_CFLAGS} ${CAJA_CFLAGS} ${COMMON_CFLAGS}")
9ea1d3d2 55+add_dependencies(caja-deja-dup deja) # needs DirHandling.c
c0d1c697
YS
56+install(TARGETS caja-deja-dup DESTINATION "${CAJA_EXTENSIONDIR}")
57+configure_file(libcaja-deja-dup.caja-extension.in
58+ libcaja-deja-dup.caja-extension @ONLY)
59+install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libcaja-deja-dup.caja-extension
60+ DESTINATION share/caja/extensions)
61+endif()
62--- origsrc/deja-dup-34.0/deja-dup/caja/libcaja-deja-dup.caja-extension.in 1969-12-31 18:00:00.000000000 -0600
63+++ src/deja-dup-34.0/deja-dup/caja/libcaja-deja-dup.caja-extension.in 2015-11-18 19:05:52.960464300 -0600
64@@ -0,0 +1,7 @@
65+[Caja Extension]
66+Icon=deja-dup
67+Name=Deja-Dup
68+Description=Restore or revert files from backups
69+Version=@VERSION@
70+Author=Michael Terry <mike@mterry.name>
71+Copyright=Copyright (C) 2004–2005 Free Software Foundation, Inc.\nCopyright (C) 2009–2011 Michael Terry <mike@mterry.name>
9ea1d3d2
YS
72--- origsrc/deja-dup-34.0/deja-dup/nemo/CMakeLists.txt 1969-12-31 18:00:00.000000000 -0600
73+++ src/deja-dup-34.0/deja-dup/nemo/CMakeLists.txt 2015-11-18 19:17:15.888685200 -0600
74@@ -0,0 +1,9 @@
75+if(ENABLE_NEMO)
76+add_library(nemo-deja-dup MODULE NemoExtension.c)
77+target_link_libraries(nemo-deja-dup ${GLIB_LDFLAGS} ${NEMO_LDFLAGS})
78+set_target_properties(nemo-deja-dup PROPERTIES
79+ INCLUDE_DIRECTORIES "${CMAKE_BINARY_DIR}/libdeja"
80+ COMPILE_FLAGS "${GLIB_CFLAGS} ${NEMO_CFLAGS} ${COMMON_CFLAGS}")
81+add_dependencies(nemo-deja-dup deja) # needs DirHandling.c
82+install(TARGETS nemo-deja-dup DESTINATION "${NEMO_EXTENSIONDIR}")
83+endif()
This page took 0.061413 seconds and 5 git commands to generate.