Ticket #45317: baloo_file-make-agent.patch

File baloo_file-make-agent.patch, 2.3 KB (added by RJVB (René Bertin), 10 years ago)
  • src/file/CMakeLists.txt

    diff --git src/file/CMakeLists.txt src/file/CMakeLists.txt
    index 49a34dd..262e45f 100644
    target_link_libraries(baloo_file 
    5959    balooxapian
    6060)
    6161
     62if (APPLE)
     63    set_target_properties(baloo_file PROPERTIES MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/Info.plist.template)
     64    set_target_properties(baloo_file PROPERTIES MACOSX_BUNDLE_GUI_IDENTIFIER "org.kde.baloo.file")
     65    set_target_properties(baloo_file PROPERTIES MACOSX_BUNDLE_BUNDLE_NAME "KDE Baloo File Daemon service")
     66endif (APPLE)
     67
    6268install(TARGETS baloo_file ${INSTALL_TARGETS_DEFAULT_ARGS})
    6369install(FILES baloo_file.desktop DESTINATION ${AUTOSTART_INSTALL_DIR})
    6470install(FILES org.kde.baloo.file.indexer.xml DESTINATION ${DBUS_INTERFACES_INSTALL_DIR})
  • new file src/file/Info.plist.template

    diff --git src/file/Info.plist.template src/file/Info.plist.template
    new file mode 100644
    index 0000000..c39ddb9
    - +  
     1<?xml version="1.0" encoding="UTF-8"?>
     2<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
     3<plist version="1.0">
     4<dict>
     5    <key>CFBundleDevelopmentRegion</key>
     6    <string>English</string>
     7    <key>CFBundleExecutable</key>
     8    <string>${MACOSX_BUNDLE_EXECUTABLE_NAME}</string>
     9    <key>CFBundleGetInfoString</key>
     10    <string>${MACOSX_BUNDLE_INFO_STRING}</string>
     11    <key>CFBundleIconFile</key>
     12    <string>${MACOSX_BUNDLE_ICON_FILE}</string>
     13    <key>CFBundleIdentifier</key>
     14    <string>${MACOSX_BUNDLE_GUI_IDENTIFIER}</string>
     15    <key>CFBundleInfoDictionaryVersion</key>
     16    <string>6.0</string>
     17    <key>CFBundleLongVersionString</key>
     18    <string>${MACOSX_BUNDLE_LONG_VERSION_STRING}</string>
     19    <key>CFBundleName</key>
     20    <string>${MACOSX_BUNDLE_BUNDLE_NAME}</string>
     21    <key>CFBundlePackageType</key>
     22    <string>APPL</string>
     23    <key>CFBundleShortVersionString</key>
     24    <string>${MACOSX_BUNDLE_SHORT_VERSION_STRING}</string>
     25    <key>CFBundleVersion</key>
     26    <string>${MACOSX_BUNDLE_BUNDLE_VERSION}</string>
     27    <key>CSResourcesFileMapped</key>
     28    <true/>
     29    <key>LSRequiresCarbon</key>
     30    <true/>
     31    <key>LSUIElement</key>
     32    <string>1</string>
     33    <key>NSHumanReadableCopyright</key>
     34    <string>${MACOSX_BUNDLE_COPYRIGHT}</string>
     35</dict>
     36</plist>