Files
2021-03-15 12:23:58 +00:00

68 lines
2.3 KiB
Tcl

# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0
PortGroup python 1.0
PortGroup github 1.0
PortGroup compiler_blacklist_versions 1.0
name py-blis
epoch 1
# Don't upgrade past py-spaCy's highest supported version.
github.setup explosion cython-blis 0.7.4 v
revision 0
checksums rmd160 6575f11662f6c92aaa7f32536c0a35297fc9a750 \
sha256 0a1ee1c1c5c2fb02181fdbeb6a26cb5f323008f1f9a13159d6f9bbd8fd16139f \
size 3082837
platforms darwin
supported_archs x86_64
license MIT
maintainers {jonesc @cjones051073} openmaintainer
description Fast matrix-multiplication as a self-contained Python library
long_description ${description}
# overload the github livecheck regex to look for versions that
# are just numbers and '.', no letters (e.g., "0.4.0.dev1").
github.livecheck.regex {([0-9.]+)}
# Supported python versions
python.versions 35 36 37 38 39
# Compiler selection
compiler.cxx_standard 2011
compiler.blacklist-append *gcc* {clang < 999} macports-clang-3.* {macports-clang-[4-6].0}
# Pass selected compiler to BLIS
build.env-append BLIS_COMPILER=${configure.cc}
destroot.env-append BLIS_COMPILER=${configure.cc}
if {${name} ne ${subport}} {
variant native description {Build from source for best native platform support} {
# Prevent precompiled binaries to let compilation optimise the library for the user processor
archive_sites
}
# Currently no easy way to prevent build from detecting machine capabilities for Darwin builds.
# So for now force all users to build from source to ensure they get what they support
default_variants-append +native
depends_build-append \
port:cctools \
port:py${python.version}-setuptools
depends_lib-append \
port:py${python.version}-cython \
port:py${python.version}-numpy
depends_test-append \
port:py${python.version}-pytest \
port:py${python.version}-hypothesis
livecheck.type none
}