]> git.sven.stormbind.net Git - sven/vym.git/blob - debian/patches/cmake-installs.patch
Use cmakes install directory with a trailing slash
[sven/vym.git] / debian / patches / cmake-installs.patch
1 Description: Install doc folder content selectively and do not install
2  the superfluous license file.
3 Author: Sven Hoexter <hoexter@debian.org>
4 Last-Update: 2024-05-03
5 Forwarded: not-needed
6 Index: vym/CMakeLists.txt
7 ===================================================================
8 --- vym.orig/CMakeLists.txt
9 +++ vym/CMakeLists.txt
10 @@ -160,9 +160,9 @@ add_custom_target(make-translations-dire
11  add_dependencies(vym make-translations-directory)
12  
13  install(DIRECTORY demos DESTINATION ${CMAKE_INSTALL_DATAROOTDIR})
14 -install(DIRECTORY doc DESTINATION ${CMAKE_INSTALL_DOCDIR})
15 +install(DIRECTORY doc/ DESTINATION ${CMAKE_INSTALL_DOCDIR} FILES_MATCHING PATTERN "*.pdf")
16  install(FILES doc/vym.1.gz DESTINATION ${CMAKE_INSTALL_MANDIR})
17 -install(FILES README.md LICENSE.txt DESTINATION ${CMAKE_INSTALL_DOCDIR})
18 +install(FILES README.md DESTINATION ${CMAKE_INSTALL_DOCDIR})
19  install(DIRECTORY exports flags icons macros ${CMAKE_BINARY_DIR}/translations scripts styles DESTINATION ${CMAKE_INSTALL_DATAROOTDIR})
20  
21  if(UNIX)