diff options
author | root <root@rshg054.dnsready.net> | 2012-03-16 00:01:21 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-03-16 00:01:21 +0000 |
commit | cd326e60e1e54ebe83bd700850b313c69f419eef (patch) | |
tree | b15df594ae07c150fff4a55c0d1a01885b232dd0 /community/luabind | |
parent | 14635ca5380a480450a66c3fcc29992d29a2bd8e (diff) |
Fri Mar 16 00:01:21 UTC 2012
Diffstat (limited to 'community/luabind')
-rw-r--r-- | community/luabind/PKGBUILD | 37 | ||||
-rw-r--r-- | community/luabind/luabind_boost.patch | 59 |
2 files changed, 96 insertions, 0 deletions
diff --git a/community/luabind/PKGBUILD b/community/luabind/PKGBUILD new file mode 100644 index 000000000..15b9e9888 --- /dev/null +++ b/community/luabind/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: Jakob Gruber <jakob.gruber@gmail.com> +# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com> +# Contributor: rayte <rabyte.at.gmail.dot.com> + +pkgname=luabind +pkgver=0.9.1 +pkgrel=2 +pkgdesc="A library that helps you create bindings between C++ and Lua" +arch=('i686' 'x86_64') +url="http://www.rasterbar.com/products/luabind.html" +license=('MIT') +makedepends=('unzip' 'boost' 'boost-build') +depends=('lua' 'gcc-libs') +source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz" + "luabind_boost.patch") + +build() { + cd ${srcdir}/${pkgname}-${pkgver} + + patch -Np1 -i ${srcdir}/luabind_boost.patch + + # build luabind + bjam release --prefix=${pkgdir}/usr/ link=static,shared +} + +package() { + cd ${srcdir}/${pkgname}-${pkgver} + + bjam release --prefix=${pkgdir}/usr/ link=static,shared install + + # copy license + install -Dm644 ${srcdir}/${pkgname}-${pkgver}/LICENSE \ + ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE +} + +md5sums=('8a323fb51d07dad5cfdb12c432793d55' + 'd62ae6fc635300bc659df9dbb587ac53') diff --git a/community/luabind/luabind_boost.patch b/community/luabind/luabind_boost.patch new file mode 100644 index 000000000..92e32828a --- /dev/null +++ b/community/luabind/luabind_boost.patch @@ -0,0 +1,59 @@ +diff --git luabind-0.9.1/luabind/detail/call_function.hpp luabind-0.9.1-fixed/luabind/detail/call_function.hpp +index 1b45ec1..8f5afff 100644 +--- luabind-0.9.1/luabind/detail/call_function.hpp ++++ luabind-0.9.1-fixed/luabind/detail/call_function.hpp +@@ -323,7 +323,8 @@ namespace luabind + + #endif // LUABIND_CALL_FUNCTION_HPP_INCLUDED + +-#elif BOOST_PP_ITERATION_FLAGS() == 1 ++#else ++#if BOOST_PP_ITERATION_FLAGS() == 1 + + #define LUABIND_TUPLE_PARAMS(z, n, data) const A##n * + #define LUABIND_OPERATOR_PARAMS(z, n, data) const A##n & a##n +@@ -440,4 +441,5 @@ namespace luabind + + + #endif ++#endif + +diff --git luabind-0.9.1/luabind/detail/call_member.hpp luabind-0.9.1-fixed/luabind/detail/call_member.hpp +index de8d563..e63555b 100644 +--- luabind-0.9.1/luabind/detail/call_member.hpp ++++ luabind-0.9.1-fixed/luabind/detail/call_member.hpp +@@ -316,7 +316,8 @@ namespace luabind + + #endif // LUABIND_CALL_MEMBER_HPP_INCLUDED + +-#elif BOOST_PP_ITERATION_FLAGS() == 1 ++#else ++#if BOOST_PP_ITERATION_FLAGS() == 1 + + #define LUABIND_TUPLE_PARAMS(z, n, data) const A##n * + #define LUABIND_OPERATOR_PARAMS(z, n, data) const A##n & a##n +@@ -360,4 +361,5 @@ namespace luabind + #undef LUABIND_TUPLE_PARAMS + + #endif ++#endif + +diff --git luabind-0.9.1/luabind/wrapper_base.hpp luabind-0.9.1-fixed/luabind/wrapper_base.hpp +index d54c668..0f88cc5 100755 +--- luabind-0.9.1/luabind/wrapper_base.hpp ++++ luabind-0.9.1-fixed/luabind/wrapper_base.hpp +@@ -89,7 +89,8 @@ namespace luabind + + #endif // LUABIND_WRAPPER_BASE_HPP_INCLUDED + +-#elif BOOST_PP_ITERATION_FLAGS() == 1 ++#else ++#if BOOST_PP_ITERATION_FLAGS() == 1 + + #define LUABIND_TUPLE_PARAMS(z, n, data) const A##n * + #define LUABIND_OPERATOR_PARAMS(z, n, data) const A##n & a##n +@@ -188,3 +189,4 @@ namespace luabind + #undef N + + #endif ++#endif |