BSD Ports

devel/lutok 0.6.1 MidnightBSD

Lightweight C++ API for Lua

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
License
bsd3
Categories
devel

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

The newest version among them is 0.6.3, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
MidnightBSDdevel/lutok0.6.1 behind since 2026-09-02no data-[email protected]-
FreeBSDdevel/lutok0.6.3 newestnone known-[email protected]2026-10-10
OpenBSDdevel/lutok0.6.3 newestno data-Sergey Bronnikov <[email protected]>2026-09-26
NetBSDdevel/lutok0.6.3 newestnone known-[email protected]2026-09-02
DragonFlydevel/lutok0.6.1 behind since 2026-09-02none known-[email protected]-
HardenedBSDdevel/lutok0.6.2 behind since 2026-09-02no data-[email protected]-
GhostBSDdevel/lutok0.6.2 behind since 2026-09-02no data-[email protected]-

Compare across BSDs

Install

Binary package:

mport install lutok

From mports:

cd /usr/mports/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

Dependency graph

Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.

Dependencies

Required by 1

Configuration

Options name: devel_lutok

OptionDefaultDescription
DOCSon
EXAMPLESon
TESTon
USES
autoreconf 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
FileSizeSHA256
lutok-0.6.1.tar.gz648933509c43c240ba47b8c452b45f3423a416fa91bdfc0341bfb806e0b78f65ce452d
Master sites 1
  • https://github.com/freebsd/lutok/releases/download/${DISTNAME}/