diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2020-06-08 11:49:02 +0200 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2020-06-08 11:52:08 +0200 |
commit | c05a769bc379f7a452545d522defc8aba511b86f (patch) | |
tree | 20d6c11173f177033ec493874ec1e31304f8f3bc /media-sound/qastools | |
parent | media-sound/qastools: 0.22.0 version bump, EAPI-7 bump, Qt 5.15 fix (diff) | |
download | gentoo-c05a769bc379f7a452545d522defc8aba511b86f.tar.gz gentoo-c05a769bc379f7a452545d522defc8aba511b86f.tar.bz2 gentoo-c05a769bc379f7a452545d522defc8aba511b86f.zip |
media-sound/qastools: Don't compress manpages
Package-Manager: Portage-2.3.100, Repoman-2.3.22
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'media-sound/qastools')
-rw-r--r-- | media-sound/qastools/files/qastools-0.22.0-nomancompress.patch | 169 | ||||
-rw-r--r-- | media-sound/qastools/qastools-0.22.0.ebuild | 6 |
2 files changed, 174 insertions, 1 deletions
diff --git a/media-sound/qastools/files/qastools-0.22.0-nomancompress.patch b/media-sound/qastools/files/qastools-0.22.0-nomancompress.patch new file mode 100644 index 000000000000..49756a91b4c0 --- /dev/null +++ b/media-sound/qastools/files/qastools-0.22.0-nomancompress.patch @@ -0,0 +1,169 @@ +From 58649d44b4f1362c8fe5f88828be97e10b4fc00b Mon Sep 17 00:00:00 2001 +From: Andreas Sturmlechner <asturm@gentoo.org> +Date: Mon, 8 Jun 2020 11:45:09 +0200 +Subject: [PATCH] Compress manpages optionally + +--- + qasconfig/share/man/CMakeLists.txt | 24 ++++++++++++------------ + qashctl/share/man/CMakeLists.txt | 26 +++++++++++++------------- + qasmixer/share/man/CMakeLists.txt | 24 ++++++++++++------------ + 3 files changed, 37 insertions(+), 37 deletions(-) + +diff --git a/qasconfig/share/man/CMakeLists.txt b/qasconfig/share/man/CMakeLists.txt +index 083ca91..628be1b 100644 +--- a/qasconfig/share/man/CMakeLists.txt ++++ b/qasconfig/share/man/CMakeLists.txt +@@ -1,27 +1,27 @@ + # Find gzip +-FIND_PACKAGE ( UnixCommands REQUIRED ) +- +-IF ( NOT GZIP ) +- MESSAGE ( FATAL_ERROR "Unable to find 'gzip' program" ) +-ENDIF ( NOT GZIP ) +- ++FIND_PACKAGE ( UnixCommands ) + + # Configure manpages + + SET ( man_src ${CMAKE_CURRENT_SOURCE_DIR}/manpage.1.cmake ) + SET ( man_plain ${CMAKE_CURRENT_BINARY_DIR}/manpage.1 ) +-SET ( man_gz ${CMAKE_CURRENT_BINARY_DIR}/manpage.1.gz ) ++SET ( man_gz .gz ) + + CONFIGURE_FILE ( ${man_src} ${man_plain} ) + + + # Compress manpages + ++IF ( NOT GZIP ) ++ MESSAGE ( STATUS "Unable to find 'gzip' program, not compressing manpage" ) ++ SET ( man_gz "" ) ++ELSE() + ADD_CUSTOM_COMMAND ( +- OUTPUT ${man_gz} +- COMMAND ${GZIP} -c -9 ${man_plain} > ${man_gz} ++ OUTPUT ${man_plain}${man_gz} ++ COMMAND ${GZIP} -c -9 ${man_plain} > ${man_plain}${man_gz} + DEPENDS ${man_plain} +- COMMENT "Building ${man_gz}" ) ++ COMMENT "Building ${man_plain}${man_gz}" ) ++ENDIF() + + ADD_CUSTOM_TARGET ( + qasconfig_manpage ALL +@@ -30,6 +30,6 @@ ADD_CUSTOM_TARGET ( + + # Installation of the manpage + +-INSTALL ( FILES ${man_gz} ++INSTALL ( FILES ${man_plain}${man_gz} + DESTINATION ${INSTALL_DIR_MAN} +- RENAME ${PROGRAM_NAME}.1.gz ) ++ RENAME ${PROGRAM_NAME}.1${man_gz} ) +diff --git a/qashctl/share/man/CMakeLists.txt b/qashctl/share/man/CMakeLists.txt +index 911ea43..5f6ba15 100644 +--- a/qashctl/share/man/CMakeLists.txt ++++ b/qashctl/share/man/CMakeLists.txt +@@ -1,35 +1,35 @@ + # Find gzip +-FIND_PACKAGE ( UnixCommands REQUIRED ) +- +-IF ( NOT GZIP ) +- MESSAGE ( FATAL_ERROR "Unable to find 'gzip' program" ) +-ENDIF ( NOT GZIP ) +- ++FIND_PACKAGE ( UnixCommands ) + + # Configure manpages + + SET ( man_src ${CMAKE_CURRENT_SOURCE_DIR}/manpage.1.cmake ) + SET ( man_plain ${CMAKE_CURRENT_BINARY_DIR}/manpage.1 ) +-SET ( man_gz ${CMAKE_CURRENT_BINARY_DIR}/manpage.1.gz ) ++SET ( man_gz .gz ) + + CONFIGURE_FILE ( ${man_src} ${man_plain} ) + + + # Compress manpages + ++IF ( NOT GZIP ) ++ MESSAGE ( STATUS "Unable to find 'gzip' program, not compressing manpage" ) ++ SET ( man_gz "" ) ++ELSE() + ADD_CUSTOM_COMMAND ( +- OUTPUT ${man_gz} +- COMMAND ${GZIP} -c -9 ${man_plain} > ${man_gz} ++ OUTPUT ${man_plain}${man_gz} ++ COMMAND ${GZIP} -c -9 ${man_plain} > ${man_plain}${man_gz} + DEPENDS ${man_plain} +- COMMENT "Building ${man_gz}" ) ++ COMMENT "Building ${man_plain}${man_gz}" ) ++ENDIF() + + ADD_CUSTOM_TARGET ( + qashctl_manpage ALL +- DEPENDS ${man_gz} ) ++ DEPENDS ${man_plain}${man_gz} ) + + + # Installation of the manpage + +-INSTALL ( FILES ${man_gz} ++INSTALL ( FILES ${man_plain}${man_gz} + DESTINATION ${INSTALL_DIR_MAN} +- RENAME ${PROGRAM_NAME}.1.gz ) ++ RENAME ${PROGRAM_NAME}.1${man_gz} ) +diff --git a/qasmixer/share/man/CMakeLists.txt b/qasmixer/share/man/CMakeLists.txt +index 5aea9af..c2bd872 100644 +--- a/qasmixer/share/man/CMakeLists.txt ++++ b/qasmixer/share/man/CMakeLists.txt +@@ -1,27 +1,27 @@ + # Find gzip +-FIND_PACKAGE ( UnixCommands REQUIRED ) +- +-IF ( NOT GZIP ) +- MESSAGE ( FATAL_ERROR "Unable to find 'gzip' program" ) +-ENDIF ( NOT GZIP ) +- ++FIND_PACKAGE ( UnixCommands ) + + # Configure manpages + + SET ( man_src ${CMAKE_CURRENT_SOURCE_DIR}/manpage.1.cmake ) + SET ( man_plain ${CMAKE_CURRENT_BINARY_DIR}/manpage.1 ) +-SET ( man_gz ${CMAKE_CURRENT_BINARY_DIR}/manpage.1.gz ) ++SET ( man_gz .gz ) + + CONFIGURE_FILE ( ${man_src} ${man_plain} ) + + + # Compress manpages + ++IF ( NOT GZIP ) ++ MESSAGE ( STATUS "Unable to find 'gzip' program, not compressing manpage" ) ++ SET ( man_gz "" ) ++ELSE() + ADD_CUSTOM_COMMAND ( +- OUTPUT ${man_gz} +- COMMAND ${GZIP} -c -9 ${man_plain} > ${man_gz} ++ OUTPUT ${man_plain}${man_gz} ++ COMMAND ${GZIP} -c -9 ${man_plain} > ${man_plain}${man_gz} + DEPENDS ${man_plain} +- COMMENT "Building ${man_gz}" ) ++ COMMENT "Building ${man_plain}${man_gz}" ) ++ENDIF() + + ADD_CUSTOM_TARGET ( + qasmixer_manpage ALL +@@ -30,6 +30,6 @@ ADD_CUSTOM_TARGET ( + + # Installation of the manpage + +-INSTALL ( FILES ${man_gz} ++INSTALL ( FILES ${man_plain}${man_gz} + DESTINATION ${INSTALL_DIR_MAN} +- RENAME ${PROGRAM_NAME}.1.gz ) ++ RENAME ${PROGRAM_NAME}.1${man_gz} ) +-- +2.27.0 + diff --git a/media-sound/qastools/qastools-0.22.0.ebuild b/media-sound/qastools/qastools-0.22.0.ebuild index 9867792640f0..040661446193 100644 --- a/media-sound/qastools/qastools-0.22.0.ebuild +++ b/media-sound/qastools/qastools-0.22.0.ebuild @@ -28,13 +28,17 @@ RDEPEND=" " DEPEND="${RDEPEND}" -PATCHES=( "${FILESDIR}/${P}-qt-5.15.patch" ) +PATCHES=( + "${FILESDIR}/${P}-qt-5.15.patch" + "${FILESDIR}/${P}-nomancompress.patch" +) S="${WORKDIR}"/${PN}-v${PV} src_configure() { local mycmakeargs=( -DSKIP_LICENSE_INSTALL=ON + -DCMAKE_DISABLE_FIND_PACKAGE_UnixCommands=ON ) cmake_src_configure } |