summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2017-08-19 00:21:43 +0000
committerjlam <jlam@pkgsrc.org>2017-08-19 00:21:43 +0000
commitee3610171f7301e43c26f7a64554d34b7cb2399d (patch)
tree799e9f7d9756a4bf72aeb9fef385a9ccafda567a /games
parent6626c957775c3bb8c385ff98dd7dea1be077ff5f (diff)
downloadpkgsrc-ee3610171f7301e43c26f7a64554d34b7cb2399d.tar.gz
games/lgogdownloader: Install manpages into ${PKGMANDIR}.
This package uses CMake to configure the software. Include the GNUInstallDirs CMake module to define CMAKE_INSTALL_<dir> macros, and use CMAKE_INSTALL_MANDIR as the location for the installed manpages. The correct environment variables are passed so that ${CMAKE_INSTALL_MANDIR} points into ${PKGMANDIR}.
Diffstat (limited to 'games')
-rw-r--r--games/lgogdownloader/distinfo3
-rw-r--r--games/lgogdownloader/patches/patch-man_CMakeLists.txt22
2 files changed, 24 insertions, 1 deletions
diff --git a/games/lgogdownloader/distinfo b/games/lgogdownloader/distinfo
index 2b527d9ea41..3aa0779479d 100644
--- a/games/lgogdownloader/distinfo
+++ b/games/lgogdownloader/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.23 2017/03/12 07:24:06 wiz Exp $
+$NetBSD: distinfo,v 1.24 2017/08/19 00:21:43 jlam Exp $
SHA1 (lgogdownloader-3.2.tar.gz) = 70f0878039cc53c4399b4b6f7676695f690b63fa
RMD160 (lgogdownloader-3.2.tar.gz) = adcda81a02614c27e70dee5f82b331b67eb9ba83
SHA512 (lgogdownloader-3.2.tar.gz) = b1d8d89b303c77e17601b19e09346b8d632bc049d40741442ad88646d8764e4efd3a04edcbcae5a5e098df3251ae88d15d355d06cbb03cf313a8619d3111ff35
Size (lgogdownloader-3.2.tar.gz) = 68438 bytes
+SHA1 (patch-man_CMakeLists.txt) = 2109d1d0c4b16920c6fb22a2b47cdb5d52b0556a
diff --git a/games/lgogdownloader/patches/patch-man_CMakeLists.txt b/games/lgogdownloader/patches/patch-man_CMakeLists.txt
new file mode 100644
index 00000000000..ee920993d27
--- /dev/null
+++ b/games/lgogdownloader/patches/patch-man_CMakeLists.txt
@@ -0,0 +1,22 @@
+$NetBSD: patch-man_CMakeLists.txt,v 1.1 2017/08/19 00:21:43 jlam Exp $
+
+--- man/CMakeLists.txt.orig 2017-03-07 05:33:24.000000000 +0000
++++ man/CMakeLists.txt
+@@ -3,6 +3,8 @@ find_program(GZIP gzip DOC "Location of
+ mark_as_advanced(HELP2MAN)
+ mark_as_advanced(GZIP)
+
++include(GNUInstallDirs)
++
+ if(HELP2MAN AND GZIP)
+ set(H2M_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${PROJECT_NAME}.supplemental.groff)
+ set(MAN_PAGE ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.1)
+@@ -16,7 +18,7 @@ if(HELP2MAN AND GZIP)
+ VERBATIM
+ )
+ add_custom_target(manpage ALL DEPENDS ${MAN_FILE} ${PROJECT_NAME})
+- install(FILES ${MAN_FILE} DESTINATION ${INSTALL_SHARE_DIR}/man/man1)
++ install(FILES ${MAN_FILE} DESTINATION ${CMAKE_INSTALL_MANDIR}/man1)
+ else(HELP2MAN AND GZIP)
+ message("WARNING: One of the following is missing: help2man, gzip; man page will not be generated")
+ endif(HELP2MAN AND GZIP)