commit:     bfae5e760772730a6d7c66c5eaeb51f9e240ee39
Author:     Philipp Rösner <rndxelement <AT> protonmail <DOT> com>
AuthorDate: Sun Jul 24 21:15:42 2022 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Thu Aug  4 07:25:34 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bfae5e76

media-sound/flacon: fix compressed man pages on 9.0.0

The Makefile contained instructions for installing gzip
compressed man pages to certain locations, which
resulted in the QA error: "
 * QA Notice: One or more compressed files were found in docompress-ed
 * directories. Please fix the ebuild not to install compressed files
 * (manpages, documentation) when automatic compression is used:
 *
 *   /usr/share/man/man1/flacon.1.gz
"
Installing the uncompressed version of flacon.1 fixes the issue.

Closes: https://bugs.gentoo.org/831605
Signed-off-by: Philipp Rösner <rndxelement <AT> protonmail.com>
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 .../flacon/files/flacon-9.0.0-no-man-compress.patch | 21 +++++++++++++++++++++
 media-sound/flacon/flacon-9.0.0.ebuild              |  4 ++++
 2 files changed, 25 insertions(+)

diff --git a/media-sound/flacon/files/flacon-9.0.0-no-man-compress.patch 
b/media-sound/flacon/files/flacon-9.0.0-no-man-compress.patch
new file mode 100644
index 000000000000..6ceff9bda276
--- /dev/null
+++ b/media-sound/flacon/files/flacon-9.0.0-no-man-compress.patch
@@ -0,0 +1,21 @@
+diff --git a/CMakeLists.txt.oirg b/CMakeLists.txt
+index f143d91..fd16a9b 100644
+--- a/CMakeLists.txt.oirg
++++ b/CMakeLists.txt
+@@ -302,14 +302,14 @@ if(${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
+     set_target_properties(${PROJECT_NAME} PROPERTIES OUTPUT_NAME "Flacon")
+     install(TARGETS ${PROJECT_NAME} RUNTIME                 DESTINATION 
Flacon.app/Contents/MacOS)
+     install(FILES   ${QM_FILES}                             DESTINATION 
Flacon.app/Contents/translations)
+-    install(FILES   ${CMAKE_CURRENT_BINARY_DIR}/flacon.1.gz DESTINATION 
Flacon.app/Contents/Resources)
++    install(FILES   ${CMAKE_CURRENT_BINARY_DIR}/flacon.1 DESTINATION 
Flacon.app/Contents/Resources)
+     install(FILES   ${CMAKE_CURRENT_BINARY_DIR}/Info.plist  DESTINATION 
Flacon.app/Contents)
+     install(FILES   images/mainicon/Flacon.icns             DESTINATION 
Flacon.app/Contents/Resources)
+ 
+ else()
+     install(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION bin)
+     install(FILES   ${QM_FILES}             DESTINATION ${TRANSLATIONS_DIR})
+-    install(FILES ${CMAKE_CURRENT_BINARY_DIR}/flacon.1.gz DESTINATION 
share/man/man1)
++    install(FILES ${CMAKE_CURRENT_BINARY_DIR}/flacon.1 DESTINATION 
share/man/man1)
+ 
+     install(FILES   ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.desktop       
 DESTINATION "share/applications")
+     install(FILES   
${CMAKE_CURRENT_BINARY_DIR}/com.github.Flacon.metainfo.xml DESTINATION 
"share/metainfo")

diff --git a/media-sound/flacon/flacon-9.0.0.ebuild 
b/media-sound/flacon/flacon-9.0.0.ebuild
index ed4cffb9c113..6de27bcb88a1 100644
--- a/media-sound/flacon/flacon-9.0.0.ebuild
+++ b/media-sound/flacon/flacon-9.0.0.ebuild
@@ -40,6 +40,10 @@ DEPEND="${RDEPEND}
        )
 "
 
+PATCHES=(
+       "${FILESDIR}"/${PN}-9.0.0-no-man-compress.patch
+)
+
 RESTRICT="!test? ( test )"
 
 pkg_pretend() {

Reply via email to