[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / devel / py-trytond

File: [cvs.NetBSD.org] / pkgsrc / devel / py-trytond / Makefile (download)

Revision 1.15, Sun Dec 4 21:12:59 2016 UTC (7 years, 2 months ago) by rodent
Branch: MAIN
CVS Tags: pkgsrc-2016Q4-base, pkgsrc-2016Q4
Changes since 1.14: +24 -2 lines


It's time to make Tryton great again. This update is YUGE. There are 71
new packages. Most of which are the remaining modules of the Tryton
platform which weren't packaged. The others are dependencies of the new
modules. This was tested on FreeBSD and is based in large part on Richard
Palo's (richard@) work. This is the most recent release of the Tryton
platform, version 4.2. There's a very large list of changes from the 3.8
series we have in pkgsrc. If you're interested, those functional changes
can be found here:

http://www.tryton.org/posts/new-tryton-release-42.html
http://www.tryton.org/posts/new-tryton-release-40.html

# $NetBSD: Makefile,v 1.15 2016/12/04 21:12:59 rodent Exp $
TRYTON_MODULE_NAME=	trytond
.include "../../devel/py-trytond/Makefile.common"
CATEGORIES=	devel python

MAINTAINER=	rodent@NetBSD.org
HOMEPAGE=	http://www.tryton.org/
COMMENT=	Server of the Tryton application platform
LICENSE=	gnu-gpl-v3

DEPENDS+=	${PYPKGPREFIX}-python-sql>=0.4:../../databases/py-python-sql
DEPENDS+=	${PYPKGPREFIX}-polib-[0-9]*:../../devel/py-polib
DEPENDS+=	${PYPKGPREFIX}-wrapt-[0-9]*:../../devel/py-wrapt
DEPENDS+=	${PYPKGPREFIX}-bcrypt-[0-9]*:../../security/py-bcrypt
DEPENDS+=	${PYPKGPREFIX}-relatorio>=0.2.0:../../textproc/py-relatorio
DEPENDS+=	${PYPKGPREFIX}-lxml>=2.0:../../textproc/py-lxml
DEPENDS+=	${PYPKGPREFIX}-genshi-[0-9]*:../../www/py-genshi
DEPENDS+=	${PYPKGPREFIX}-werkzeug-[0-9]*:../../www/py-werkzeug

USE_LANGUAGES=	# none

REPLACE_PYTHON+=	trytond/tests/run-tests.py trytond/tests/test_access.py
REPLACE_PYTHON+=	trytond/tests/test_cache.py trytond/tests/test_copy.py
REPLACE_PYTHON+=	trytond/tests/test_exportdata.py
REPLACE_PYTHON+=	trytond/tests/test_fields.py
REPLACE_PYTHON+=	trytond/tests/test_importdata.py
REPLACE_PYTHON+=	trytond/tests/test_mixins.py
REPLACE_PYTHON+=	trytond/tests/test_modelsingleton.py
REPLACE_PYTHON+=	trytond/tests/test_modelsql.py
REPLACE_PYTHON+=	trytond/tests/test_mptt.py trytond/tests/test_pyson.py
REPLACE_PYTHON+=	trytond/tests/test_sequence.py
REPLACE_PYTHON+=	trytond/tests/test_tools.py
REPLACE_PYTHON+=	trytond/tests/test_transaction.py
REPLACE_PYTHON+=	trytond/tests/test_trigger.py
REPLACE_PYTHON+=	trytond/tests/test_tryton.py

PYTHON_VERSIONED_DEPENDENCIES=	dateutil
PY_PATCHPLIST=			yes
PLIST_SUBST+=			PYPKGPREFIX=${PYPKGPREFIX}

.include "options.mk"

OPSYSVARS+=		DEPENDS
DEPENDS.Darwin+=	${PYPKGPREFIX}-py2app-[0-9]*:../../devel/py-py2app

RCD_SCRIPTS=		trytond
CONFDIR=		${PKG_SYSCONFDIR}/${PKGBASE}
EGDIR=			share/examples/${PKGBASE}
INSTALLATION_DIRS+=	${EGDIR} share/${PKGBASE}

CONF_FILES+=		${EGDIR}/trytond.conf.example \
				${CONFDIR}/trytond.conf
CONF_FILES+=		${EGDIR}/logging.conf.example \
				${CONFDIR}/logging.conf

post-install:
	${MV} ${DESTDIR}${PREFIX}/bin/trytond-admin \
		${DESTDIR}${PREFIX}/bin/trytond-admin${PYVERSSUFFIX}
	${MV} ${DESTDIR}${PREFIX}/bin/trytond-cron \
		${DESTDIR}${PREFIX}/bin/trytond-cron${PYVERSSUFFIX}
	${MV} ${DESTDIR}${PREFIX}/bin/trytond \
		${DESTDIR}${PREFIX}/bin/trytond${PYVERSSUFFIX}
	${INSTALL_DATA} ${FILESDIR}/trytond.conf.example \
		${DESTDIR}${PREFIX}/${EGDIR}/trytond.conf.example
	${INSTALL_DATA} ${FILESDIR}/logging.conf.example \
		${DESTDIR}${PREFIX}/${EGDIR}/logging.conf.example

.include "../../lang/python/application.mk"
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"