Stop automatic addition of lua5x FLAVORS.

Now if a port wants to declare support for lua52/lua53, it must do so
explicitely.  Hopefully this will result in lua libraries being better
tested with the lua versions we support.

Agreement from sthen@ when discussed on ports@, bulk build tests by
ajacoutot@.
This commit is contained in:
jca 2016-10-31 18:46:09 +00:00
parent 5b7a21f817
commit f2a95a464e

View File

@ -1,4 +1,4 @@
# $OpenBSD: lua.port.mk,v 1.34 2016/06/07 11:51:52 jca Exp $
# $OpenBSD: lua.port.mk,v 1.35 2016/10/31 18:46:09 jca Exp $
CATEGORIES += lang/lua
@ -10,18 +10,6 @@ CATEGORIES += lang/lua
# Define the default version and use that if MODLUA_VERSION is not set.
MODLUA_DEFAULT_VERSION = 5.1
# If a port already has flavors, append our lua flavors to it, unless it
# requests specific versions of lua. Otherwise set the FLAVORS list to
# just the lua flavors.
_MODLUA_FLAVORS = lua52 lua53
.if !defined(MODLUA_VERSION)
. if !defined(FLAVORS)
FLAVORS ?= ${_MODLUA_FLAVORS}
. elif !${FLAVORS:M${_MODLUA_FLAVORS}}
FLAVORS += ${_MODLUA_FLAVORS}
. endif
.endif
FLAVOR ?= # empty
# without a flavor, assume ${MODLUA_DEFAULT_VERSION}