mrklein / openfoam-os-x

Patches for OpenFOAM(R) to build it on OS X
93 stars 33 forks source link

New brew checksum formulae rules #55

Closed AleksZhuravlyov closed 3 years ago

AleksZhuravlyov commented 3 years ago

Thanks for the awesome project.

The following dose not seam to work now:

$ brew install https://raw.githubusercontent.com/mrklein/openfoam-os-x/master/formulae/scotch.rb
$ brew install https://raw.githubusercontent.com/mrklein/openfoam-os-x/master/formulae/parmgridgen.rb

Output:

'brew extract' or 'brew create' and 'brew tap-new' to create a formula file in a tap on GitHub instead.: Invalid usage: Non-checksummed download of scotch formula file from an arbitrary URL is unsupported!  (UsageError)
'brew extract' or 'brew create' and 'brew tap-new' to create a formula file in a tap on GitHub instead.: Invalid usage: Non-checksummed download of parmgridgen formula file from an arbitrary URL is unsupported!  (UsageError)

It can be fixed as follows:

$ curl -L https://raw.githubusercontent.com/mrklein/openfoam-os-x/master/formulae/scotch.rb > scotch.rb
$ brew install scotch.rb
$ curl -L https://raw.githubusercontent.com/mrklein/openfoam-os-x/master/formulae/parmgridgen.rb > parmgridgen.rb
$ brew install parmgridgen.rb
mrklein commented 3 years ago

Hi,

Thank you for the issue.

I have created mrklein/foam tap as a solution.

AleksZhuravlyov commented 3 years ago

mrklein/foam

thx