www/unit-*: add multiple versions support for python and ruby Multiple versions of python and ruby programming languages can coexist, so adding versions to modules make them coexist as well. Bump PKGREVISION.diff -r1.7 -r1.8 pkgsrc/www/unit-python/Makefile
(osa)
@@ -1,20 +1,21 @@ | @@ -1,20 +1,21 @@ | |||
1 | # $NetBSD: Makefile,v 1.7 2023/04/18 19:24:53 osa Exp $ | 1 | # $NetBSD: Makefile,v 1.8 2023/06/30 20:49:44 osa Exp $ | |
2 | 2 | |||
3 | PKGNAME= unit-${LANG}${PYVERSSUFFIX}-${UNIT_VERSION} | 3 | PKGNAME= unit-${LANG}${PYVERSSUFFIX}-${UNIT_VERSION} | |
4 | PKGREVISION= 1 | |||
4 | COMMENT= Python module for NGINX Unit | 5 | COMMENT= Python module for NGINX Unit | |
5 | 6 | |||
6 | LANG= python | 7 | LANG= python | |
7 | MODNAME= ${LANG} | 8 | MODNAME= ${LANG}${PYVERSSUFFIX} | |
8 | 9 | |||
9 | MAINTAINER= osa@NetBSD.org | 10 | MAINTAINER= osa@NetBSD.org | |
10 | 11 | |||
11 | post-configure: | 12 | post-configure: | |
12 | ${RUN} cd ${WRKSRC} && ${SETENV} ${_CONFIGURE_SCRIPT_ENV} \ | 13 | ${RUN} cd ${WRKSRC} && ${SETENV} ${_CONFIGURE_SCRIPT_ENV} \ | |
13 | ${CONFIG_SHELL} ${CONFIG_SHELL_FLAGS} ${CONFIGURE_SCRIPT} \ | 14 | ${CONFIG_SHELL} ${CONFIG_SHELL_FLAGS} ${CONFIGURE_SCRIPT} \ | |
14 | ${LANG} --module=${MODNAME} \ | 15 | ${LANG} --module=${MODNAME} \ | |
15 | --config=${LANG}${PYVERSSUFFIX}-config | 16 | --config=${LANG}${PYVERSSUFFIX}-config | |
16 | 17 | |||
17 | .include "../../lang/${LANG}/application.mk" | 18 | .include "../../lang/${LANG}/application.mk" | |
18 | .include "../../www/unit/ext.mk" | 19 | .include "../../www/unit/ext.mk" | |
19 | .include "../../www/unit/Makefile.common" | 20 | .include "../../www/unit/Makefile.common" | |
20 | .include "../../mk/bsd.pkg.mk" | 21 | .include "../../mk/bsd.pkg.mk" |
@@ -1,19 +1,20 @@ | @@ -1,19 +1,20 @@ | |||
1 | # $NetBSD: Makefile,v 1.4 2022/02/23 04:24:37 osa Exp $ | 1 | # $NetBSD: Makefile,v 1.5 2023/06/30 20:49:44 osa Exp $ | |
2 | 2 | |||
3 | PKGNAME= unit-${LANG}${RUBY_VER}-${UNIT_VERSION} | 3 | PKGNAME= unit-${LANG}${RUBY_VER}-${UNIT_VERSION} | |
4 | PKGREVISION= 1 | |||
4 | COMMENT= Ruby module for NGINX Unit | 5 | COMMENT= Ruby module for NGINX Unit | |
5 | 6 | |||
6 | LANG= ruby | 7 | LANG= ruby | |
7 | MODNAME= ${LANG} | 8 | MODNAME= ${LANG}${RUBY_VER} | |
8 | 9 | |||
9 | MAINTAINER= osa@NetBSD.org | 10 | MAINTAINER= osa@NetBSD.org | |
10 | 11 | |||
11 | post-configure: | 12 | post-configure: | |
12 | ${RUN} cd ${WRKSRC} && ${SETENV} ${_CONFIGURE_SCRIPT_ENV} \ | 13 | ${RUN} cd ${WRKSRC} && ${SETENV} ${_CONFIGURE_SCRIPT_ENV} \ | |
13 | ${CONFIG_SHELL} ${CONFIG_SHELL_FLAGS} \ | 14 | ${CONFIG_SHELL} ${CONFIG_SHELL_FLAGS} \ | |
14 | ${CONFIGURE_SCRIPT} ${LANG} --module=${MODNAME} | 15 | ${CONFIGURE_SCRIPT} ${LANG} --module=${MODNAME} | |
15 | 16 | |||
16 | .include "../../lang/${LANG}/buildlink3.mk" | 17 | .include "../../lang/${LANG}/buildlink3.mk" | |
17 | .include "../../www/unit/ext.mk" | 18 | .include "../../www/unit/ext.mk" | |
18 | .include "../../www/unit/Makefile.common" | 19 | .include "../../www/unit/Makefile.common" | |
19 | .include "../../mk/bsd.pkg.mk" | 20 | .include "../../mk/bsd.pkg.mk" |