Ticket #73027: py-llvmlite.diff

File py-llvmlite.diff, 3.8 KB (added by stromnov (Andrey Stromnov), 4 months ago)

py-llvmlite 0.45.0

  • python/py-llvmlite/Portfile

    diff --git a/python/py-llvmlite/Portfile b/python/py-llvmlite/Portfile
    index 4cddc60f24f..5daa60d1abf 100644
    a b PortSystem 1.0 
    44PortGroup           python 1.0
    55
    66name                py-llvmlite
    7 version             0.44.0
     7version             0.45.0
    88categories-append   devel science
    99license             BSD
    1010
    11 python.versions     39 310 311 312 313
     11python.versions     310 311 312 313
    1212
    1313maintainers         {stromnov @stromnov} openmaintainer
    1414
    long_description {*}${description} 
    1717
    1818homepage            https://llvmlite.pydata.org/
    1919
    20 checksums           rmd160  22ce3248a454c3e925efb903fd47562d47ed2872 \
    21                     sha256  07667d66a5d150abed9157ab6c0b9393c9356f229784a4385c02f99e94fc94d4 \
    22                     size    171880
     20checksums           rmd160  64f2f8e1bb324b177e97efe0fb70f5601e1b5b51 \
     21                    sha256  ceb0bcd20da949178bd7ab78af8de73e9f3c483ac46b5bef39f06a4862aa8336 \
     22                    size    185289
    2323
    2424if {${name} ne ${subport}} {
    25     PortGroup           legacysupport 1.1
    26     PortGroup           compiler_wrapper 1.0
     25    set llvm_version    20
    2726
    28     legacysupport.newest_darwin_requires_legacy \
    29                         17
     27    depends_build-append \
     28                        port:cmake
    3029
    31     patchfiles-append   patch-ffi_Makefile.osx.diff
     30    build.env-append    LLVM_DIR=${prefix}/libexec/llvm-${llvm_version}/lib/cmake
    3231
    33     set llvmver "15"
    34 
    35     if {${python.version} == 39} {
    36         version             0.43.0
    37         checksums           rmd160  ea30be9de2f72c27635c4858968b95d1ec3ebaec \
    38                             sha256  ae2b5b5c3ef67354824fb75517c8db5fbe93bc02cd9671f3c62271626bc041d5 \
    39                             size    157069
    40     }
    41 
    42     post-patch {
    43         reinplace "s|%%CXX%%|clang++-mp-${llvmver}|" ${worksrcpath}/ffi/Makefile.osx
    44 
    45         if {${os.major} <= 10} {
    46             # https://trac.macports.org/ticket/61302
    47             configure.ldflags-append \
    48                         -framework CoreFoundation
    49         } elseif {${os.major} >= 22} {
    50             configure.ldflags-append \
    51                         -lLLVM
    52         }
    53 
    54         reinplace "s|%%MP_EXTRA_LDFLAGS%%|${configure.ldflags}|" ${worksrcpath}/ffi/Makefile.osx
    55     }
    56 
    57     post-destroot {
    58         system "/usr/bin/install_name_tool -change @rpath/libLLVM.dylib ${prefix}/libexec/llvm-${llvmver}/lib/libLLVM.dylib ${destroot}${python.pkgd}/llvmlite/binding/libllvmlite.dylib"
    59     }
    60 
    61     depends_lib-append  port:llvm-${llvmver} \
    62                         port:clang-${llvmver} \
     32    depends_lib-append  port:llvm-${llvm_version} \
    6333                        port:zlib \
    64                         port:ncurses \
    65                         port:libxml2
    66 
    67     build.env-append    LLVM_CONFIG=llvm-config-mp-${llvmver}
    68     destroot.env-append LLVM_CONFIG=llvm-config-mp-${llvmver}
     34                        port:zstd
    6935
    7036    livecheck.type      none
    7137}
  • deleted file python/py-llvmlite/files/patch-ffi_Makefile.osx.diff

    diff --git a/python/py-llvmlite/files/patch-ffi_Makefile.osx.diff b/python/py-llvmlite/files/patch-ffi_Makefile.osx.diff
    deleted file mode 100644
    index d1f9355d61b..00000000000
    + -  
    1 --- ffi/Makefile.osx.orig       2023-04-23 21:20:38.000000000 +0200
    2 +++ ffi/Makefile.osx    2023-04-23 21:21:04.000000000 +0200
    3 @@ -1,9 +1,9 @@
    4  
    5 -CXX = clang++
    6 +CXX = %%CXX%%
    7  CXXFLAGS = $(LLVM_CXXFLAGS)
    8  # Only export the LLVMPY symbols we require and exclude everything else.
    9  EXPORT = "-Wl,-exported_symbol,_LLVMPY_*"
    10 -LDFLAGS :=  $(LDFLAGS) $(EXPORT) $(LLVM_LDFLAGS)
    11 +LDFLAGS :=  $(LDFLAGS) $(EXPORT) $(LLVM_LDFLAGS) %%MP_EXTRA_LDFLAGS%%
    12  LIBS = $(LLVM_LIBS)
    13  INCLUDE = core.h
    14  SRC = assembly.cpp bitcode.cpp core.cpp initfini.cpp module.cpp value.cpp \