void-packages/srcpkgs/libqzeitgeist/patches/set-declarative-installation-dir.patch
2013-06-16 07:16:10 +02:00

14 lines
858 B
Diff

--- declarative/CMakeLists.txt~ 2012-01-28 10:55:56.178972521 +0000
+++ declarative/CMakeLists.txt 2012-01-28 10:57:29.601561527 +0000
@@ -14,7 +14,9 @@
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../src/)
automoc4_add_library(QZeitgeistDeclarativePlugin MODULE ${declarative_SRCS})
-target_link_libraries(QZeitgeistDeclarativePlugin ${QT_LIBRARIES} qzeitgeist)
+target_link_libraries(QZeitgeistDeclarativePlugin ${QT_QTDECLARATIVE_LIBRARIES} qzeitgeist)
-install(TARGETS QZeitgeistDeclarativePlugin DESTINATION lib${LIB_SUFFIX}/qt4/imports/org/gnome/zeitgeist)
+set(DECLARATIVE_IMPORT_PREFIX ${QT_IMPORTS_DIR} CACHE PATH "Location to install declarative bindings")
+
+install(TARGETS QZeitgeistDeclarativePlugin DESTINATION ${DECLARATIVE_IMPORT_PREFIX}/org/gnome/zeitgeist)
install(FILES qmldir DESTINATION ${QT_IMPORTS_DIR}/org/gnome/zeitgeist)