BSD Ports

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

SystemPortVersion
FreeBSDdevel/lutok0.6.3
OpenBSDdevel/lutok0.6.3
NetBSDdevel/lutok0.6.3
DragonFlydevel/lutok0.6.1
MidnightBSDdevel/lutok0.6.1
HardenedBSDdevel/lutok0.6.2
GhostBSDdevel/lutok0.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.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest0.6.30.6.30.4_70.6.10.6.3
FreeBSD:14:quarterly0.6.30.6.3n/a0.6.10.6.3
FreeBSD:15:latest0.6.30.6.3n/a0.6.10.6.1
FreeBSD:15:quarterly0.6.30.6.3n/an/an/a
FreeBSD:16:latest0.6.20.6.3n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/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
Run dependencies 3

No port depends on this one.

Configuration

Options name: devel_lutok

OptionDefaultDescription
DOCSonBuild and/or install documentation
EXAMPLESonBuild and/or install examples
TESTonBuild 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
FileSizeSHA256
lutok-0.6.3.tar.gz6275345f33fdf8be36c2d95b866947ff49aa4a90ffd6f10a6172d9ed9243f6a6b42f18
Master sites 1
  • https://github.com/freebsd/lutok/releases/download/${DISTNAME}/

Commit history 1

DateCommitCreditsLog message
6c97082b77 Muhammad Moinur Rahman devel/lutok: Update version 0.6.2=>0.6.3
Changelog: https://github.com/freebsd/lutok/releases/tag/lutok-0.6.3