BSD Ports

lang/lua54 5.4.8 MidnightBSD

Powerful, efficient, lightweight, embeddable scripting language

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
License
mit
Categories
lang

Description

Lua is a programming language originally designed for extending applications, but also frequently used as a general-purpose, stand-alone language. Lua combines simple procedural syntax (similar to Pascal) with powerful data description constructs based on associative arrays and extensible semantics. Lua is dynamically typed, interpreted from bytecodes, and has automatic memory management with garbage collection, making it ideal for configuration, scripting, and rapid prototyping.

A fundamental concept in the design of Lua is to provide meta-mechanisms for implementing features, instead of providing a host of features directly in the language. For example, although Lua is not a pure object-oriented language, it does provide meta-mechanisms for implementing classes and inheritance. Lua's meta-mechanisms bring an economy of concepts and keep the language small, while allowing the semantics to be extended in unconventional ways. Extensible semantics is a distinguishing feature of Lua.

Lua is implemented as a small library of C functions, written in ANSI C, and compiles unmodified in all known platforms. The implementation goals are simplicity, efficiency, portability, and low embedding cost.

In the other systems

SystemPortVersion
MidnightBSDlang/lua545.4.8
FreeBSDlang/lua545.4.8
NetBSDlang/lua545.4.9
DragonFlylang/lua545.4.7

Install

Binary package:

mport install lua54

From mports:

cd /usr/mports/lang/lua54 && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	lua54>0:lang/lua54
LIB_DEPENDS=	liblua-.so:lang/lua54

Dependencies

No port depends on this one.

Configuration

Options name: lang_lua

OptionDefaultDescription
APICHECKoffEnable API checks
ASSERToffEnable interpreter assertions
DOCSoffInstall language and API reference (HTML, ~400kB)
EDITNONEoffNo command-line editing
LIBEDIToffUse libedit (breaks lcurses)
LIBEDIT_DLonUse dynamically loaded libedit (recommended)
READLINEoffUse GNU Readline (breaks lcurses)
USES
cpe lua:core,54
Service scripts
none

Files

Manual pages 2
  • lua(1)
  • luac(1)
pkg-plist 14
  • bin/lua
  • bin/luac
  • %%LUA_INCDIR%%/lauxlib.h
  • %%LUA_INCDIR%%/lua.h
  • %%LUA_INCDIR%%/lua.hpp
  • %%LUA_INCDIR%%/luaconf.h
  • %%LUA_INCDIR%%/lualib.h
  • lib/liblua-.a
  • lib/liblua-.so
  • libdata/pkgconfig/lua-.pc
  • share/man/man1/lua.1.gz
  • share/man/man1/luac.1.gz
  • @dir
  • @dir
distinfo 1
FileSizeSHA256
lua-5.4.8.tar.gz3743324f18ddae154e793e46eeab727c59ef1c0c0c2b744e7b94219710d76f530629ae
Master sites 1
  • https://www.lua.org/ftp/