1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00:00

finance/odoo: Update to 16.0.20240222

This commit is contained in:
Jose Alonso Cardenas Marquez 2024-02-22 18:07:53 -05:00
parent 4472d02b2c
commit ec00176239
No known key found for this signature in database
GPG Key ID: 335B9246BA5E30F4
5 changed files with 5527 additions and 9023 deletions

View File

@ -1,6 +1,5 @@
PORTNAME= odoo
PORTVERSION= 16.0.20230804
PORTREVISION= 2
PORTVERSION= 16.0.20240222
CATEGORIES= finance www
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@ -11,7 +10,7 @@ WWW= https://www.odoo.com
LICENSE= LGPL3
USE_GITHUB= yes
GH_TAGNAME= b46544d3cbd4116f69a03064c61798cef8435c5b
GH_TAGNAME= ecb1f0268adde613bbcb0aa122c0c53847a600a9
LIB_DEPENDS= libxml2.so:textproc/libxml2 \
libxslt.so:textproc/libxslt \
@ -56,7 +55,7 @@ RUN_DEPENDS= wkhtmltopdf>0:converters/wkhtmltopdf \
${PYTHON_PKGNAMEPREFIX}libsass>0:www/py-libsass@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}requests-file>0:www/py-requests-file@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}werkzeug>0:www/py-werkzeug@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}werkzeug2>0:www/py-werkzeug2@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}secure-cookie>0:www/py-secure-cookie@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}XlsxWriter>=0:textproc/py-xlsxwriter@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}xlrd>=1.2.0:textproc/py-xlrd@${PY_FLAVOR} \
@ -64,14 +63,15 @@ RUN_DEPENDS= wkhtmltopdf>0:converters/wkhtmltopdf \
${PYTHON_PKGNAMEPREFIX}ofxparse>=0.20:finance/py-ofxparse@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}ebaysdk>=2.1.3:finance/py-ebaysdk@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}idna>0:dns/py-idna@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}stdnum>0:devel/py-stdnum@${PY_FLAVOR}
${PYTHON_PKGNAMEPREFIX}stdnum>0:devel/py-stdnum@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}rjsmin>0:archivers/py-rjsmin@${PY_FLAVOR}
${PYTHON_PKGNAMEPREFIX}cryptography-legacy>0:security/py-cryptography-legacy@${PY_FLAVOR}
USES= cpe ldap python pgsql shebangfix
USE_PYTHON= distutils
SHEBANG_LANG= python
SHEBANG_FILES= ${WRKSRC}/${PORTNAME}/addons/point_of_sale/tools/posbox/overwrite_before_init/etc/init.d/timesyncd \
${WRKSRC}/${PORTNAME}/addons/point_of_sale/tools/posbox/overwrite_before_init/etc/init.d/odoo \
SHEBANG_FILES= ${WRKSRC}/${PORTNAME}/addons/point_of_sale/tools/posbox/overwrite_before_init/etc/init.d/odoo \
${WRKSRC}/${PORTNAME}/addons/web/static/lib/select2/release.sh \
${WRKSRC}/${PORTNAME}/addons/web/tooling/*.sh \
${WRKSRC}/${PORTNAME}/addons/web/tooling/hooks/pre-commit \
@ -92,7 +92,7 @@ post-patch:
@${REINPLACE_CMD} -i "" -e 's|(index !== |(index == |g' \
${WRKSRC}/odoo/addons/web/static/src/legacy/js/libs/content-disposition.js \
${WRKSRC}/odoo/addons/web/static/src/core/network/download.js
@${REINPLACE_CMD} -i "" -e 's|charset =|_charset =|g' ${WRKSRC}/odoo/http.py
@${RM} ${WRKSRC}/odoo/release.py.orig
post-extract:
@cd ${WRKSRC}/addons/ && ${MV} * ${WRKSRC}/odoo/addons/

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1691214238
SHA256 (odoo-odoo-16.0.20230804-b46544d3cbd4116f69a03064c61798cef8435c5b_GH0.tar.gz) = 86e044f9d79fa42e0c718a33701dfb09539c1323b9efd8e0e5a66bc19a789421
SIZE (odoo-odoo-16.0.20230804-b46544d3cbd4116f69a03064c61798cef8435c5b_GH0.tar.gz) = 156000245
TIMESTAMP = 1708628850
SHA256 (odoo-odoo-16.0.20240222-ecb1f0268adde613bbcb0aa122c0c53847a600a9_GH0.tar.gz) = 271ec3129c8e280acf2619d995cccbdb9ece023f1ec341b9289aa943e4e64ab0
SIZE (odoo-odoo-16.0.20240222-ecb1f0268adde613bbcb0aa122c0c53847a600a9_GH0.tar.gz) = 158008620

View File

@ -45,7 +45,9 @@ command_args="--database=${odoo_database} --data-dir=${odoo_datadir} --logfile=/
odoo_start_precmd() {
odoo_datadir_check
touch ${pidfile}
touch /var/log/${name}.log
${chown_cmd} -R ${odoo_user}:${odoo_user} ${pidfile}
${chown_cmd} -R ${odoo_user}:${odoo_user} /var/log/${name}.log
}
odoo_start()

View File

@ -0,0 +1,11 @@
--- odoo/release.py.orig 2024-02-22 22:03:20 UTC
+++ odoo/release.py
@@ -12,7 +12,7 @@ RELEASE_LEVELS_DISPLAY = {ALPHA: ALPHA,
# properly comparable using normal operators, for example:
# (6,1,0,'beta',0) < (6,1,0,'candidate',1) < (6,1,0,'candidate',2)
# (6,1,0,'candidate',2) < (6,1,0,'final',0) < (6,1,2,'final',0)
-version_info = ('saas~16', 4, 0, FINAL, 0, '')
+version_info = ('16', 4, 0, FINAL, 0, '')
version = '.'.join(str(s) for s in version_info[:2]) + RELEASE_LEVELS_DISPLAY[version_info[3]] + str(version_info[4] or '') + version_info[5]
series = serie = major_version = '.'.join(str(s) for s in version_info[:2])

File diff suppressed because it is too large Load Diff