diff --git a/Formula/pyside2@5.15.15_py312.rb b/Formula/pyside2@5.15.15_py312.rb index f22efdec..14512690 100644 --- a/Formula/pyside2@5.15.15_py312.rb +++ b/Formula/pyside2@5.15.15_py312.rb @@ -1,8 +1,8 @@ class Pyside2AT51515Py312 < Formula desc "Python bindings for Qt5 and greater" homepage "https://code.qt.io/cgit/pyside/pyside-setup.git/tree/README.pyside2.md?h=5.15.2" - url "" - sha256 "" + url "https://download.qt.io/official_releases/QtForPython/shiboken2/PySide2-5.15.15-src/pyside-setup-opensource-src-5.15.15.zip" + sha256 "2be116ac3e5a2fac0fdc9d076284c125325e0f3b5d714e1cd60e4a27d25ca6ca" license all_of: ["GFDL-1.3-only", "GPL-2.0-only", "GPL-3.0-only", "LGPL-2.1-only", "LGPL-3.0-only"] livecheck do @@ -31,9 +31,20 @@ class Pyside2AT51515Py312 < Formula fails_with gcc: "5" # Don't copy qt@5 tools. + # patch do + # url "https://src.fedoraproject.org/rpms/python-pyside2/raw/009100c67a63972e4c5252576af1894fec2e8855/f/pyside2-tools-obsolete.patch" + # sha256 "ede69549176b7b083f2825f328ca68bd99ebf8f42d245908abd320093bac60c9" + # end + + # NOTE: ipatch, ie. local patch `url "file:///#{HOMEBREW_PREFIX}/Library/Taps/freecad/homebrew-freecad/patches/` + # NOTE: ipatch, when working with patch file using the above example, `brew cleanup` needs to be ran each time + # before a `brew install` to get the latest changes + #------ + # the tarbal / .zip file of the pyside source defaults to CRLF line endings thus the mixed line endings in the + # patch file patch do - url "https://src.fedoraproject.org/rpms/python-pyside2/raw/009100c67a63972e4c5252576af1894fec2e8855/f/pyside2-tools-obsolete.patch" - sha256 "ede69549176b7b083f2825f328ca68bd99ebf8f42d245908abd320093bac60c9" + url "file:///#{HOMEBREW_PREFIX}/Library/Taps/freecad/homebrew-freecad/patches/py3.12-support.patch" + sha256 "272332df2cd9200e2c8a4453fe96419b34c002d97050507aaa050161c4f7d5b0" end def python3