pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/emulators/mgba mgba: Install .desktop file without nee...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6850e68abd55
branches:  trunk
changeset: 335135:6850e68abd55
user:      nia <nia%pkgsrc.org@localhost>
date:      Thu Jun 13 19:12:44 2019 +0000

description:
mgba: Install .desktop file without needing desktop-file-install(1).

diffstat:

 emulators/mgba/Makefile                                     |   3 +-
 emulators/mgba/distinfo                                     |   3 +-
 emulators/mgba/patches/patch-src_platform_qt_CMakeLists.txt |  18 +++++++++++++
 3 files changed, 22 insertions(+), 2 deletions(-)

diffs (49 lines):

diff -r 8b4d91c6aa38 -r 6850e68abd55 emulators/mgba/Makefile
--- a/emulators/mgba/Makefile   Thu Jun 13 19:06:30 2019 +0000
+++ b/emulators/mgba/Makefile   Thu Jun 13 19:12:44 2019 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.1 2019/06/08 22:46:03 nia Exp $
+# $NetBSD: Makefile,v 1.2 2019/06/13 19:12:44 nia Exp $
 
 DISTNAME=      mgba-0.7.2
+PKGREVISION=   1
 CATEGORIES=    emulators
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=mgba-emu/}
 
diff -r 8b4d91c6aa38 -r 6850e68abd55 emulators/mgba/distinfo
--- a/emulators/mgba/distinfo   Thu Jun 13 19:06:30 2019 +0000
+++ b/emulators/mgba/distinfo   Thu Jun 13 19:12:44 2019 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.1 2019/06/08 22:46:03 nia Exp $
+$NetBSD: distinfo,v 1.2 2019/06/13 19:12:44 nia Exp $
 
 SHA1 (mgba-0.7.2.tar.gz) = 342b40efa743f9966ad0e9d3448a8d3f4314c008
 RMD160 (mgba-0.7.2.tar.gz) = 0ad8a97d1307bad71b13d12ee0d8c7bbb2599117
@@ -7,4 +7,5 @@
 SHA1 (patch-CMakeLists.txt) = f0b106e75cd2697fe81c7b962159cfa5ed4c6681
 SHA1 (patch-include_mgba-util_math.h) = 448ca1bb3bbe2812e7d9482917c488ddcf3b48f0
 SHA1 (patch-include_mgba-util_platform_posix_threading.h) = c5c737be68340e3571934d43bf0c6eab8bc34978
+SHA1 (patch-src_platform_qt_CMakeLists.txt) = e8adb538c1319d6a5c380aa091aa3b10e3ed29e7
 SHA1 (patch-version.cmake) = 7d6d44febe7bb0ff2231452f037def7cb3782e21
diff -r 8b4d91c6aa38 -r 6850e68abd55 emulators/mgba/patches/patch-src_platform_qt_CMakeLists.txt
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/mgba/patches/patch-src_platform_qt_CMakeLists.txt       Thu Jun 13 19:12:44 2019 +0000
@@ -0,0 +1,18 @@
+$NetBSD: patch-src_platform_qt_CMakeLists.txt,v 1.1 2019/06/13 19:12:44 nia Exp $
+
+Install .desktop file without needing desktop-file-install.
+
+--- src/platform/qt/CMakeLists.txt.orig        2019-05-25 22:51:44.000000000 +0000
++++ src/platform/qt/CMakeLists.txt
+@@ -298,10 +298,7 @@ install(TARGETS ${BINARY_NAME}-qt
+       RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT ${BINARY_NAME}-qt
+       BUNDLE DESTINATION Applications COMPONENT ${BINARY_NAME}-qt)
+ if(UNIX AND NOT APPLE)
+-      find_program(DESKTOP_FILE_INSTALL desktop-file-install)
+-      if(DESKTOP_FILE_INSTALL)
+-              install(CODE "execute_process(COMMAND ${DESKTOP_FILE_INSTALL} \"${CMAKE_SOURCE_DIR}/res/mgba-qt.desktop\" --dir 
\"\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DATADIR}/applications/\")" COMPONENT ${BINARY_NAME}-qt)
+-      endif()
++      install(FILES ${CMAKE_SOURCE_DIR}/res/mgba-qt.desktop DESTINATION ${CMAKE_INSTALL_DATADIR}/applications COMPONENT ${BINARY_NAME}-qt)
+ endif()
+ if(UNIX)
+       install(FILES ${CMAKE_SOURCE_DIR}/doc/mgba-qt.6 DESTINATION ${MANDIR}/man6 COMPONENT ${BINARY_NAME}-qt)



Home | Main Index | Thread Index | Old Index