commit:     e36f48365e7a3ae01799784d475d73b81d45aed8
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 10 12:21:01 2024 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sun Nov 10 12:21:01 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e36f4836

games-util/grfcodec: fix cmake install

Signed-off-by: David Seifert <soap <AT> gentoo.org>

 .../files/grfcodec-6.1.0-cmake-install.patch        | 21 +++++++++++++++++++++
 ...fcodec-6.1.0.ebuild => grfcodec-6.1.0-r1.ebuild} |  8 ++------
 2 files changed, 23 insertions(+), 6 deletions(-)

diff --git a/games-util/grfcodec/files/grfcodec-6.1.0-cmake-install.patch 
b/games-util/grfcodec/files/grfcodec-6.1.0-cmake-install.patch
new file mode 100644
index 000000000000..f3524d3b6179
--- /dev/null
+++ b/games-util/grfcodec/files/grfcodec-6.1.0-cmake-install.patch
@@ -0,0 +1,21 @@
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -158,7 +158,6 @@
+ 
+ install(FILES
+       ${CMAKE_CURRENT_SOURCE_DIR}/changelog.txt
+-      ${CMAKE_CURRENT_SOURCE_DIR}/COPYING
+       DESTINATION ${CMAKE_INSTALL_DOCDIR}
+ )
+ 
+--- a/docs/CMakeLists.txt
++++ b/docs/CMakeLists.txt
+@@ -5,7 +5,7 @@
+       ${CMAKE_CURRENT_SOURCE_DIR}/grfid.1
+       ${CMAKE_CURRENT_SOURCE_DIR}/grfstrip.1
+       ${CMAKE_CURRENT_SOURCE_DIR}/nforenum.1
+-      DESTINATION ${CMAKE_INSTALL_MANDIR}
++      DESTINATION ${CMAKE_INSTALL_MANDIR}/man1
+ )
+ 
+ install(FILES

diff --git a/games-util/grfcodec/grfcodec-6.1.0.ebuild 
b/games-util/grfcodec/grfcodec-6.1.0-r1.ebuild
similarity index 82%
rename from games-util/grfcodec/grfcodec-6.1.0.ebuild
rename to games-util/grfcodec/grfcodec-6.1.0-r1.ebuild
index 9418544f1b63..ce2b664d42de 100644
--- a/games-util/grfcodec/grfcodec-6.1.0.ebuild
+++ b/games-util/grfcodec/grfcodec-6.1.0-r1.ebuild
@@ -18,12 +18,8 @@ DEPEND="${RDEPEND}
        dev-libs/boost"
 
 PATCHES=(
+       "${FILESDIR}"/${PN}-6.1.0-cmake-install.patch
+
        # Bug #894648
        "${FILESDIR}"/${PN}-6.0.6_p20230811-no-fortify-source.patch
 )
-
-src_install() {
-       dobin "${BUILD_DIR}"/{grfcodec,grfid,grfstrip,nforenum}
-       doman docs/*.1
-       dodoc changelog.txt docs/*.txt
-}

Reply via email to