No need to repeat the same things over and over again for all modules.

Introduce a TRYTOND_MODULE variable and factorize common variables.
This commit is contained in:
ajacoutot 2011-06-20 05:19:26 +00:00
parent f01db022f8
commit 1c46f2e33a
8 changed files with 32 additions and 50 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile.inc,v 1.3 2011/06/13 17:07:45 ajacoutot Exp $
# $OpenBSD: Makefile.inc,v 1.4 2011/06/20 05:19:26 ajacoutot Exp $
MODPY_EGG_VERSION ?= 2.0.1
@ -27,3 +27,10 @@ REGRESS_DEPENDS ?= ${RUN_DEPENDS}
# Some regression tests need read access to /etc/trytond.conf (not
# available for unprivilege users) and a trytond server running.
REGRESS_IS_INTERACTIVE= Yes
.if defined(TRYTOND_MODULE)
COMMENT ?= trytond ${TRYTOND_MODULE} account
DISTNAME ?= trytond_${TRYTOND_MODULE}-${MODPY_EGG_VERSION}
PKGNAME ?= trytond-module-${TRYTOND_MODULE}-${MODPY_EGG_VERSION}
RUN_DEPENDS += productivity/tryton/trytond
.endif

View File

@ -1,12 +1,9 @@
# $OpenBSD: Makefile,v 1.1.1.1 2011/06/13 17:08:33 ajacoutot Exp $
COMMENT = trytond calendar module
# $OpenBSD: Makefile,v 1.2 2011/06/20 05:19:26 ajacoutot Exp $
MODPY_EGG_VERSION = 2.0.0
DISTNAME = trytond_calendar-${MODPY_EGG_VERSION}
PKGNAME = trytond-module-calendar-${MODPY_EGG_VERSION}
TRYTOND_MODULE = calendar
REVISION = 0
RUN_DEPENDS = productivity/tryton/trytond \
textproc/py-vobject
RUN_DEPENDS = textproc/py-vobject
.include <bsd.port.mk>

View File

@ -1,11 +1,7 @@
# $OpenBSD: Makefile,v 1.1.1.1 2011/06/13 17:09:29 ajacoutot Exp $
COMMENT = trytond country module
# $OpenBSD: Makefile,v 1.2 2011/06/20 05:19:26 ajacoutot Exp $
MODPY_EGG_VERSION = 2.0.0
DISTNAME = trytond_country-${MODPY_EGG_VERSION}
PKGNAME = trytond-module-country-${MODPY_EGG_VERSION}
RUN_DEPENDS = productivity/tryton/trytond
TRYTOND_MODULE = country
REVISION = 0
.include <bsd.port.mk>

View File

@ -1,10 +1,6 @@
# $OpenBSD: Makefile,v 1.1.1.1 2011/06/13 17:10:16 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.2 2011/06/20 05:19:26 ajacoutot Exp $
COMMENT = trytond currency module
DISTNAME = trytond_currency-${MODPY_EGG_VERSION}
PKGNAME = trytond-module-currency-${MODPY_EGG_VERSION}
RUN_DEPENDS = productivity/tryton/trytond
TRYTOND_MODULE = currency
REVISION = 0
.include <bsd.port.mk>

View File

@ -1,11 +1,7 @@
# $OpenBSD: Makefile,v 1.1.1.1 2011/06/13 17:13:37 ajacoutot Exp $
COMMENT = trytond dashboard module
# $OpenBSD: Makefile,v 1.2 2011/06/20 05:19:26 ajacoutot Exp $
MODPY_EGG_VERSION = 2.0.0
DISTNAME = trytond_dashboard-${MODPY_EGG_VERSION}
PKGNAME = trytond-module-dashboard-${MODPY_EGG_VERSION}
RUN_DEPENDS = productivity/tryton/trytond
TRYTOND_MODULE = dashboard
REVISION = 0
.include <bsd.port.mk>

View File

@ -1,12 +1,9 @@
# $OpenBSD: Makefile,v 1.1.1.1 2011/06/13 17:14:37 ajacoutot Exp $
COMMENT = trytond ldap_authentication module
# $OpenBSD: Makefile,v 1.2 2011/06/20 05:19:26 ajacoutot Exp $
MODPY_EGG_VERSION = 2.0.0
DISTNAME = trytond_ldap_authentication-${MODPY_EGG_VERSION}
PKGNAME = trytond-module-ldap_authentication-${MODPY_EGG_VERSION}
TRYTOND_MODULE = ldap_authentication
REVISION = 0
RUN_DEPENDS = productivity/tryton/trytond \
databases/py-ldap
RUN_DEPENDS = databases/py-ldap
.include <bsd.port.mk>

View File

@ -1,12 +1,9 @@
# $OpenBSD: Makefile,v 1.1.1.1 2011/06/13 17:15:31 ajacoutot Exp $
COMMENT = trytond ldap_connection module
# $OpenBSD: Makefile,v 1.2 2011/06/20 05:19:26 ajacoutot Exp $
MODPY_EGG_VERSION = 2.0.0
DISTNAME = trytond_ldap_connection-${MODPY_EGG_VERSION}
PKGNAME = trytond-module-ldap_connection-${MODPY_EGG_VERSION}
TRYTOND_MODULE = ldap_connection
REVISION = 0
RUN_DEPENDS = productivity/tryton/trytond \
databases/py-ldap
RUN_DEPENDS = databases/py-ldap
.include <bsd.port.mk>

View File

@ -1,10 +1,6 @@
# $OpenBSD: Makefile,v 1.1.1.1 2011/06/13 17:16:22 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.2 2011/06/20 05:19:26 ajacoutot Exp $
COMMENT = trytond product module
DISTNAME = trytond_product-${MODPY_EGG_VERSION}
PKGNAME = trytond-module-product-${MODPY_EGG_VERSION}
RUN_DEPENDS = productivity/tryton/trytond
TRYTOND_MODULE = product
REVISION = 0
.include <bsd.port.mk>