Changeset View
Changeset View
Standalone View
Standalone View
www/seahub/Makefile
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= seahub | PORTNAME= seahub | ||||
DISTVERSIONPREFIX= v | DISTVERSIONPREFIX= v | ||||
DISTVERSION= ${SEAHUB_VER} | DISTVERSION= ${SEAHUB_VER} | ||||
DISTVERSIONSUFFIX= -pro | DISTVERSIONSUFFIX= -pro | ||||
CATEGORIES= www | CATEGORIES= www | ||||
MAINTAINER= ultima@FreeBSD.org | MAINTAINER= ultima@FreeBSD.org | ||||
COMMENT= Web frontend for Seafile | COMMENT= Web frontend for Seafile | ||||
LICENSE= APACHE20 | LICENSE= APACHE20 | ||||
LICENSE_FILE= ${WRKSRC}/LICENSE.txt | LICENSE_FILE= ${WRKSRC}/LICENSE.txt | ||||
RUN_DEPENDS= bash:shells/bash \ | RUN_DEPENDS= bash:shells/bash \ | ||||
${LOCALBASE}/www/haiwen/seafile-server/seafile/bin/seaf-server:net-mgmt/seafile-server \ | ${LOCALBASE}/www/haiwen/seafile-server/seafile/bin/seaf-server:net-mgmt/seafile-server \ | ||||
${PYTHON_PKGNAMEPREFIX}django18>=0:www/py-django18 \ | |||||
${PYTHON_PKGNAMEPREFIX}pytz>=0:devel/py-pytz \ | ${PYTHON_PKGNAMEPREFIX}pytz>=0:devel/py-pytz \ | ||||
${PYTHON_PKGNAMEPREFIX}django-statici18n>=0:www/py-django-statici18n \ | ${DJANGO_PKGNAMEPREFIX}django-statici18n>=0:www/py-django-statici18n \ | ||||
${PYTHON_PKGNAMEPREFIX}djangorestframework>=0:www/py-djangorestframework \ | ${DJANGO_PKGNAMEPREFIX}djangorestframework>=0:www/py-djangorestframework \ | ||||
${PYTHON_PKGNAMEPREFIX}django_compressor>=0:www/py-django_compressor \ | ${DJANGO_PKGNAMEPREFIX}django_compressor>=0:www/py-django_compressor \ | ||||
${PYTHON_PKGNAMEPREFIX}django-post_office>=0:www/py-django-post_office \ | ${DJANGO_PKGNAMEPREFIX}django-post_office>=0:www/py-django-post_office \ | ||||
${PYTHON_PKGNAMEPREFIX}django-constance>=0:www/py-django-constance \ | ${DJANGO_PKGNAMEPREFIX}django-constance>=0:www/py-django-constance \ | ||||
${PYTHON_PKGNAMEPREFIX}gunicorn>=0:www/py-gunicorn \ | ${PYTHON_PKGNAMEPREFIX}gunicorn>=0:www/py-gunicorn \ | ||||
${PYTHON_PKGNAMEPREFIX}flup>=0:www/py-flup \ | ${PYTHON_PKGNAMEPREFIX}flup>=0:www/py-flup \ | ||||
${PYTHON_PKGNAMEPREFIX}chardet>=0:textproc/py-chardet \ | ${PYTHON_PKGNAMEPREFIX}chardet>=0:textproc/py-chardet \ | ||||
${PYTHON_PKGNAMEPREFIX}dateutil>=0:devel/py-dateutil \ | ${PYTHON_PKGNAMEPREFIX}dateutil>=0:devel/py-dateutil \ | ||||
${PYTHON_PKGNAMEPREFIX}requests>=0:www/py-requests \ | ${PYTHON_PKGNAMEPREFIX}requests>=0:www/py-requests \ | ||||
${PYTHON_PKGNAMEPREFIX}six>=0:devel/py-six \ | ${PYTHON_PKGNAMEPREFIX}six>=0:devel/py-six \ | ||||
${PYTHON_PKGNAMEPREFIX}openpyxl>=0:textproc/py-openpyxl \ | ${PYTHON_PKGNAMEPREFIX}openpyxl>=0:textproc/py-openpyxl \ | ||||
${PYTHON_PKGNAMEPREFIX}pillow>=0:graphics/py-pillow \ | ${PYTHON_PKGNAMEPREFIX}pillow>=0:graphics/py-pillow \ | ||||
${PYTHON_PKGNAMEPREFIX}MySQLdb>0:databases/py-MySQLdb | ${PYTHON_PKGNAMEPREFIX}MySQLdb>0:databases/py-MySQLdb | ||||
USES= python:-2.7 shebangfix | USES= django python:-2.7 shebangfix | ||||
ultima: Just finished some testing with Django 1.11, Seahub is not compatible with the newest version… | |||||
Done Inline ActionsAh, OK. This should certainly have USES= django:1.8 then You would also need DEFAULT_VERSIONS+= django=1.8 Yes, I was thinking about how this should work in a FLAVOURed ports tree. Given that seahub depends on a number of other Django modules, to support it properly we'd have to build several FLAVOURS of those modules. The three different possible versions for each Django port conflict with each other, so if one of your applications requires a particular version of Django, then all of the Django apps on that system would have to use that version. As it stands, this means that there wouldn't be precompiled Seahub packages available from the default ports repo. matthew: Ah, OK. This should certainly have USES= django:1.8 then
You would also need… | |||||
USE_GITHUB= yes | USE_GITHUB= yes | ||||
GH_ACCOUNT= haiwen | GH_ACCOUNT= haiwen | ||||
SHEBANG_FILES= *.sh tests/*.sh *.template *.py tools/*.py seahub/*.py | SHEBANG_FILES= *.sh tests/*.sh *.template *.py tools/*.py seahub/*.py | ||||
NO_ARCH= yes | NO_ARCH= yes | ||||
NO_BUILD= yes | NO_BUILD= yes | ||||
OPTIONS_DEFINE= SEAFOBJ SEAFDAV NLS | OPTIONS_DEFINE= SEAFOBJ SEAFDAV NLS | ||||
▲ Show 20 Lines • Show All 55 Lines • Show Last 20 Lines |
Just finished some testing with Django 1.11, Seahub is not compatible with the newest version and requires 1.8. I tried to change to django:1.8 and the build will fail with
Ignore: Port requires Django version 1.8 which cannot be satisfied by the default version 1.11.
I assume this new USE is being created for the flavor feature and that would probably resolve this issue, though I wonder if there would be conflicts with multiple Django versions installed or if this is even a possible or a desired scenario.