Created attachment 209905 [details] py-flask-babelex.shar
Created attachment 210032 [details] py-flask-babelex.diff
* Fix test of locales (not only FreeBSD issue: https://github.com/mrjoes/flask-babelex/issues/17 - I will send PR upstream) QA: * portlint: OK (looks fine.) * testport: OK (poudriere: 12.0, amd64 tested) * maketest: OK (17 passed, 2 warnings tests PASS)
Review items (already fixed locally): - COMMENT should match setup.py:description (modulo portlint compliance) - setup.py:*_requires declares version requirements, match these as closely as possible, given our *_DEPENDS syntax: install_requires=[ 'Flask', 'Babel>=1.0', 'speaklater>=1.2', 'Jinja2>=2.5' ], - Port Makefile calls pytest but doesn't TEST_DEPEND on pytest - Doesn't appear project requires pytest (calls `python tests.py` [1]) - Add comments to patches wherever possible, ideally including upstream issue/PR/commit urls where applicable [1] Makefile: @cd tests; python tests.py
Also: - lowercase(PORTNAME), adjusting DISTNAME accordingly to correctly fetch
A commit references this bug: Author: koobs Date: Sat Jan 11 12:30:18 UTC 2020 New revision: 522682 URL: https://svnweb.freebsd.org/changeset/ports/522682 Log: [NEW] www/py-flask-babelex: Support i18n/l10n in Flask applications This is fork of official Flask-Babel extension with following features: - Possible to use multiple language catalogs in one Flask application; - Localization domains: your extension can package localization file(s) and use them if necessary; - Does not reload localizations for each request. WWW: https://github.com/mrjoes/flask-babelex PR: 242616 Submitted by: Goran Meki? <mek tilda center> Changes: head/www/Makefile head/www/py-flask-babelex/ head/www/py-flask-babelex/Makefile head/www/py-flask-babelex/distinfo head/www/py-flask-babelex/files/ head/www/py-flask-babelex/files/patch-tests_tests.py head/www/py-flask-babelex/pkg-descr
Committed with changes, thank you Goran! Since lowercase'ing PORTNAME here, bug 242617 needs updating (lowercasing respective *_DEPENDS)