summaryrefslogtreecommitdiff
path: root/devel/lua-stdlib/Makefile
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2020-04-14 15:49:36 +0000
committerMathieu Arnold <mat@FreeBSD.org>2020-04-14 15:49:36 +0000
commitbeb1c1fe19992999ef068d0dcb07c0d02f4aea71 (patch)
tree464f76d8fe2b9fd7499e26491ee739bfe0a5444e /devel/lua-stdlib/Makefile
parentwww/yarn: fix regression with global packages (diff)
USES=lua gained flavors.
Ports using USES=lua:module or lua:flavors will be flavored. A range of supported lua versions can be set using XX-YY (or XX-, or -YY, or simply ZZ) for ports not supporting all lua versions. USES=lua sets LUA_FLAVOR that needs to be used on all dependencies of flavored lua ports, in a similar way as PHP or Python flavors. PR: 245038 Submitted by: andrew tao11 riddles org uk Reviewed by: mat, kevans, russ haley gmail com Approved by: mat (portmgr) Differential Revision: https://reviews.freebsd.org/D16494
Notes
Notes: svn path=/head/; revision=531700
Diffstat (limited to 'devel/lua-stdlib/Makefile')
-rw-r--r--devel/lua-stdlib/Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/devel/lua-stdlib/Makefile b/devel/lua-stdlib/Makefile
index dc6111a2a20a..2ae611ec0de9 100644
--- a/devel/lua-stdlib/Makefile
+++ b/devel/lua-stdlib/Makefile
@@ -4,6 +4,7 @@
PORTNAME= stdlib
PORTVERSION= 41.2.2
DISTVERSIONPREFIX= release-v
+PORTREVISION= 1
CATEGORIES= devel
PKGNAMEPREFIX= ${LUA_PKGNAMEPREFIX}
@@ -13,14 +14,14 @@ COMMENT= Standard Lua Libraries
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/COPYING
-RUN_DEPENDS= ${LUA_PKGNAMEPREFIX}stdlib-debug>=0:devel/lua-stdlib-debug \
- ${LUA_PKGNAMEPREFIX}stdlib-normalize>=2.0:devel/lua-stdlib-normalize
+RUN_DEPENDS= ${LUA_PKGNAMEPREFIX}stdlib-debug>=0:devel/lua-stdlib-debug@${LUA_FLAVOR} \
+ ${LUA_PKGNAMEPREFIX}stdlib-normalize>=2.0:devel/lua-stdlib-normalize@${LUA_FLAVOR}
OPTIONS_DEFINE= DOCS
-USES= lua
+USES= lua:module
-CONFIGURE_ARGS= LUA=${LUA_CMD}
+CONFIGURE_ARGS= --docdir=${DOCSDIR} LUA=${LUA_CMD}
GNU_CONFIGURE= yes
NO_ARCH= yes
@@ -28,4 +29,6 @@ GH_ACCOUNT= lua-stdlib
GH_PROJECT= lua-stdlib
USE_GITHUB= yes
+DOCSDIR= ${LUA_DOCSDIR}
+
.include <bsd.port.mk>