mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-21 04:06:46 +00:00
New port: devel/xeus: C++ implementation of the Jupyter kernel protocol
This commit is contained in:
parent
4bf99d911c
commit
5d8bf30b81
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=477108
@ -6297,6 +6297,7 @@
|
||||
SUBDIR += xdg-user-dirs
|
||||
SUBDIR += xdg-utils
|
||||
SUBDIR += xdgpaths
|
||||
SUBDIR += xeus
|
||||
SUBDIR += xfce4-dev-tools
|
||||
SUBDIR += xfce4-vala
|
||||
SUBDIR += xmake
|
||||
|
27
devel/xeus/Makefile
Normal file
27
devel/xeus/Makefile
Normal file
@ -0,0 +1,27 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= xeus
|
||||
DISTVERSION= 0.13.0
|
||||
CATEGORIES= devel
|
||||
|
||||
MAINTAINER= yuri@FreeBSD.org
|
||||
COMMENT= C++ implementation of the Jupyter kernel protocol
|
||||
|
||||
LICENSE= BSD3CLAUSE
|
||||
LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||
|
||||
BUILD_DEPENDS= cppzmq>0:net/cppzmq \
|
||||
nlohmann-json>0:devel/nlohmann-json \
|
||||
xtl-quant-stack>0:devel/xtl-quant-stack
|
||||
LIB_DEPENDS= libcryptopp.so:security/cryptopp \
|
||||
libuuid.so:misc/e2fsprogs-libuuid
|
||||
RUN_DEPENDS= cppzmq>0:net/cppzmq \
|
||||
nlohmann-json>0:devel/nlohmann-json \
|
||||
xtl-quant-stack>0:devel/xtl-quant-stack
|
||||
|
||||
USES= cmake:outsource localbase:ldflags pkgconfig
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= QuantStack
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
.include <bsd.port.mk>
|
3
devel/xeus/distinfo
Normal file
3
devel/xeus/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
TIMESTAMP = 1534094965
|
||||
SHA256 (QuantStack-xeus-0.13.0_GH0.tar.gz) = d60233b8363b8e977173ca408081c9c046b7114a4fbe27d22f549d8353778621
|
||||
SIZE (QuantStack-xeus-0.13.0_GH0.tar.gz) = 945076
|
45
devel/xeus/files/patch-CMakeLists.txt
Normal file
45
devel/xeus/files/patch-CMakeLists.txt
Normal file
@ -0,0 +1,45 @@
|
||||
--- CMakeLists.txt.orig 2018-07-01 17:59:23 UTC
|
||||
+++ CMakeLists.txt
|
||||
@@ -46,11 +46,12 @@ message(STATUS "xeus binary version: v${
|
||||
# Dependencies
|
||||
# ============
|
||||
|
||||
+FIND_PACKAGE(PkgConfig)
|
||||
find_package(nlohmann_json 3.1.1 REQUIRED)
|
||||
find_package(xtl 0.4 REQUIRED)
|
||||
-find_package(ZeroMQ 4.2.3 REQUIRED)
|
||||
-find_package(cppzmq 4.2.3 REQUIRED)
|
||||
-find_package(cryptopp REQUIRED)
|
||||
+pkg_check_modules(ZeroMQ libzmq>=4.2.3 REQUIRED)
|
||||
+#find_package(cppzmq 4.2.3 REQUIRED)
|
||||
+#find_package(cryptopp REQUIRED)
|
||||
|
||||
# Source files
|
||||
# ============
|
||||
@@ -108,10 +109,9 @@ add_library(xeus SHARED ${XEUS_SOURCES}
|
||||
target_include_directories(xeus PUBLIC $<BUILD_INTERFACE:${XEUS_INCLUDE_DIR}>
|
||||
$<INSTALL_INTERFACE:include>)
|
||||
target_link_libraries(xeus
|
||||
- PUBLIC cppzmq
|
||||
PUBLIC nlohmann_json
|
||||
PUBLIC xtl
|
||||
- PRIVATE cryptopp-static)
|
||||
+ -lcryptopp)
|
||||
|
||||
if(NOT MSVC)
|
||||
if(APPLE)
|
||||
@@ -139,10 +139,10 @@ include(CMakePushCheckState)
|
||||
cmake_push_check_state()
|
||||
|
||||
# HAVE_CRYPTOPP_BYTE_T
|
||||
-get_target_property(cryptopp_INCLUDE_DIR cryptopp-static INTERFACE_INCLUDE_DIRECTORIES)
|
||||
-get_target_property(cryptopp_LIBRARY cryptopp-static LOCATION)
|
||||
-set(CMAKE_REQUIRED_LIBRARIES ${cryptopp_LIBRARY})
|
||||
-set(CMAKE_REQUIRED_INCLUDES ${cryptopp_INCLUDE_DIR})
|
||||
+#get_target_property(cryptopp_INCLUDE_DIR cryptopp INTERFACE_INCLUDE_DIRECTORIES)
|
||||
+#get_target_property(cryptopp_LIBRARY cryptopp LOCATION)
|
||||
+set(CMAKE_REQUIRED_LIBRARIES -lcryptopp)
|
||||
+set(CMAKE_REQUIRED_INCLUDES -I/usr/local/include)
|
||||
check_cxx_source_compiles("
|
||||
#include \"cryptopp/config.h\"
|
||||
int main(){
|
8
devel/xeus/pkg-descr
Normal file
8
devel/xeus/pkg-descr
Normal file
@ -0,0 +1,8 @@
|
||||
xeus is a library meant to facilitate the implementation of kernels for Jupyter.
|
||||
It takes the burden of implementing the Jupyter Kernel protocol so developers
|
||||
can focus on implementing the interpreter part of the kernel.
|
||||
|
||||
An example of kernel built with xeus is xeus-cling, a kernel for the C++
|
||||
programming language based on the cling C++ interpreter.
|
||||
|
||||
WWW: https://github.com/QuantStack/xeus
|
19
devel/xeus/pkg-plist
Normal file
19
devel/xeus/pkg-plist
Normal file
@ -0,0 +1,19 @@
|
||||
include/xeus/xauthentication.hpp
|
||||
include/xeus/xcomm.hpp
|
||||
include/xeus/xeus.hpp
|
||||
include/xeus/xguid.hpp
|
||||
include/xeus/xinterpreter.hpp
|
||||
include/xeus/xjson.hpp
|
||||
include/xeus/xkernel.hpp
|
||||
include/xeus/xkernel_configuration.hpp
|
||||
include/xeus/xmessage.hpp
|
||||
include/xeus/xserver.hpp
|
||||
include/xeus/xserver_zmq.hpp
|
||||
lib/cmake/xeus/FindLibUUID.cmake
|
||||
lib/cmake/xeus/xeusConfig.cmake
|
||||
lib/cmake/xeus/xeusConfigVersion.cmake
|
||||
lib/cmake/xeus/xeusTargets-%%CMAKE_BUILD_TYPE%%.cmake
|
||||
lib/cmake/xeus/xeusTargets.cmake
|
||||
lib/libxeus.so
|
||||
lib/libxeus.so.1
|
||||
lib/libxeus.so.1.0.1
|
Loading…
Reference in New Issue
Block a user