[Pkg-privacy-commits] [irssi-plugin-otr] 28/267: introduced cmake DOCDIR variable.

Ximin Luo infinity0 at moszumanska.debian.org
Sat Aug 22 12:41:24 UTC 2015


This is an automated email from the git hooks/post-receive script.

infinity0 pushed a commit to branch debian
in repository irssi-plugin-otr.

commit 2fc3ab51650015f0002b82575edc39a94eaf6861
Author: Uli Meis <a.sporto+bee at gmail.com>
Date:   Mon Jul 14 13:16:30 2008 +0200

    introduced cmake DOCDIR variable.
---
 CMakeLists.txt      | 8 +++++++-
 Packaging-DEB.cmake | 2 +-
 Packaging-RPM.cmake | 2 +-
 Packaging.cmake     | 2 +-
 4 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9163af8..19a3fe9 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -173,6 +173,12 @@ MESSAGE(STATUS "This is a ${CMAKE_BUILD_TYPE} build")
 
 ADD_DEFINITIONS(-DHAVE_CONFIG_H -Wall)
 
+# docdir
+
+IF(NOT DOCDIR)
+  SET(DOCDIR share/doc/${CMAKE_PROJECT_NAME})
+ENDIF(NOT DOCDIR)
+
 # generate otr-formats.{c,h}
 
 ADD_CUSTOM_COMMAND(OUTPUT ${PROJECT_BINARY_DIR}/otr-formats.c 
@@ -203,5 +209,5 @@ ELSEIF(CMAKE_INSTALL_TYPE MATCHES "home")
   INSTALL(TARGETS otr DESTINATION "$ENV{HOME}/.irssi/modules")
 ELSE(CMAKE_INSTALL_TYPE MATCHES "package-.*")
   INSTALL(TARGETS otr DESTINATION lib/irssi/modules)
-  INSTALL(FILES README LICENSE DESTINATION share/doc/${CMAKE_PROJECT_NAME})
+  INSTALL(FILES README LICENSE DESTINATION ${DOCDIR})
 ENDIF(CMAKE_INSTALL_TYPE MATCHES "package-.*")
diff --git a/Packaging-DEB.cmake b/Packaging-DEB.cmake
index 8374034..9d61982 100644
--- a/Packaging-DEB.cmake
+++ b/Packaging-DEB.cmake
@@ -1,5 +1,5 @@
 INSTALL(TARGETS otr DESTINATION lib/irssi/modules)
-INSTALL(FILES README LICENSE DESTINATION share/doc/${CMAKE_PROJECT_NAME})
+INSTALL(FILES README LICENSE DESTINATION ${DOCDIR})
 
 SET(CPACK_GENERATOR DEB)
 #SET(CPACK_DEBIAN_PACKAGE_ARCHITECTURE "amd64")
diff --git a/Packaging-RPM.cmake b/Packaging-RPM.cmake
index 3fe2295..240c1e2 100644
--- a/Packaging-RPM.cmake
+++ b/Packaging-RPM.cmake
@@ -1,5 +1,5 @@
 INSTALL(TARGETS otr DESTINATION lib/irssi/modules)
-INSTALL(FILES README DESTINATION share/doc/${CMAKE_PROJECT_NAME})
+INSTALL(FILES README DESTINATION ${DOCDIR})
 
 SET(CPACK_GENERATOR RPM)
 SET(CPACK_RPM_PACKAGE_DEBUG)
diff --git a/Packaging.cmake b/Packaging.cmake
index 678e06a..b572b16 100644
--- a/Packaging.cmake
+++ b/Packaging.cmake
@@ -22,7 +22,7 @@ ELSEIF(CMAKE_INSTALL_TYPE STREQUAL "package-deb")
   INCLUDE(Packaging-DEB.cmake)
 ELSEIF(CMAKE_INSTALL_TYPE STREQUAL "package-tgz")
   INSTALL(TARGETS otr DESTINATION irssi/lib/modules)
-  INSTALL(FILES README LICENSE DESTINATION share/doc/${CMAKE_PROJECT_NAME})
+  INSTALL(FILES README LICENSE DESTINATION ${DOCDIR})
 ELSE(CMAKE_INSTALL_TYPE STREQUAL "package-rpm")
   MESSAGE(FATAL_ERROR "Unknown build type '${CMAKE_INSTALL_TYPE}'")
 ENDIF(CMAKE_INSTALL_TYPE STREQUAL "package-rpm")

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/irssi-plugin-otr.git



More information about the Pkg-privacy-commits mailing list