summaryrefslogtreecommitdiff
path: root/devel/lutok
diff options
context:
space:
mode:
authorjmmv <jmmv@pkgsrc.org>2012-01-29 20:59:59 +0000
committerjmmv <jmmv@pkgsrc.org>2012-01-29 20:59:59 +0000
commita1230cdead44323146d2889a68631dd09f970849 (patch)
treead3474f833716e467357a1d3bf52c9001fab5f27 /devel/lutok
parentb287291c6aaba5100f7b18f4020dae37ab4f27d3 (diff)
downloadpkgsrc-a1230cdead44323146d2889a68631dd09f970849.tar.gz
Initial import of lutok, version 0.1:
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.
Diffstat (limited to 'devel/lutok')
-rw-r--r--devel/lutok/DESCR15
-rw-r--r--devel/lutok/Makefile45
-rw-r--r--devel/lutok/PLIST161
-rw-r--r--devel/lutok/distinfo5
4 files changed, 226 insertions, 0 deletions
diff --git a/devel/lutok/DESCR b/devel/lutok/DESCR
new file mode 100644
index 00000000000..cbda03de5f1
--- /dev/null
+++ b/devel/lutok/DESCR
@@ -0,0 +1,15 @@
+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.
diff --git a/devel/lutok/Makefile b/devel/lutok/Makefile
new file mode 100644
index 00000000000..db2602077c9
--- /dev/null
+++ b/devel/lutok/Makefile
@@ -0,0 +1,45 @@
+# $NetBSD: Makefile,v 1.1.1.1 2012/01/29 20:59:59 jmmv Exp $
+#
+
+DISTNAME= lutok-0.1
+CATEGORIES= devel
+MASTER_SITES= http://lutok.googlecode.com/files/
+
+MAINTAINER= jmmv@NetBSD.org
+HOMEPAGE= http://code.google.com/p/kyua/
+COMMENT= Lightweight C++ API for Lua
+LICENSE= 2-clause-bsd
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+GNU_CONFIGURE= yes
+MAKE_JOBS_SAFE= yes
+USE_LANGUAGES= c c++
+USE_LIBTOOL= yes
+USE_TOOLS= pkg-config
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.lutok
+PKG_SUPPORTED_OPTIONS= tests
+PKG_SUGGESTED_OPTIONS= tests
+
+CONFIGURE_ARGS+= --docdir=${PREFIX}/share/doc/lutok
+CONFIGURE_ARGS+= --htmldir=${PREFIX}/share/doc/lutok/html
+CONFIGURE_ARGS+= --without-doxygen
+
+MAKE_FLAGS+= examplesdir=${PREFIX}/share/examples/lutok
+
+PKGCONFIG_OVERRIDE= lutok.pc.in
+
+.include "../../mk/bsd.options.mk"
+
+.if $(PKG_OPTIONS:Mtests)
+CONFIGURE_ARGS+= --with-atf
+PLIST_SUBST+= TESTS=
+. include "../../devel/atf/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --without-atf
+PLIST_SUBST+= TESTS=@comment
+.endif
+
+.include "../../lang/lua/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/lutok/PLIST b/devel/lutok/PLIST
new file mode 100644
index 00000000000..fa0806f9ba3
--- /dev/null
+++ b/devel/lutok/PLIST
@@ -0,0 +1,161 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2012/01/29 20:59:59 jmmv Exp $
+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.la
+lib/pkgconfig/lutok.pc
+share/doc/lutok/AUTHORS
+share/doc/lutok/COPYING
+share/doc/lutok/NEWS
+share/doc/lutok/README
+share/doc/lutok/html/a00001.html
+share/doc/lutok/html/a00002.html
+share/doc/lutok/html/a00002.png
+share/doc/lutok/html/a00003.html
+share/doc/lutok/html/a00004.html
+share/doc/lutok/html/a00005.html
+share/doc/lutok/html/a00005.png
+share/doc/lutok/html/a00006.html
+share/doc/lutok/html/a00006.png
+share/doc/lutok/html/a00007.html
+share/doc/lutok/html/a00008.html
+share/doc/lutok/html/a00009.html
+share/doc/lutok/html/a00010.html
+share/doc/lutok/html/a00011.html
+share/doc/lutok/html/a00013.html
+share/doc/lutok/html/a00013_source.html
+share/doc/lutok/html/a00016.html
+share/doc/lutok/html/a00016_source.html
+share/doc/lutok/html/a00019.html
+share/doc/lutok/html/a00019_source.html
+share/doc/lutok/html/a00022.html
+share/doc/lutok/html/a00022_source.html
+share/doc/lutok/html/a00025.html
+share/doc/lutok/html/a00025_source.html
+share/doc/lutok/html/a00028.html
+share/doc/lutok/html/a00028_source.html
+share/doc/lutok/html/a00031.html
+share/doc/lutok/html/a00031_source.html
+share/doc/lutok/html/a00032.html
+share/doc/lutok/html/a00033.html
+share/doc/lutok/html/a00034.html
+share/doc/lutok/html/a00035.html
+share/doc/lutok/html/a00039.html
+share/doc/lutok/html/a00040.html
+share/doc/lutok/html/a00041.html
+share/doc/lutok/html/a00042.html
+share/doc/lutok/html/a00043.html
+share/doc/lutok/html/a00044.html
+share/doc/lutok/html/a00045.html
+share/doc/lutok/html/a00046.html
+share/doc/lutok/html/a00047.html
+share/doc/lutok/html/a00048.html
+share/doc/lutok/html/a00049.html
+share/doc/lutok/html/annotated.html
+share/doc/lutok/html/bc_s.png
+share/doc/lutok/html/classes.html
+share/doc/lutok/html/closed.png
+share/doc/lutok/html/doxygen.css
+share/doc/lutok/html/doxygen.png
+share/doc/lutok/html/files.html
+share/doc/lutok/html/functions.html
+share/doc/lutok/html/functions_func.html
+share/doc/lutok/html/functions_vars.html
+share/doc/lutok/html/globals.html
+share/doc/lutok/html/globals_defs.html
+share/doc/lutok/html/hierarchy.html
+share/doc/lutok/html/index.html
+share/doc/lutok/html/jquery.js
+share/doc/lutok/html/namespacemembers.html
+share/doc/lutok/html/namespacemembers_func.html
+share/doc/lutok/html/namespaces.html
+share/doc/lutok/html/nav_f.png
+share/doc/lutok/html/nav_h.png
+share/doc/lutok/html/open.png
+share/doc/lutok/html/search/all_5f.html
+share/doc/lutok/html/search/all_61.html
+share/doc/lutok/html/search/all_63.html
+share/doc/lutok/html/search/all_64.html
+share/doc/lutok/html/search/all_65.html
+share/doc/lutok/html/search/all_66.html
+share/doc/lutok/html/search/all_67.html
+share/doc/lutok/html/search/all_68.html
+share/doc/lutok/html/search/all_69.html
+share/doc/lutok/html/search/all_6c.html
+share/doc/lutok/html/search/all_6e.html
+share/doc/lutok/html/search/all_6f.html
+share/doc/lutok/html/search/all_70.html
+share/doc/lutok/html/search/all_72.html
+share/doc/lutok/html/search/all_73.html
+share/doc/lutok/html/search/all_74.html
+share/doc/lutok/html/search/all_75.html
+share/doc/lutok/html/search/all_77.html
+share/doc/lutok/html/search/all_7e.html
+share/doc/lutok/html/search/classes_61.html
+share/doc/lutok/html/search/classes_64.html
+share/doc/lutok/html/search/classes_65.html
+share/doc/lutok/html/search/classes_66.html
+share/doc/lutok/html/search/classes_69.html
+share/doc/lutok/html/search/classes_73.html
+share/doc/lutok/html/search/close.png
+share/doc/lutok/html/search/defines_72.html
+share/doc/lutok/html/search/files_63.html
+share/doc/lutok/html/search/files_64.html
+share/doc/lutok/html/search/files_65.html
+share/doc/lutok/html/search/files_6f.html
+share/doc/lutok/html/search/files_73.html
+share/doc/lutok/html/search/files_74.html
+share/doc/lutok/html/search/functions_61.html
+share/doc/lutok/html/search/functions_63.html
+share/doc/lutok/html/search/functions_64.html
+share/doc/lutok/html/search/functions_65.html
+share/doc/lutok/html/search/functions_66.html
+share/doc/lutok/html/search/functions_67.html
+share/doc/lutok/html/search/functions_68.html
+share/doc/lutok/html/search/functions_69.html
+share/doc/lutok/html/search/functions_6c.html
+share/doc/lutok/html/search/functions_6e.html
+share/doc/lutok/html/search/functions_6f.html
+share/doc/lutok/html/search/functions_70.html
+share/doc/lutok/html/search/functions_72.html
+share/doc/lutok/html/search/functions_73.html
+share/doc/lutok/html/search/functions_74.html
+share/doc/lutok/html/search/functions_75.html
+share/doc/lutok/html/search/functions_77.html
+share/doc/lutok/html/search/functions_7e.html
+share/doc/lutok/html/search/mag_sel.png
+share/doc/lutok/html/search/namespaces_61.html
+share/doc/lutok/html/search/nomatches.html
+share/doc/lutok/html/search/search.css
+share/doc/lutok/html/search/search.js
+share/doc/lutok/html/search/search_l.png
+share/doc/lutok/html/search/search_m.png
+share/doc/lutok/html/search/search_r.png
+share/doc/lutok/html/search/variables_5f.html
+share/doc/lutok/html/search/variables_6c.html
+share/doc/lutok/html/search/variables_6f.html
+share/doc/lutok/html/search/variables_73.html
+share/doc/lutok/html/tab_a.png
+share/doc/lutok/html/tab_b.png
+share/doc/lutok/html/tab_h.png
+share/doc/lutok/html/tab_s.png
+share/doc/lutok/html/tabs.css
+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}tests/lutok/Atffile
+${TESTS}tests/lutok/Kyuafile
+${TESTS}tests/lutok/c_gate_test
+${TESTS}tests/lutok/debug_test
+${TESTS}tests/lutok/examples_test
+${TESTS}tests/lutok/exceptions_test
+${TESTS}tests/lutok/operations_test
+${TESTS}tests/lutok/stack_cleaner_test
+${TESTS}tests/lutok/state_test
diff --git a/devel/lutok/distinfo b/devel/lutok/distinfo
new file mode 100644
index 00000000000..b59ed573e5b
--- /dev/null
+++ b/devel/lutok/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2012/01/29 20:59:59 jmmv Exp $
+
+SHA1 (lutok-0.1.tar.gz) = 2d56bdd27eedcb7cea26fea3ad1bb258c248b9d0
+RMD160 (lutok-0.1.tar.gz) = 60d0a59cd45b14cd64c2e8103fe2e5b3168dcddc
+Size (lutok-0.1.tar.gz) = 446360 bytes