meshlab: darwin plist: substitute -> patch
Co-authored-by: Sandro <7258858+SuperSandro2000@users.noreply.github.com>
This commit is contained in:
@@ -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(
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user