devel/lutok 0.6.3 FreeBSD
Lightweight C++ API for Lua
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- Last update
- Commit
6c97082b77- License
- BSD3CLAUSE
- Categories
- devel
- Package size
- 189.8 KiB, 1408.4 KiB installed
Description
Lutok is a lightweight C++ API library for Lua.
Lutok provides thin C++ wrappers around the Lua C API to ease the interaction between C++ and Lua. These wrappers make intensive use of RAII to prevent resource leakage, expose C++-friendly data types, report errors by means of exceptions and ensure that the Lua stack is always left untouched in the face of errors. The library also provides a small subset of miscellaneous utility functions built on top of the wrappers.
Lutok focuses on providing a clean and safe C++ interface; the drawback is that it is not suitable for performance-critical environments. In order to implement error-safe C++ wrappers on top of a Lua C binary library, Lutok adds several layers or abstraction and error checking that go against the original spirit of the Lua C API and thus degrade performance.
In the other systems
| System | Port | Version |
|---|---|---|
| FreeBSD | devel/lutok | 0.6.3 |
| OpenBSD | devel/lutok | 0.6.3 |
| NetBSD | devel/lutok | 0.6.3 |
| DragonFly | devel/lutok | 0.6.1 |
| MidnightBSD | devel/lutok | 0.6.1 |
| HardenedBSD | devel/lutok | 0.6.2 |
| GhostBSD | devel/lutok | 0.6.2 |
Install
Binary package:
pkg install lutok
From the ports tree:
cd /usr/ports/devel/lutok/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= lutok>0:devel/lutok
LIB_DEPENDS= liblutok.so:devel/lutok
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 0.6.3 | 0.6.3 | 0.4_7 | 0.6.1 | 0.6.3 |
| FreeBSD:14:quarterly | 0.6.3 | 0.6.3 | n/a | 0.6.1 | 0.6.3 |
| FreeBSD:15:latest | 0.6.3 | 0.6.3 | n/a | 0.6.1 | 0.6.1 |
| FreeBSD:15:quarterly | 0.6.3 | 0.6.3 | n/a | n/a | n/a |
| FreeBSD:16:latest | 0.6.2 | 0.6.3 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
The Makefile names none itself; they come from USES and USE_*.
The full lists below include those, and their dependencies in turn.
Build dependencies 68
- archivers/brotli
- archivers/libdeflate
- archivers/liblz4
- archivers/lzo2
- archivers/zstd
- converters/fribidi
- converters/libiconv
- databases/sqlite3
- devel/atf
- devel/autoconf
- devel/autoconf-switch
- devel/automake
- devel/doxygen
- devel/gettext-runtime
- devel/glib20
- devel/libdatrie
- devel/libedit
- devel/libffi
- devel/libfmt
- devel/libinotify
- devel/libltdl
- devel/libthai
- devel/libtool
- devel/m4
- devel/pcre2
- devel/pkgconf
- devel/py-packaging
- devel/readline
- devel/spdlog
- graphics/cairo
- graphics/gd
- graphics/giflib
- graphics/graphite2
- graphics/graphviz
- graphics/jbigkit
- graphics/jpeg-turbo
- graphics/lerc
- graphics/png
- graphics/tiff
- graphics/webp
- lang/lua54
- lang/perl5.42
- lang/python312
- lang/python315
- lang/tcl86
- math/libtommath
- math/mpdecimal
- print/freetype2
- print/harfbuzz
- print/indexinfo
- textproc/expat2
- x11-fonts/fontconfig
- x11-fonts/libXft
- x11-toolkits/libXaw
- x11-toolkits/libXmu
- x11-toolkits/libXt
- x11-toolkits/pango
- x11/libICE
- x11/libSM
- x11/libX11
- x11/libXau
- x11/libXdmcp
- x11/libXext
- x11/libXpm
- x11/libXrender
- x11/libxcb
- x11/pixman
- x11/xorgproto
Run dependencies 3
No port depends on this one.
Configuration
Options name: devel_lutok
| Option | Default | Description |
|---|---|---|
| DOCS | on | Build and/or install documentation |
| EXAMPLES | on | Build and/or install examples |
| TEST | on | Build and/or run tests |
- USES
- autoreconf compiler:c++20-lang libtool lua pathfix pkgconfig
- Service scripts
- none
Files
pkg-plist 26
- include/lutok/c_gate.hpp
- include/lutok/debug.hpp
- include/lutok/exceptions.hpp
- include/lutok/operations.hpp
- include/lutok/stack_cleaner.hpp
- include/lutok/state.hpp
- include/lutok/state.ipp
- include/lutok/test_utils.hpp
- lib/liblutok.a
- lib/liblutok.so
- lib/liblutok.so.3
- lib/liblutok.so.3.0.0
- libdata/pkgconfig/lutok.pc
- share/examples/lutok/Makefile
- share/examples/lutok/bindings.cpp
- share/examples/lutok/hello.cpp
- share/examples/lutok/interpreter.cpp
- share/examples/lutok/raii.cpp
- tests/lutok/Kyuafile
- tests/lutok/c_gate_test
- tests/lutok/debug_test
- tests/lutok/examples_test
- tests/lutok/exceptions_test
- tests/lutok/operations_test
- tests/lutok/stack_cleaner_test
- tests/lutok/state_test
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| lutok-0.6.3.tar.gz | 627534 | 5f33fdf8be36c2d95b866947ff49aa4a90ffd6f10a6172d9ed9243f6a6b42f18 |
Master sites 1
- https://github.com/freebsd/lutok/releases/download/${DISTNAME}/