[latexila] CMake: option to change the man page directory
- From: SÃbastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [latexila] CMake: option to change the man page directory
- Date: Fri, 6 Jul 2012 00:31:26 +0000 (UTC)
commit b5cb15f3f44cc006dc96653221d4b8cec62bd71c
Author: SÃbastien Wilmet <swilmet src gnome org>
Date: Fri Jul 6 02:28:53 2012 +0200
CMake: option to change the man page directory
This will avoid a patch in the OpenBSD port.
CMakeLists.txt | 2 ++
INSTALL | 18 +++++++++++++++++-
man/CMakeLists.txt | 2 +-
3 files changed, 20 insertions(+), 2 deletions(-)
---
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d5235f8..cef693d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -18,6 +18,8 @@ include ("${latexila_SOURCE_DIR}/cmake/build_vala.cmake")
# Build options
set (DATA_DIR "${CMAKE_INSTALL_PREFIX}/share/latexila"
CACHE PATH "The directory where the data is")
+set (MAN_DIR "${CMAKE_INSTALL_PREFIX}/share/man/man1"
+ CACHE PATH "The directory where the man page is")
set (BUILD_VALA ON CACHE BOOL "Generate the C code from Vala files")
set (WITH_GNOME OFF CACHE BOOL
"Use gsettings-desktop-schemas for a better integration with GNOME")
diff --git a/INSTALL b/INSTALL
index 5d6635d..4968041 100644
--- a/INSTALL
+++ b/INSTALL
@@ -52,7 +52,7 @@ $ xargs rm < install_manifest.txt
Configuration
=============
-* Change the install directory
+* Change the install prefix directory
Default value: /usr/local/
@@ -60,6 +60,22 @@ Configuration
-DCMAKE_INSTALL_PREFIX=/path/to/install/directory/
+* Change the data directory
+
+ Default value: CMAKE_INSTALL_PREFIX/share/latexila/
+
+ Run cmake with this option:
+ -DDATA_DIR=/path/to/data/directory/
+
+
+* Change the man page directory
+
+ Default value: CMAKE_INSTALL_PREFIX/share/man/man1/
+
+ Run cmake with this option:
+ -DMAN_DIR=/path/to/man/directory/
+
+
* Generate the C code from the Vala files
Default value: OFF in tarballs; ON in Git.
diff --git a/man/CMakeLists.txt b/man/CMakeLists.txt
index dec6642..5b2ca61 100644
--- a/man/CMakeLists.txt
+++ b/man/CMakeLists.txt
@@ -1 +1 @@
-install (FILES latexila.1 DESTINATION share/man/man1)
+install (FILES latexila.1 DESTINATION ${MAN_DIR})
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]