Would it be a bad idea to add something like MODPY_RUNDEP to
lua.port.mk, so I can add lang/lua to MODULES without lua being a
"global" dependency in case of MULTI_PACKAGES?
AFAIK one can not set MODULES for specific subpackages
(correct me if I'm wrong).
Sure, the lua package isn't that big,
but I guess it wouldn't hurt adding this.
--
Simon
Index: lua.port.mk
===================================================================
RCS file: /cvs/ports/lang/lua/lua.port.mk,v
retrieving revision 1.6
diff -u -r1.6 lua.port.mk
--- lua.port.mk 17 Nov 2010 08:05:18 -0000 1.6
+++ lua.port.mk 7 Nov 2011 17:58:19 -0000
@@ -11,7 +11,11 @@
# Where the lua modules will be installed to
MODLUA_DATADIR= ${PREFIX}/share/lua/${MODLUA_VERSION}/
+MODLUA_RUNDEP?= Yes
+
+.if ${MODLUA_RUNDEP:L} == yes
RUN_DEPENDS+= lang/lua
+.endif
.if ${NO_BUILD:L} == "no"
BUILD_DEPENDS+= lang/lua
Index: port-modules.5
===================================================================
RCS file: /cvs/src/share/man/man5/port-modules.5,v
retrieving revision 1.106
diff -u -r1.106 port-modules.5
--- port-modules.5 3 Oct 2011 11:01:32 -0000 1.106
+++ port-modules.5 8 Nov 2011 10:41:53 -0000
@@ -473,7 +473,8 @@
MODGHC_SETUP_CONF_ENV.
.It lang/lua
Sets MODLUA_VERSION, MODLUA_LIBDIR, MODLUA_DATADIR.
-Appends to RUN_DEPENDS and CATEGORIES.
+Appends to RUN_DEPENDS unless MODLUA_RUNDEP is set to No.
+Also appends to CATEGORIES.
Also appends to BUILD_DEPENDS, unless NO_BUILD has been set to Yes.
Also affects PKG_ARCH when SHARED_ONLY is not set or set to No.
.It lang/mono