pkgsrc-Changes archive

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

CVS commit: pkgsrc/emulators/mgba



Module Name:    pkgsrc
Committed By:   nia
Date:           Thu Jun 13 19:12:44 UTC 2019

Modified Files:
        pkgsrc/emulators/mgba: Makefile distinfo
Added Files:
        pkgsrc/emulators/mgba/patches: patch-src_platform_qt_CMakeLists.txt

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


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/emulators/mgba/Makefile \
    pkgsrc/emulators/mgba/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/emulators/mgba/patches/patch-src_platform_qt_CMakeLists.txt

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/emulators/mgba/Makefile
diff -u pkgsrc/emulators/mgba/Makefile:1.1 pkgsrc/emulators/mgba/Makefile:1.2
--- pkgsrc/emulators/mgba/Makefile:1.1  Sat Jun  8 22:46:03 2019
+++ pkgsrc/emulators/mgba/Makefile      Thu Jun 13 19:12:44 2019
@@ -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/}
 
Index: pkgsrc/emulators/mgba/distinfo
diff -u pkgsrc/emulators/mgba/distinfo:1.1 pkgsrc/emulators/mgba/distinfo:1.2
--- pkgsrc/emulators/mgba/distinfo:1.1  Sat Jun  8 22:46:03 2019
+++ pkgsrc/emulators/mgba/distinfo      Thu Jun 13 19:12:44 2019
@@ -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 @@ Size (mgba-0.7.2.tar.gz) = 11255680 byte
 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

Added files:

Index: pkgsrc/emulators/mgba/patches/patch-src_platform_qt_CMakeLists.txt
diff -u /dev/null pkgsrc/emulators/mgba/patches/patch-src_platform_qt_CMakeLists.txt:1.1
--- /dev/null   Thu Jun 13 19:12:44 2019
+++ pkgsrc/emulators/mgba/patches/patch-src_platform_qt_CMakeLists.txt  Thu Jun 13 19:12:44 2019
@@ -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