summaryrefslogtreecommitdiff
path: root/x11-misc/projecteur/files/projecteur-0.9.1-dont-compress-manpage.patch
blob: e7c96648e0c79c50ab43da9e84dd24decb29dfa7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -223,14 +223,7 @@
 
 # Configure man page and gzip it.
 configure_file("${TMPLDIR}/projecteur.1" "projecteur.1" @ONLY)
-find_program(GZIP_EXECUTABLE gzip)
-add_custom_command(
-  OUTPUT ${OUTDIR}/projecteur.1.gz
-  COMMAND ${GZIP_EXECUTABLE} -9f -n "${OUTDIR}/projecteur.1"
-  WORKING_DIRECTORY ${OUTDIR}
-)
-add_custom_target(gzip-manpage ALL DEPENDS "${OUTDIR}/projecteur.1.gz")
-install(FILES "${OUTDIR}/projecteur.1.gz" DESTINATION share/man/man1/)
+install(FILES "${OUTDIR}/projecteur.1" DESTINATION share/man/man1/)
 
 configure_file("${TMPLDIR}/projecteur.metainfo.xml" "projecteur.metainfo.xml" @ONLY)
 install(FILES "${OUTDIR}/projecteur.metainfo.xml" DESTINATION share/metainfo/)
@@ -270,7 +263,7 @@
     # PREINST_SCRIPT "${OUTDIR}/pkg/scripts/preinst"
     POSTINST_SCRIPT "${OUTDIR}/pkg/scripts/postinst"
   )
-  add_dependencies(dist-package gzip-manpage projecteur)
+  add_dependencies(dist-package projecteur)
 
   # Additional files for debian packages, adhering to some debian rules,
   # see https://manpages.debian.org/buster/lintian/lintian.1.en.html