919cf2574a448705388c8a830c0daa48e8cca57a
[git/cygwin-packages/deja-dup.git] / 03-caja-extension.patch
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
3 @@ -25,6 +25,7 @@ include(DejaDupMacros)
4
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)
8 deja_option(ENABLE_UNITY "Integrate with Unity" CHECK)
9 deja_option(ENABLE_UNITY_CCPANEL "Build unity-control-center panel" CHECK)
10
11 @@ -53,6 +54,14 @@ if(ENABLE_NAUTILUS)
12 OUTPUT_STRIP_TRAILING_WHITESPACE
13 ERROR_QUIET)
14 endif()
15 +
16 +deja_enable_option(CAJA libcaja-extension)
17 +if(ENABLE_CAJA)
18 + execute_process(COMMAND ${PKG_CONFIG_EXECUTABLE} --variable=extensiondir libcaja-extension
19 + OUTPUT_VARIABLE CAJA_EXTENSIONDIR
20 + OUTPUT_STRIP_TRAILING_WHITESPACE
21 + ERROR_QUIET)
22 +endif()
23
24 deja_enable_option(UNITY_CCPANEL libunity-control-center)
25 if(ENABLE_UNITY_CCPANEL)
26 --- origsrc/deja-dup-32.0/deja-dup/CMakeLists.txt 2014-05-02 11:47:15.000000000 -0500
27 +++ src/deja-dup-32.0/deja-dup/CMakeLists.txt 2015-06-24 17:21:33.982746100 -0500
28 @@ -50,6 +50,7 @@ install(DIRECTORY ui DESTINATION "${PKG_
29 add_subdirectory(help)
30 add_subdirectory(monitor)
31 add_subdirectory(nautilus)
32 +add_subdirectory(caja)
33 add_subdirectory(preferences)
34 add_subdirectory(tests)
35 add_subdirectory(widgets)
36 --- origsrc/deja-dup-34.0/deja-dup/caja/CMakeLists.txt 1969-12-31 18:00:00.000000000 -0600
37 +++ src/deja-dup-34.0/deja-dup/caja/CMakeLists.txt 2015-11-18 19:17:15.888685200 -0600
38 @@ -0,0 +1,12 @@
39 +if(ENABLE_CAJA)
40 +add_library(caja-deja-dup MODULE CajaExtension.c)
41 +target_link_libraries(caja-deja-dup ${GLIB_LDFLAGS} ${CAJA_LDFLAGS})
42 +set_target_properties(caja-deja-dup PROPERTIES
43 + INCLUDE_DIRECTORIES "${CMAKE_BINARY_DIR}/libdeja"
44 + COMPILE_FLAGS "${GLIB_CFLAGS} ${CAJA_CFLAGS} ${COMMON_CFLAGS}")
45 +install(TARGETS caja-deja-dup DESTINATION "${CAJA_EXTENSIONDIR}")
46 +configure_file(libcaja-deja-dup.caja-extension.in
47 + libcaja-deja-dup.caja-extension @ONLY)
48 +install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libcaja-deja-dup.caja-extension
49 + DESTINATION share/caja/extensions)
50 +endif()
51 --- origsrc/deja-dup-34.0/deja-dup/caja/libcaja-deja-dup.caja-extension.in 1969-12-31 18:00:00.000000000 -0600
52 +++ src/deja-dup-34.0/deja-dup/caja/libcaja-deja-dup.caja-extension.in 2015-11-18 19:05:52.960464300 -0600
53 @@ -0,0 +1,7 @@
54 +[Caja Extension]
55 +Icon=deja-dup
56 +Name=Deja-Dup
57 +Description=Restore or revert files from backups
58 +Version=@VERSION@
59 +Author=Michael Terry <mike@mterry.name>
60 +Copyright=Copyright (C) 2004–2005 Free Software Foundation, Inc.\nCopyright (C) 2009–2011 Michael Terry <mike@mterry.name>
This page took 0.035973 seconds and 4 git commands to generate.