@@ -2,7 +2,7 @@ class Shiboken2AT51511 < Formula
2
2
desc "GeneratorRunner plugin that outputs C++ code for CPython extensions"
3
3
homepage "https://code.qt.io/cgit/pyside/pyside-setup.git/tree/README.shiboken2-generator.md?h=5.15.2"
4
4
license all_of : [ "GFDL-1.3-only" , "GPL-2.0-only" , "GPL-3.0-only" , "LGPL-2.1-only" , "LGPL-3.0-only" ]
5
- revision 2
5
+ revision 3
6
6
head "https://github.com/qt/qt5.git" , branch : "dev" , shallow : false
7
7
8
8
stable do
@@ -22,7 +22,7 @@ class Shiboken2AT51511 < Formula
22
22
keg_only :versioned_formula
23
23
24
24
depends_on "cmake" => :build
25
- depends_on "python@3.10 " => :build
25
+ depends_on "python@3.11 " => :build
26
26
depends_on "llvm"
27
27
depends_on "numpy"
28
28
depends_on "qt@5"
@@ -31,28 +31,32 @@ class Shiboken2AT51511 < Formula
31
31
uses_from_macos "libxslt"
32
32
33
33
def python3
34
- "python3.10 "
34
+ "python3.11 "
35
35
end
36
36
37
37
def install
38
+ rpaths = if OS . mac?
39
+ shiboken2_module = prefix /Language ::Python . site_packages ( python3 ) /"shiboken2"
40
+ [ rpath , rpath ( source : shiboken2_module ) ]
41
+ end
42
+
38
43
ENV [ "LLVM_INSTALL_DIR" ] = Formula [ "llvm" ] . opt_prefix
39
44
40
45
ENV . append_path "CMAKE_PREFIX_PATH" , Formula [ "qt@5" ] . opt_lib
41
46
42
47
# "-DCMAKE_INSTALL_RPATH=#{rpaths.join(";")}",
43
48
system "cmake" , "-S" , "./sources/shiboken2" , "-B" , "build" ,
44
49
"-DPYTHON_EXECUTABLE=#{ which ( python3 ) } " ,
45
- "-DFORCE_LIMITED_API=yes" ,
50
+ "-DFORCE_LIMITED_API=no" ,
51
+ "-DCMAKE_INSTALL_RPATH=#{ rpaths . join ( ";" ) } " ,
46
52
*std_cmake_args
47
53
system "cmake" , "--build" , "build"
48
54
system "cmake" , "--install" , "build"
49
55
end
50
56
51
57
def caveats
52
58
<<-EOS
53
- this formula is keg-only, and is tied to the version of python
54
- that is used to build qt@5, ie. if qt@5 uses [email protected] then
55
- this formula must use [email protected]
59
+ this formula is keg-only
56
60
EOS
57
61
end
58
62
0 commit comments