Skip to content

Commit

Permalink
[no ci] checkin a basic .rubocop.yml file for basic linting and new p…
Browse files Browse the repository at this point in the history
…atch for hdf5
  • Loading branch information
ipatch committed Nov 12, 2024
1 parent 5e08478 commit 52f707a
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
AllCops:
TargetRubyVersion: 3.3
NewCops: enable

Layout/EndAlignment:
EnforcedStyleAlignWith: start_of_line
Layout/SpaceAroundOperators:
Enabled: false
Style/StringConcatenation:
Exclude:
- "**/{Formula,Casks}/**/*.rb"
Style/FetchEnvVar:
Exclude:
- "**/Formula/**/*.rb"
Style/StringLiterals:
EnforcedStyle: double_quotes
Style/StringLiteralsInInterpolation:
EnforcedStyle: double_quotes

20 changes: 20 additions & 0 deletions patches/freecad@0.21.2_py310-hdf5-cmake-fix.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
commit c0021f32f711e28328e16363f692ba8e41474577
Author: chris <chris.r.jones.1983@gmail.com>
Date: Tue Nov 12 19:34:53 2024 +0000

freecad@0.21.2_py310: fix cmake HDF5 error ie. issue #583

diff --git a/cMake/FreeCAD_Helpers/SetupSalomeSMESH.cmake b/cMake/FreeCAD_Helpers/SetupSalomeSMESH.cmake
index 513ec18..7744a21 100644
--- a/cMake/FreeCAD_Helpers/SetupSalomeSMESH.cmake
+++ b/cMake/FreeCAD_Helpers/SetupSalomeSMESH.cmake
@@ -91,7 +91,8 @@ macro(SetupSalomeSMESH)
endif()
pkg_search_module(HDF5 ${HDF5_VARIANT})
if(HOMEBREW_PREFIX)
- set(HDF5_ROOT ${HOMEBREW_PREFIX}/opt/hdf5)
+ unset(HDF5_FOUND CACHE)
+ # set(HDF5_ROOT ${HOMEBREW_PREFIX}/opt/hdf5)
message("--------------------------------------------")
message("ipatch, manually set hdf5_root, cmake build of hdf5 breaks h5cc")
message("--------------------------------------------")

0 comments on commit 52f707a

Please sign in to comment.