Files

76 lines
3.5 KiB
Tcl
Raw Permalink Normal View History

2020-06-28 15:48:38 -05:00
# -*- 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 cmake 1.1
PortGroup github 1.0
github.setup jupyter-xeus xeus-sqlite 0.10.0
2025-09-26 05:24:44 -05:00
github.tarball_from archive
revision 0
2020-06-28 15:48:38 -05:00
categories databases
license BSD
maintainers {mps @Schamschula} openmaintainer
description xeus-sqlite is a Jupyter kernel for SQL based on the native \
implementation of the Jupyter protocol xeus.
2021-01-26 05:51:40 -06:00
long_description {*}${description}
2020-06-28 15:48:38 -05:00
checksums rmd160 70f5b640b2e541cc52e2e4e9dba3feade559c09d \
sha256 3e6287900697bb9afc2e0877a71db0cd7b9a71f27793f77eb2a2316adc855080 \
size 375197
2020-06-28 15:48:38 -05:00
compiler.cxx_standard 2017
depends_build-append path:bin/pkg-config:pkgconfig
2020-06-28 15:48:38 -05:00
variant python310 conflicts python311 python312 python313 python314 description {Use Python 3.10} {}
variant python311 conflicts python310 python312 python313 python314 description {Use Python 3.11} {}
variant python312 conflicts python310 python311 python313 python314 description {Use Python 3.12} {}
variant python313 conflicts python310 python311 python312 python314 description {Use Python 3.13} {}
variant python314 conflicts python310 python311 python312 python313 description {Use Python 3.14} {}
2020-06-28 15:48:38 -05:00
if {![variant_isset python310] && ![variant_isset python311] \
&& ![variant_isset python312] && ![variant_isset python312]} {
default_variants +python313
2020-06-28 15:48:38 -05:00
}
foreach pv {314 313 312 311 310} {
2020-12-17 11:21:07 -06:00
if {[variant_isset python${pv}]} {
set python.version ${pv}
break
}
}
2022-12-13 08:13:42 -06:00
depends_lib-append port:nlohmann-json \
path:lib/libssl.dylib:openssl \
2020-06-28 15:48:38 -05:00
port:sqlite3 \
port:sqlitecpp \
port:tabulate \
2022-12-13 07:38:40 -06:00
port:xeus-zmq \
2020-12-17 11:21:07 -06:00
port:xvega \
2022-12-13 07:38:40 -06:00
port:xvega-bindings
2020-06-28 15:48:38 -05:00
if {${configure.build_arch} ni [list ppc ppc64]} {
# It pulls in Rust via one of dependencies, no Rust on PowerPC at the moment.
# This is not a required dependency for the build.
depends_lib-append port:py${python.version}-jupyterlab
}
2020-12-17 11:21:07 -06:00
configure.args-append -DCMAKE_PREFIX_PATH:PATH=${prefix}/lib/pkgconfig \
2020-06-28 15:48:38 -05:00
-Dcppzmq_DIR=${prefix}/share/cmake/cppzmq \
2022-12-13 07:38:40 -06:00
-Dnlohmann_json_DIR=${prefix}/share/cmake/nlohmann_json \
2020-06-28 15:48:38 -05:00
-DOPENSSL_INCLUDE_DIR=${prefix}/include/openssl \
-DOPENSSL_CRYPTO_LIBRARY=${prefix}/lib/libssl.dylib \
-DSQLite3_INCLUDE_DIR=${prefix}/include \
2020-12-17 11:21:07 -06:00
-DSQLite3_LIBRARY=${prefix}/lib/libsqlite3.dylib \
-DSQLiteCpp_DIR=${prefix}/lib/cmake/SQLiteCpp \
-Dtabulate_DIR=${prefix}/lib/cmake/tabulate \
-Dxeus_DIR=${prefix}/lib/cmake/xeus \
2022-12-13 07:38:40 -06:00
-Dxeus-zmq_DIR=${prefix}/lib/cmake/xeus-zmq \
2020-12-17 11:21:07 -06:00
-Dxproperty_DIR=${prefix}/lib/cmake/xproperty \
-Dxtl_DIR=${prefix}/share/cmake/xtl \
-Dxvega_DIR=${prefix}/lib/cmake/xvega \
-Dxvega-bindings_DIR=${prefix}/lib/cmake/xvega-bindings \
2021-05-27 13:03:55 -04:00
-DZeroMQ_DIR=${prefix}/lib/cmake/ZeroMQ \
2021-05-27 07:56:36 -05:00
-DXSQL_DISABLE_ARCH_NATIVE:BOOL=ON