Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Apr 2018 05:14:54 +0000 (UTC)
From:      Richard Gallamore <ultima@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r466616 - head/www/seahub
Message-ID:  <201804060514.w365Es0j094063@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ultima
Date: Fri Apr  6 05:14:54 2018
New Revision: 466616
URL: https://svnweb.freebsd.org/changeset/ports/466616

Log:
  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^

Modified:
  head/www/seahub/Makefile
  head/www/seahub/pkg-plist

Modified: head/www/seahub/Makefile
==============================================================================
--- head/www/seahub/Makefile	Fri Apr  6 05:14:11 2018	(r466615)
+++ head/www/seahub/Makefile	Fri Apr  6 05:14:54 2018	(r466616)
@@ -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,17 +37,18 @@ 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

Modified: head/www/seahub/pkg-plist
==============================================================================
--- head/www/seahub/pkg-plist	Fri Apr  6 05:14:11 2018	(r466615)
+++ head/www/seahub/pkg-plist	Fri Apr  6 05:14:54 2018	(r466616)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201804060514.w365Es0j094063>