Commit 1376ce75 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

meshlab: darwin plist: substitute -> patch

parent ae49f7f9
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
--- 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
Original line number Diff line number Diff line
@@ -102,18 +102,13 @@ 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 ''
  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)"
  '';

  cmakeFlags = cmakeFlagsDisallowDownload;