meshlab: darwin plist: substitute -> patch

Co-authored-by: Sandro <7258858+SuperSandro2000@users.noreply.github.com>
This commit is contained in:
Guilhem Saurel
2025-10-28 19:55:40 +01:00
co-authored by Sandro
parent ae49f7f976
commit 1376ce754f
2 changed files with 18 additions and 11 deletions
+12
View File
@@ -0,0 +1,12 @@
--- src/meshlab/CMakeLists.txt.orig 2025-10-05 23:04:12.786192073 +0200
+++ src/meshlab/CMakeLists.txt 2025-10-05 23:04:16.379256637 +0200
@@ -92,9 +92,6 @@
MACOSX_BUNDLE_COPYRIGHT "Copyright VCG-ISTI-CNR © 2005-2021. All rights reserved."
)
- set_additional_settings_info_plist(
- TARGET meshlab
- FILE ${MESHLAB_BUILD_DISTRIB_DIR}/meshlab.app/Contents/Info.plist)
endif()
install(
+6 -11
View File
@@ -102,19 +102,14 @@ stdenv.mkDerivation (finalAttrs: {
# ref. https://github.com/cnr-isti-vclab/meshlab/pull/1617
# merged upstream
./1617_cmake-use-system-dependencies-install-exports.patch
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
./no-plist.patch
];
postPatch =
lib.optionalString stdenv.hostPlatform.isLinux ''
substituteAll ${./meshlab.desktop} resources/linux/meshlab.desktop
''
+ lib.optionalString stdenv.hostPlatform.isDarwin ''
substituteInPlace src/meshlab/CMakeLists.txt \
--replace-fail "set_additional_settings_info_plist(" "# set_additional_settings_info_plist(" \
--replace-fail " TARGET meshlab" "# TARGET meshlab" \
--replace-fail " FILE \''${MESHLAB_BUILD_DISTRIB_DIR}/meshlab.app/Contents/Info.plist)" \
"# FILE \''${MESHLAB_BUILD_DISTRIB_DIR}/meshlab.app/Contents/Info.plist)"
'';
postPatch = lib.optionalString stdenv.hostPlatform.isLinux ''
substituteAll ${./meshlab.desktop} resources/linux/meshlab.desktop
'';
cmakeFlags = cmakeFlagsDisallowDownload;