From 4caed7f238b7d12a2a1ee79f8476e1cf66983f35 Mon Sep 17 00:00:00 2001 From: Richard Gallamore Date: Fri, 6 Apr 2018 05:14:54 +0000 Subject: [PATCH] Add compilation of i18n for multi-language support during build phase. This will allow one to change the language when using seahub. Reported by: martin@wasch^ --- www/seahub/Makefile | 9 +++-- www/seahub/pkg-plist | 80 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 86 insertions(+), 3 deletions(-) diff --git a/www/seahub/Makefile b/www/seahub/Makefile index ac9694c4065a..8115ac46a163 100644 --- a/www/seahub/Makefile +++ b/www/seahub/Makefile @@ -4,7 +4,7 @@ PORTNAME= seahub DISTVERSIONPREFIX= v DISTVERSION= ${SEAHUB_VER} DISTVERSIONSUFFIX= -pro -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= www MAINTAINER= ultima@FreeBSD.org @@ -13,6 +13,8 @@ COMMENT= Web frontend for Seafile LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE.txt +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django18>=0:www/py-django18@${PY_FLAVOR} + RUN_DEPENDS= bash:shells/bash \ ${LOCALBASE}/www/haiwen/seafile-server/seafile/bin/seaf-server:net-mgmt/seafile-server \ ${PYTHON_PKGNAMEPREFIX}django18>=0:www/py-django18@${PY_FLAVOR} \ @@ -35,18 +37,19 @@ RUN_DEPENDS= bash:shells/bash \ ${PYTHON_PKGNAMEPREFIX}qrcode>0:textproc/py-qrcode@${PY_FLAVOR} \ ${PY_FUTURES} -USES= python:-2.7 shebangfix +USES= gettext-tools:build python:-2.7 shebangfix USE_GITHUB= yes GH_ACCOUNT= haiwen SHEBANG_FILES= *.sh tests/*.sh *.template *.py tools/*.py seahub/*.py NO_ARCH= yes -NO_BUILD= yes OPTIONS_DEFINE= SEAFOBJ SEAFDAV NLS OPTIONS_DEFAULT= SEAFOBJ SEAFDAV OPTIONS_SUB= yes +ALL_TARGET= locale + SEAFOBJ_DESC= Enable Seafile file object modeling support SEAFDAV_DESC= Enable Seafile WsgiDav-based support diff --git a/www/seahub/pkg-plist b/www/seahub/pkg-plist index 89db1d50b294..5d3f4b621f6c 100644 --- a/www/seahub/pkg-plist +++ b/www/seahub/pkg-plist @@ -10,85 +10,165 @@ %%SEAHUBDIR%%/fabfile/copyright.py %%SEAHUBDIR%%/fabfile/locale.py %%SEAHUBDIR%%/i18n.sh +%%SEAHUBDIR%%/locale/ar/LC_MESSAGES/django.mo %%SEAHUBDIR%%/locale/ar/LC_MESSAGES/django.po +%%SEAHUBDIR%%/locale/ar/LC_MESSAGES/djangojs.mo %%SEAHUBDIR%%/locale/ar/LC_MESSAGES/djangojs.po +%%SEAHUBDIR%%/locale/bg/LC_MESSAGES/django.mo %%SEAHUBDIR%%/locale/bg/LC_MESSAGES/django.po +%%SEAHUBDIR%%/locale/bg/LC_MESSAGES/djangojs.mo %%SEAHUBDIR%%/locale/bg/LC_MESSAGES/djangojs.po +%%SEAHUBDIR%%/locale/bg_BG/LC_MESSAGES/djangojs.mo %%SEAHUBDIR%%/locale/bg_BG/LC_MESSAGES/djangojs.po +%%SEAHUBDIR%%/locale/ca/LC_MESSAGES/django.mo %%SEAHUBDIR%%/locale/ca/LC_MESSAGES/django.po +%%SEAHUBDIR%%/locale/ca/LC_MESSAGES/djangojs.mo %%SEAHUBDIR%%/locale/ca/LC_MESSAGES/djangojs.po +%%SEAHUBDIR%%/locale/cs/LC_MESSAGES/django.mo %%SEAHUBDIR%%/locale/cs/LC_MESSAGES/django.po +%%SEAHUBDIR%%/locale/cs/LC_MESSAGES/djangojs.mo %%SEAHUBDIR%%/locale/cs/LC_MESSAGES/djangojs.po +%%SEAHUBDIR%%/locale/cs_CZ/LC_MESSAGES/djangojs.mo %%SEAHUBDIR%%/locale/cs_CZ/LC_MESSAGES/djangojs.po +%%SEAHUBDIR%%/locale/da_DK/LC_MESSAGES/djangojs.mo %%SEAHUBDIR%%/locale/da_DK/LC_MESSAGES/djangojs.po +%%SEAHUBDIR%%/locale/de/LC_MESSAGES/django.mo %%SEAHUBDIR%%/locale/de/LC_MESSAGES/django.po +%%SEAHUBDIR%%/locale/de/LC_MESSAGES/djangojs.mo %%SEAHUBDIR%%/locale/de/LC_MESSAGES/djangojs.po +%%SEAHUBDIR%%/locale/el/LC_MESSAGES/django.mo %%SEAHUBDIR%%/locale/el/LC_MESSAGES/django.po +%%SEAHUBDIR%%/locale/el/LC_MESSAGES/djangojs.mo %%SEAHUBDIR%%/locale/el/LC_MESSAGES/djangojs.po +%%SEAHUBDIR%%/locale/el_GR/LC_MESSAGES/djangojs.mo %%SEAHUBDIR%%/locale/el_GR/LC_MESSAGES/djangojs.po +%%SEAHUBDIR%%/locale/en/LC_MESSAGES/django.mo %%SEAHUBDIR%%/locale/en/LC_MESSAGES/django.po +%%SEAHUBDIR%%/locale/en/LC_MESSAGES/djangojs.mo %%SEAHUBDIR%%/locale/en/LC_MESSAGES/djangojs.po +%%SEAHUBDIR%%/locale/en_US/LC_MESSAGES/djangojs.mo %%SEAHUBDIR%%/locale/en_US/LC_MESSAGES/djangojs.po +%%SEAHUBDIR%%/locale/es/LC_MESSAGES/django.mo %%SEAHUBDIR%%/locale/es/LC_MESSAGES/django.po +%%SEAHUBDIR%%/locale/es/LC_MESSAGES/djangojs.mo %%SEAHUBDIR%%/locale/es/LC_MESSAGES/djangojs.po +%%SEAHUBDIR%%/locale/es_AR/LC_MESSAGES/django.mo %%SEAHUBDIR%%/locale/es_AR/LC_MESSAGES/django.po +%%SEAHUBDIR%%/locale/es_AR/LC_MESSAGES/djangojs.mo %%SEAHUBDIR%%/locale/es_AR/LC_MESSAGES/djangojs.po +%%SEAHUBDIR%%/locale/es_MX/LC_MESSAGES/django.mo %%SEAHUBDIR%%/locale/es_MX/LC_MESSAGES/django.po +%%SEAHUBDIR%%/locale/es_MX/LC_MESSAGES/djangojs.mo %%SEAHUBDIR%%/locale/es_MX/LC_MESSAGES/djangojs.po +%%SEAHUBDIR%%/locale/fi/LC_MESSAGES/django.mo %%SEAHUBDIR%%/locale/fi/LC_MESSAGES/django.po +%%SEAHUBDIR%%/locale/fi/LC_MESSAGES/djangojs.mo %%SEAHUBDIR%%/locale/fi/LC_MESSAGES/djangojs.po +%%SEAHUBDIR%%/locale/fr/LC_MESSAGES/django.mo %%SEAHUBDIR%%/locale/fr/LC_MESSAGES/django.po +%%SEAHUBDIR%%/locale/fr/LC_MESSAGES/djangojs.mo %%SEAHUBDIR%%/locale/fr/LC_MESSAGES/djangojs.po +%%SEAHUBDIR%%/locale/he/LC_MESSAGES/django.mo %%SEAHUBDIR%%/locale/he/LC_MESSAGES/django.po +%%SEAHUBDIR%%/locale/he/LC_MESSAGES/djangojs.mo %%SEAHUBDIR%%/locale/he/LC_MESSAGES/djangojs.po +%%SEAHUBDIR%%/locale/hr/LC_MESSAGES/djangojs.mo %%SEAHUBDIR%%/locale/hr/LC_MESSAGES/djangojs.po +%%SEAHUBDIR%%/locale/hr_HR/LC_MESSAGES/djangojs.mo %%SEAHUBDIR%%/locale/hr_HR/LC_MESSAGES/djangojs.po +%%SEAHUBDIR%%/locale/hu/LC_MESSAGES/django.mo %%SEAHUBDIR%%/locale/hu/LC_MESSAGES/django.po +%%SEAHUBDIR%%/locale/hu/LC_MESSAGES/djangojs.mo %%SEAHUBDIR%%/locale/hu/LC_MESSAGES/djangojs.po +%%SEAHUBDIR%%/locale/is/LC_MESSAGES/django.mo %%SEAHUBDIR%%/locale/is/LC_MESSAGES/django.po +%%SEAHUBDIR%%/locale/is/LC_MESSAGES/djangojs.mo %%SEAHUBDIR%%/locale/is/LC_MESSAGES/djangojs.po +%%SEAHUBDIR%%/locale/it/LC_MESSAGES/django.mo %%SEAHUBDIR%%/locale/it/LC_MESSAGES/django.po +%%SEAHUBDIR%%/locale/it/LC_MESSAGES/djangojs.mo %%SEAHUBDIR%%/locale/it/LC_MESSAGES/djangojs.po +%%SEAHUBDIR%%/locale/ja/LC_MESSAGES/django.mo %%SEAHUBDIR%%/locale/ja/LC_MESSAGES/django.po +%%SEAHUBDIR%%/locale/ja/LC_MESSAGES/djangojs.mo %%SEAHUBDIR%%/locale/ja/LC_MESSAGES/djangojs.po +%%SEAHUBDIR%%/locale/ko/LC_MESSAGES/django.mo %%SEAHUBDIR%%/locale/ko/LC_MESSAGES/django.po +%%SEAHUBDIR%%/locale/ko/LC_MESSAGES/djangojs.mo %%SEAHUBDIR%%/locale/ko/LC_MESSAGES/djangojs.po +%%SEAHUBDIR%%/locale/lt/LC_MESSAGES/django.mo %%SEAHUBDIR%%/locale/lt/LC_MESSAGES/django.po +%%SEAHUBDIR%%/locale/lt/LC_MESSAGES/djangojs.mo %%SEAHUBDIR%%/locale/lt/LC_MESSAGES/djangojs.po +%%SEAHUBDIR%%/locale/lv/LC_MESSAGES/django.mo %%SEAHUBDIR%%/locale/lv/LC_MESSAGES/django.po +%%SEAHUBDIR%%/locale/lv/LC_MESSAGES/djangojs.mo %%SEAHUBDIR%%/locale/lv/LC_MESSAGES/djangojs.po +%%SEAHUBDIR%%/locale/lv_LV/LC_MESSAGES/djangojs.mo %%SEAHUBDIR%%/locale/lv_LV/LC_MESSAGES/djangojs.po +%%SEAHUBDIR%%/locale/mk/LC_MESSAGES/django.mo %%SEAHUBDIR%%/locale/mk/LC_MESSAGES/django.po +%%SEAHUBDIR%%/locale/mk/LC_MESSAGES/djangojs.mo %%SEAHUBDIR%%/locale/mk/LC_MESSAGES/djangojs.po +%%SEAHUBDIR%%/locale/nb/LC_MESSAGES/djangojs.mo %%SEAHUBDIR%%/locale/nb/LC_MESSAGES/djangojs.po +%%SEAHUBDIR%%/locale/nb_NO/LC_MESSAGES/djangojs.mo %%SEAHUBDIR%%/locale/nb_NO/LC_MESSAGES/djangojs.po +%%SEAHUBDIR%%/locale/nl/LC_MESSAGES/django.mo %%SEAHUBDIR%%/locale/nl/LC_MESSAGES/django.po +%%SEAHUBDIR%%/locale/nl/LC_MESSAGES/djangojs.mo %%SEAHUBDIR%%/locale/nl/LC_MESSAGES/djangojs.po +%%SEAHUBDIR%%/locale/nl_NL/LC_MESSAGES/djangojs.mo %%SEAHUBDIR%%/locale/nl_NL/LC_MESSAGES/djangojs.po +%%SEAHUBDIR%%/locale/pl/LC_MESSAGES/django.mo %%SEAHUBDIR%%/locale/pl/LC_MESSAGES/django.po +%%SEAHUBDIR%%/locale/pl/LC_MESSAGES/djangojs.mo %%SEAHUBDIR%%/locale/pl/LC_MESSAGES/djangojs.po +%%SEAHUBDIR%%/locale/pt_BR/LC_MESSAGES/django.mo %%SEAHUBDIR%%/locale/pt_BR/LC_MESSAGES/django.po +%%SEAHUBDIR%%/locale/pt_BR/LC_MESSAGES/djangojs.mo %%SEAHUBDIR%%/locale/pt_BR/LC_MESSAGES/djangojs.po +%%SEAHUBDIR%%/locale/pt_PT/LC_MESSAGES/djangojs.mo %%SEAHUBDIR%%/locale/pt_PT/LC_MESSAGES/djangojs.po +%%SEAHUBDIR%%/locale/ru/LC_MESSAGES/django.mo %%SEAHUBDIR%%/locale/ru/LC_MESSAGES/django.po +%%SEAHUBDIR%%/locale/ru/LC_MESSAGES/djangojs.mo %%SEAHUBDIR%%/locale/ru/LC_MESSAGES/djangojs.po +%%SEAHUBDIR%%/locale/sk/LC_MESSAGES/django.mo %%SEAHUBDIR%%/locale/sk/LC_MESSAGES/django.po +%%SEAHUBDIR%%/locale/sk_SK/LC_MESSAGES/djangojs.mo %%SEAHUBDIR%%/locale/sk_SK/LC_MESSAGES/djangojs.po +%%SEAHUBDIR%%/locale/sl/LC_MESSAGES/django.mo %%SEAHUBDIR%%/locale/sl/LC_MESSAGES/django.po +%%SEAHUBDIR%%/locale/sl_SI/LC_MESSAGES/djangojs.mo %%SEAHUBDIR%%/locale/sl_SI/LC_MESSAGES/djangojs.po +%%SEAHUBDIR%%/locale/sv/LC_MESSAGES/django.mo %%SEAHUBDIR%%/locale/sv/LC_MESSAGES/django.po +%%SEAHUBDIR%%/locale/sv/LC_MESSAGES/djangojs.mo %%SEAHUBDIR%%/locale/sv/LC_MESSAGES/djangojs.po +%%SEAHUBDIR%%/locale/th/LC_MESSAGES/django.mo %%SEAHUBDIR%%/locale/th/LC_MESSAGES/django.po +%%SEAHUBDIR%%/locale/th_TH/LC_MESSAGES/djangojs.mo %%SEAHUBDIR%%/locale/th_TH/LC_MESSAGES/djangojs.po +%%SEAHUBDIR%%/locale/tr/LC_MESSAGES/django.mo %%SEAHUBDIR%%/locale/tr/LC_MESSAGES/django.po +%%SEAHUBDIR%%/locale/tr/LC_MESSAGES/djangojs.mo %%SEAHUBDIR%%/locale/tr/LC_MESSAGES/djangojs.po +%%SEAHUBDIR%%/locale/uk/LC_MESSAGES/django.mo %%SEAHUBDIR%%/locale/uk/LC_MESSAGES/django.po +%%SEAHUBDIR%%/locale/uk/LC_MESSAGES/djangojs.mo %%SEAHUBDIR%%/locale/uk/LC_MESSAGES/djangojs.po +%%SEAHUBDIR%%/locale/vi/LC_MESSAGES/django.mo %%SEAHUBDIR%%/locale/vi/LC_MESSAGES/django.po +%%SEAHUBDIR%%/locale/vi/LC_MESSAGES/djangojs.mo %%SEAHUBDIR%%/locale/vi/LC_MESSAGES/djangojs.po +%%SEAHUBDIR%%/locale/zh_CN/LC_MESSAGES/django.mo %%SEAHUBDIR%%/locale/zh_CN/LC_MESSAGES/django.po +%%SEAHUBDIR%%/locale/zh_CN/LC_MESSAGES/djangojs.mo %%SEAHUBDIR%%/locale/zh_CN/LC_MESSAGES/djangojs.po +%%SEAHUBDIR%%/locale/zh_TW/LC_MESSAGES/django.mo %%SEAHUBDIR%%/locale/zh_TW/LC_MESSAGES/django.po +%%SEAHUBDIR%%/locale/zh_TW/LC_MESSAGES/djangojs.mo %%SEAHUBDIR%%/locale/zh_TW/LC_MESSAGES/djangojs.po %%SEAHUBDIR%%/manage.py %%SEAHUBDIR%%/media/assets/css/bootstrap.min.b00faad199b5.css