diff --git a/devel/lutok/Makefile b/devel/lutok/Makefile new file mode 100644 index 00000000000..f30361ae8d7 --- /dev/null +++ b/devel/lutok/Makefile @@ -0,0 +1,45 @@ +# $OpenBSD $ + +COMMENT = lightweight C++ API for Lua +DISTNAME = lutok-0.4 + +SHARED_LIBS += lutok 0.0 # 2.0 +CATEGORIES = devel +HOMEPAGE = https://github.com/jmmv/lutok/ + +MAINTAINER = Sergey Bronnikov + +# BSD +PERMIT_PACKAGE_CDROM = Yes + +WANTLIB += atf-c atf-c++ c ${MODLUA_WANTLIB} m stdc++ + +MASTER_SITES = https://github.com/jmmv/lutok/releases/download/${DISTNAME}/ + +MODULES = lang/lua +MODLUA_SA = Yes + +LIB_DEPENDS = devel/atf + +FLAVORS = # lua52 from lua.port.mk +FLAVOR ?= + +.if ${FLAVOR:Mlua52} +TEST_DEPENDS = devel/kyua-cli,lua52 +.else +TEST_DEPENDS = devel/kyua-cli +.endif + +CONFIGURE_STYLE = gnu +CONFIGURE_ARGS = ${CONFIGURE_SHARED} \ + --without-doxygen +CONFIGURE_ENV = LUA_CFLAGS="`pkg-config --cflags ${MODLUA_DEP}`" \ + LUA_LIBS="`pkg-config --libs ${MODLUA_DEP}`" + +# Install the package and use the following TEST_TARGET if you want to +# perform the tests on the installed files. +#TEST_TARGET = installcheck + +PORTHOME = ${WRKDIR} + +.include diff --git a/devel/lutok/distinfo b/devel/lutok/distinfo new file mode 100644 index 00000000000..cf506a53363 --- /dev/null +++ b/devel/lutok/distinfo @@ -0,0 +1,2 @@ +SHA256 (lutok-0.4.tar.gz) = LOxR76DI1lrOiyHqoIOEt3q8UIe0bnhfeN4cIft1TNU= +SIZE (lutok-0.4.tar.gz) = 489570 diff --git a/devel/lutok/patches/patch-configure b/devel/lutok/patches/patch-configure new file mode 100644 index 00000000000..c9d5975a868 --- /dev/null +++ b/devel/lutok/patches/patch-configure @@ -0,0 +1,12 @@ +$OpenBSD: patch-configure,v 1.1.1.1 2014/03/16 11:26:21 sthen Exp $ +Don't clutter build logs. +--- configure.orig Sat Dec 7 20:14:13 2013 ++++ configure Fri Jan 24 16:13:42 2014 +@@ -15377,7 +15377,6 @@ fi + -Wcast-qual \ + -Wextra \ + -Wpointer-arith \ +- -Wredundant-decls \ + -Wreturn-type \ + -Wshadow \ + -Wsign-compare \ diff --git a/devel/lutok/pkg/DESCR b/devel/lutok/pkg/DESCR new file mode 100644 index 00000000000..e3b1af0244f --- /dev/null +++ b/devel/lutok/pkg/DESCR @@ -0,0 +1,6 @@ +Lutok provides thin C++ wrappers around the Lua C API to easy 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. diff --git a/devel/lutok/pkg/PLIST b/devel/lutok/pkg/PLIST new file mode 100644 index 00000000000..d16e6f14b6f --- /dev/null +++ b/devel/lutok/pkg/PLIST @@ -0,0 +1,242 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2014/03/16 11:26:21 sthen Exp $ +include/lutok/ +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.la +@lib lib/liblutok.so.${LIBlutok_VERSION} +lib/pkgconfig/lutok.pc +share/doc/lutok/ +share/doc/lutok/AUTHORS +share/doc/lutok/COPYING +share/doc/lutok/NEWS +share/doc/lutok/README +share/doc/lutok/a00001.html +share/doc/lutok/a00002.html +share/doc/lutok/a00002.png +share/doc/lutok/a00003.html +share/doc/lutok/a00004.html +share/doc/lutok/a00005.html +share/doc/lutok/a00005.png +share/doc/lutok/a00006.html +share/doc/lutok/a00006.png +share/doc/lutok/a00007.html +share/doc/lutok/a00008.html +share/doc/lutok/a00009.html +share/doc/lutok/a00010.html +share/doc/lutok/a00011.html +share/doc/lutok/a00013.html +share/doc/lutok/a00013_source.html +share/doc/lutok/a00016.html +share/doc/lutok/a00016_source.html +share/doc/lutok/a00019.html +share/doc/lutok/a00019_source.html +share/doc/lutok/a00022.html +share/doc/lutok/a00022_source.html +share/doc/lutok/a00025.html +share/doc/lutok/a00025_source.html +share/doc/lutok/a00028.html +share/doc/lutok/a00028_source.html +share/doc/lutok/a00031.html +share/doc/lutok/a00031_source.html +share/doc/lutok/a00032.html +share/doc/lutok/a00033.html +share/doc/lutok/a00034.html +share/doc/lutok/a00035.html +share/doc/lutok/a00039.html +share/doc/lutok/a00040.html +share/doc/lutok/a00041.html +share/doc/lutok/a00042.html +share/doc/lutok/a00043.html +share/doc/lutok/a00044.html +share/doc/lutok/a00045.html +share/doc/lutok/a00046.html +share/doc/lutok/a00047.html +share/doc/lutok/a00048.html +share/doc/lutok/a00049.html +share/doc/lutok/annotated.html +share/doc/lutok/bc_s.png +share/doc/lutok/bdwn.png +share/doc/lutok/classes.html +share/doc/lutok/closed.png +share/doc/lutok/doxygen.css +share/doc/lutok/doxygen.png +share/doc/lutok/dynsections.js +share/doc/lutok/examples/ +share/doc/lutok/examples/Makefile +share/doc/lutok/examples/bindings.cpp +share/doc/lutok/examples/hello.cpp +share/doc/lutok/examples/interpreter.cpp +share/doc/lutok/examples/raii.cpp +share/doc/lutok/files.html +share/doc/lutok/ftv2blank.png +share/doc/lutok/ftv2cl.png +share/doc/lutok/ftv2doc.png +share/doc/lutok/ftv2folderclosed.png +share/doc/lutok/ftv2folderopen.png +share/doc/lutok/ftv2lastnode.png +share/doc/lutok/ftv2link.png +share/doc/lutok/ftv2mlastnode.png +share/doc/lutok/ftv2mnode.png +share/doc/lutok/ftv2mo.png +share/doc/lutok/ftv2node.png +share/doc/lutok/ftv2ns.png +share/doc/lutok/ftv2plastnode.png +share/doc/lutok/ftv2pnode.png +share/doc/lutok/ftv2splitbar.png +share/doc/lutok/ftv2vertline.png +share/doc/lutok/functions.html +share/doc/lutok/functions_func.html +share/doc/lutok/functions_vars.html +share/doc/lutok/globals.html +share/doc/lutok/globals_defs.html +share/doc/lutok/hierarchy.html +share/doc/lutok/index.html +share/doc/lutok/jquery.js +share/doc/lutok/namespacemembers.html +share/doc/lutok/namespacemembers_func.html +share/doc/lutok/namespaces.html +share/doc/lutok/nav_f.png +share/doc/lutok/nav_g.png +share/doc/lutok/nav_h.png +share/doc/lutok/open.png +share/doc/lutok/search/ +share/doc/lutok/search/all_5f.html +share/doc/lutok/search/all_5f.js +share/doc/lutok/search/all_61.html +share/doc/lutok/search/all_61.js +share/doc/lutok/search/all_63.html +share/doc/lutok/search/all_63.js +share/doc/lutok/search/all_64.html +share/doc/lutok/search/all_64.js +share/doc/lutok/search/all_65.html +share/doc/lutok/search/all_65.js +share/doc/lutok/search/all_66.html +share/doc/lutok/search/all_66.js +share/doc/lutok/search/all_67.html +share/doc/lutok/search/all_67.js +share/doc/lutok/search/all_68.html +share/doc/lutok/search/all_68.js +share/doc/lutok/search/all_69.html +share/doc/lutok/search/all_69.js +share/doc/lutok/search/all_6c.html +share/doc/lutok/search/all_6c.js +share/doc/lutok/search/all_6e.html +share/doc/lutok/search/all_6e.js +share/doc/lutok/search/all_6f.html +share/doc/lutok/search/all_6f.js +share/doc/lutok/search/all_70.html +share/doc/lutok/search/all_70.js +share/doc/lutok/search/all_72.html +share/doc/lutok/search/all_72.js +share/doc/lutok/search/all_73.html +share/doc/lutok/search/all_73.js +share/doc/lutok/search/all_74.html +share/doc/lutok/search/all_74.js +share/doc/lutok/search/all_75.html +share/doc/lutok/search/all_75.js +share/doc/lutok/search/all_77.html +share/doc/lutok/search/all_77.js +share/doc/lutok/search/all_7e.html +share/doc/lutok/search/all_7e.js +share/doc/lutok/search/classes_61.html +share/doc/lutok/search/classes_61.js +share/doc/lutok/search/classes_64.html +share/doc/lutok/search/classes_64.js +share/doc/lutok/search/classes_65.html +share/doc/lutok/search/classes_65.js +share/doc/lutok/search/classes_66.html +share/doc/lutok/search/classes_66.js +share/doc/lutok/search/classes_69.html +share/doc/lutok/search/classes_69.js +share/doc/lutok/search/classes_73.html +share/doc/lutok/search/classes_73.js +share/doc/lutok/search/close.png +share/doc/lutok/search/defines_72.html +share/doc/lutok/search/defines_72.js +share/doc/lutok/search/files_63.html +share/doc/lutok/search/files_63.js +share/doc/lutok/search/files_64.html +share/doc/lutok/search/files_64.js +share/doc/lutok/search/files_65.html +share/doc/lutok/search/files_65.js +share/doc/lutok/search/files_6f.html +share/doc/lutok/search/files_6f.js +share/doc/lutok/search/files_73.html +share/doc/lutok/search/files_73.js +share/doc/lutok/search/files_74.html +share/doc/lutok/search/files_74.js +share/doc/lutok/search/functions_61.html +share/doc/lutok/search/functions_61.js +share/doc/lutok/search/functions_63.html +share/doc/lutok/search/functions_63.js +share/doc/lutok/search/functions_64.html +share/doc/lutok/search/functions_64.js +share/doc/lutok/search/functions_65.html +share/doc/lutok/search/functions_65.js +share/doc/lutok/search/functions_66.html +share/doc/lutok/search/functions_66.js +share/doc/lutok/search/functions_67.html +share/doc/lutok/search/functions_67.js +share/doc/lutok/search/functions_68.html +share/doc/lutok/search/functions_68.js +share/doc/lutok/search/functions_69.html +share/doc/lutok/search/functions_69.js +share/doc/lutok/search/functions_6c.html +share/doc/lutok/search/functions_6c.js +share/doc/lutok/search/functions_6e.html +share/doc/lutok/search/functions_6e.js +share/doc/lutok/search/functions_6f.html +share/doc/lutok/search/functions_6f.js +share/doc/lutok/search/functions_70.html +share/doc/lutok/search/functions_70.js +share/doc/lutok/search/functions_72.html +share/doc/lutok/search/functions_72.js +share/doc/lutok/search/functions_73.html +share/doc/lutok/search/functions_73.js +share/doc/lutok/search/functions_74.html +share/doc/lutok/search/functions_74.js +share/doc/lutok/search/functions_75.html +share/doc/lutok/search/functions_75.js +share/doc/lutok/search/functions_77.html +share/doc/lutok/search/functions_77.js +share/doc/lutok/search/functions_7e.html +share/doc/lutok/search/functions_7e.js +share/doc/lutok/search/mag_sel.png +share/doc/lutok/search/namespaces_61.html +share/doc/lutok/search/namespaces_61.js +share/doc/lutok/search/nomatches.html +share/doc/lutok/search/search.css +share/doc/lutok/search/search.js +share/doc/lutok/search/search_l.png +share/doc/lutok/search/search_m.png +share/doc/lutok/search/search_r.png +share/doc/lutok/search/variables_5f.html +share/doc/lutok/search/variables_5f.js +share/doc/lutok/search/variables_6c.html +share/doc/lutok/search/variables_6c.js +share/doc/lutok/search/variables_6f.html +share/doc/lutok/search/variables_6f.js +share/doc/lutok/search/variables_73.html +share/doc/lutok/search/variables_73.js +share/doc/lutok/tab_a.png +share/doc/lutok/tab_b.png +share/doc/lutok/tab_h.png +share/doc/lutok/tab_s.png +share/doc/lutok/tabs.css +tests/ +tests/lutok/ +tests/lutok/Kyuafile +@bin tests/lutok/c_gate_test +@bin tests/lutok/debug_test +tests/lutok/examples_test +@bin tests/lutok/exceptions_test +@bin tests/lutok/operations_test +@bin tests/lutok/stack_cleaner_test +@bin tests/lutok/state_test