6c6b725235
. update tryton28 ports; [1] . connect tryton28 ports to build; . register conflicts at tryton ports. PR: ports/181691 [1] Submitted by: Matthias Petermann <matthias@petermann-it.de> [1] Approved by: Matthias Petermann <matthias@petermann-it.de>
74 lines
2.1 KiB
Makefile
74 lines
2.1 KiB
Makefile
# Created by: Matthias Petermann <matthias@petermann-it.de>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= trytond
|
|
PORTVERSION= 2.8.2
|
|
CATEGORIES= finance python
|
|
MASTER_SITES= https://pypi.python.org/packages/source/t/trytond/ \
|
|
http://downloads.tryton.org/${PORTVERSION:R}/
|
|
PKGNAMESUFFIX= 28
|
|
|
|
MAINTAINER= matthias@petermann-it.de
|
|
COMMENT= Tryton Application Platform (Server)
|
|
|
|
LICENSE= GPLv3
|
|
|
|
BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/mx/__init__.py:${PORTSDIR}/lang/py-mx-base \
|
|
${PYTHON_PKGNAMEPREFIX}psycopg2>0:${PORTSDIR}/databases/py-psycopg2 \
|
|
${PYTHON_PKGNAMEPREFIX}lxml>0:${PORTSDIR}/devel/py-lxml \
|
|
${PYTHON_PKGNAMEPREFIX}Genshi>0.5.1:${PORTSDIR}/textproc/py-genshi \
|
|
${PYTHON_PKGNAMEPREFIX}relatorio>=0.6.0:${PORTSDIR}/print/py-relatorio \
|
|
${PYTHON_PKGNAMEPREFIX}polib>=0.7.0:${PORTSDIR}/devel/py-polib \
|
|
${PYTHON_PKGNAMEPREFIX}dateutil>=1.5:${PORTSDIR}/devel/py-dateutil
|
|
RUN_DEPENDS:= ${BUILD_DEPENDS}
|
|
|
|
CONFLICTS= trytond-2.[46].*
|
|
|
|
USERS= trytond
|
|
GROUPS= trytond
|
|
|
|
OPTIONS_DEFINE= WEBDAV PYOPENSSL PYDOT PYTZ
|
|
WEBDAV_DESC= Add support for pywebdav
|
|
PYOPENSSL_DESC= Add support for pyOpenSSL
|
|
PYDOT_DESC= Add support for pydot
|
|
PYTZ_DESC= Add support for pytz
|
|
|
|
USE_RC_SUBR= ${PORTNAME}
|
|
SUB_FILES= pkg-message
|
|
SUB_LIST= PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR} \
|
|
PYEASYINSTALL_EGG=${PYEASYINSTALL_EGG} \
|
|
PYTHON=${PYTHON_CMD}
|
|
|
|
PIDDIR?= /var/run
|
|
LOGDIR?= /var/log
|
|
|
|
USE_PYTHON= yes
|
|
USE_PYDISTUTILS=easy_install
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|%%PIDDIR%%|${PIDDIR}|g' -e 's|%%LOGDIR%%|${LOGDIR}|g' \
|
|
${WRKSRC}/etc/${PORTNAME}.conf
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MWEBDAV}
|
|
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}PyWebDAV>=0:${PORTSDIR}/www/py-pywebdav
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MPYOPENSSL}
|
|
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}openssl>=0:${PORTSDIR}/security/py-openssl
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MPYDOT}
|
|
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}pydot>=0:${PORTSDIR}/graphics/py-pydot
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MPYTZ}
|
|
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}pytz>=0:${PORTSDIR}/devel/py-pytz
|
|
.endif
|
|
|
|
post-install:
|
|
${CP} -p ${WRKSRC}/etc/${PORTNAME}.conf ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf.sample
|
|
|
|
.include <bsd.port.mk>
|