summaryrefslogtreecommitdiff
path: root/devel/lua-stdlib-normalize/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-normalize/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-normalize/Makefile')
-rw-r--r--devel/lua-stdlib-normalize/Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/devel/lua-stdlib-normalize/Makefile b/devel/lua-stdlib-normalize/Makefile
index bdf0cf422d3a..4a58b26e923d 100644
--- a/devel/lua-stdlib-normalize/Makefile
+++ b/devel/lua-stdlib-normalize/Makefile
@@ -3,6 +3,7 @@
PORTNAME= stdlib-normalize
PORTVERSION= 2.0.2
DISTVERSIONPREFIX= v
+PORTREVISION= 1
CATEGORIES= devel
PKGNAMEPREFIX= ${LUA_PKGNAMEPREFIX}
@@ -12,10 +13,10 @@ COMMENT= Collection of normalized lua functions
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE.md
-RUN_DEPENDS= ${LUA_PKGNAMEPREFIX}stdlib-debug>=0:devel/lua-stdlib-debug
+RUN_DEPENDS= ${LUA_PKGNAMEPREFIX}stdlib-debug>=0:devel/lua-stdlib-debug@${LUA_FLAVOR}
NO_ARCH= yes
-USES= lua
+USES= lua:module
USE_GITHUB= yes
GH_ACCOUNT= lua-stdlib
@@ -23,7 +24,7 @@ GH_PROJECT= normalize
OPTIONS_DEFINE= DOCS
-DOCSDIR= ${PREFIX}/share/doc/lua${LUA_VER_STR}/${PORTNAME}
+DOCSDIR= ${LUA_DOCSDIR}
do-install:
@${MKDIR} ${STAGEDIR}${LUA_MODSHAREDIR}/std/normalize