pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/py-lupa Add support for Lua 5.1 and 5.2. Add "lu...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/394a3c0e1c21
branches:  trunk
changeset: 363034:394a3c0e1c21
user:      alnsn <alnsn%pkgsrc.org@localhost>
date:      Tue May 30 21:59:56 2017 +0000

description:
Add support for Lua 5.1 and 5.2. Add "luajit" option (off by default).

Bump PKGREVISION.

diffstat:

 devel/py-lupa/Makefile   |   7 +++++--
 devel/py-lupa/options.mk |  10 ++++++++--
 2 files changed, 13 insertions(+), 4 deletions(-)

diffs (50 lines):

diff -r 53b00b1ee120 -r 394a3c0e1c21 devel/py-lupa/Makefile
--- a/devel/py-lupa/Makefile    Tue May 30 20:31:11 2017 +0000
+++ b/devel/py-lupa/Makefile    Tue May 30 21:59:56 2017 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.4 2017/02/25 09:28:09 alnsn Exp $
+# $NetBSD: Makefile,v 1.5 2017/05/30 21:59:56 alnsn Exp $
 
 DISTNAME=      lupa-1.4
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
+PKGREVISION=   1
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=l/lupa/}
 
@@ -10,10 +11,12 @@
 COMMENT=       Python wrapper around Lua and LuaJIT
 LICENSE=       mit
 
+# XXX Find a replacement for luaL_openlib().
+LUA_VERSIONS_INCOMPATIBLE=     53
+
 USE_TOOLS+=    pkg-config
 
 .include "options.mk"
 
 .include "../../lang/python/distutils.mk"
-.include "../../lang/LuaJIT2/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 53b00b1ee120 -r 394a3c0e1c21 devel/py-lupa/options.mk
--- a/devel/py-lupa/options.mk  Tue May 30 20:31:11 2017 +0000
+++ b/devel/py-lupa/options.mk  Tue May 30 21:59:56 2017 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: options.mk,v 1.1.1.1 2015/04/20 19:34:47 alnsn Exp $
+# $NetBSD: options.mk,v 1.2 2017/05/30 21:59:56 alnsn Exp $
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.py-lupa
-PKG_SUPPORTED_OPTIONS= cython
+PKG_SUPPORTED_OPTIONS= cython luajit
 PKG_SUGGESTED_OPTIONS+=        cython
 
 .include "../../mk/bsd.options.mk"
@@ -10,3 +10,9 @@
 PYSETUPBUILDARGS+=     --with-cython
 .include "../../devel/py-cython/buildlink3.mk"
 .endif
+
+.if !empty(PKG_OPTIONS:Mluajit)
+.include "../../lang/LuaJIT2/buildlink3.mk"
+.else
+.include "../../lang/lua/buildlink3.mk"
+.endif



Home | Main Index | Thread Index | Old Index