Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Oct 2018 10:58:43 +0000 (UTC)
From:      Rene Ladan <rene@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r481439 - in head/textproc/pootle: . files
Message-ID:  <201810071058.w97Awh9R015032@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rene
Date: Sun Oct  7 10:58:42 2018
New Revision: 481439
URL: https://svnweb.freebsd.org/changeset/ports/481439

Log:
  textproc/pootle: update to 2.8.2
  
  This version does not fully work yet, but neither does version 2.5.1.3 anymore.
  Furthermore, version 2.5.1.3 was last updated upstream on 2015-06-03
  
  - License switched from GPL2 to GPL3
  - Switch from CHEESESHOP to GitHub
  - LDAP support has been (temporarily) dropped upstream
  - MEMCACHED has been replaced by Redis
  - Switch default database to SQLite for easier testing

Deleted:
  head/textproc/pootle/files/patch-pootle_apps_djblets_util_fields.py
  head/textproc/pootle/files/patch-pootle_apps_pootle__app_views_admin_dashboard.py
  head/textproc/pootle/files/patch-pootle_apps_pootle__misc_forms.py
  head/textproc/pootle/files/patch-pootle_apps_pootle__misc_util.py
  head/textproc/pootle/files/patch-pootle_apps_pootle__store_models.py
  head/textproc/pootle/files/patch-pootle_apps_pootle__store_views.py
  head/textproc/pootle/files/patch-pootle_apps_pootle__terminology_views.py
  head/textproc/pootle/files/patch-pootle_apps_registration_models.py
  head/textproc/pootle/files/patch-pootle_middleware_captcha.py
  head/textproc/pootle/files/patch-pootle_middleware_errorpages.py
Modified:
  head/textproc/pootle/Makefile
  head/textproc/pootle/distinfo
  head/textproc/pootle/pkg-descr

Modified: head/textproc/pootle/Makefile
==============================================================================
--- head/textproc/pootle/Makefile	Sun Oct  7 10:29:06 2018	(r481438)
+++ head/textproc/pootle/Makefile	Sun Oct  7 10:58:42 2018	(r481439)
@@ -2,71 +2,90 @@
 # $FreeBSD$
 
 PORTNAME=	pootle
-PORTVERSION=	2.5.1.3
-PORTREVISION=	3
+DISTVERSION=	2.8.2
 CATEGORIES=	textproc
-MASTER_SITES=	CHEESESHOP
-DISTNAME=	Pootle-${PORTVERSION}
 
 MAINTAINER=	rene@FreeBSD.org
 COMMENT=	User-friendly web portal for simple translation process
 
-LICENSE=	GPLv2
+LICENSE=	GPLv3
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-RUN_DEPENDS=	translate-toolkit>=1.11.0:textproc/translate-toolkit \
-		${PYTHON_PKGNAMEPREFIX}argparse>=0:devel/py-argparse@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}cssmin>=0.1.4:www/py-cssmin@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}south>=0.7.6:databases/py-south@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}lxml>=2.1.4:devel/py-lxml@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}django-assets>=0.8:www/py-django-assets@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}django-taggit>0.10:www/py-django-taggit@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}django-voting>=0.1:www/py-django-voting@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}south>=0.7.6:databases/py-south@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}diff-match-patch>=0:textproc/py-diff-match-patch@${PY_FLAVOR}
-# actually diff-match-patch is a dependency of translate-toolkit,
-# but only this port uses it.
+RUN_DEPENDS=	translate-toolkit>=2.2.5:textproc/translate-toolkit \
+		${PYTHON_PKGNAMEPREFIX}Babel>=2.5.1:devel/py-babel@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}bleach>=2.0.0:www/py-bleach@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}country>=17.5.14:devel/py-country@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}cssmin>=0.2.0:www/py-cssmin@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}dateutil>=2.6.1:devel/py-dateutil@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}diff-match-patch>=20121119:textproc/py-diff-match-patch@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}dirsync>=2.2.2:sysutils/py-dirsync@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}django-allauth>=0.33.0:www/py-django-allauth@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}django-assets>=0.12:www/py-django-assets@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}django-bulk-update>=2.2.0:www/py-django-bulk-update@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}django-contact-form>=1.4.2:www/py-django-contact-form@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}django-contrib-comments>=1.7.3:www/py-django-contrib-comments@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}django-overextends>=0.4.3:www/py-django-overextends@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}django-redis>=4.8.0:www/py-django-redis@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}django-rq>=0.9.6:devel/py-django-rq@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}django-sortedm2m>=1.5.0:www/py-django-sortedm2m@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}django-statici18n>=1.4.0:www/py-django-statici18n@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}jsonfield>=2.0.2:www/py-jsonfield@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}lxml>=3.5:devel/py-lxml@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}markdown>=2.6.9:textproc/py-markdown@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pathlib>=1.0.1:devel/py-pathlib@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}python-Levenshtein>=0.12.0:devel/py-python-Levenshtein@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pytz>=2017.2:devel/py-pytz@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}raven>=6.1.0:devel/py-raven@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}scandir>=1.5:sysutils/py-scandir@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}stemming>=1.0.1:textproc/py-stemming@${PY_FLAVOR}
 
-NO_ARCH=	yes
 USES=		gettext python:2.7 tar:bzip2 shebangfix
 USE_PYTHON=	autoplist distutils
-SHEBANG_FILES=	pootle/assets/admin/js/compress.py
+USE_GITHUB=	yes
 
+GH_ACCOUNT=	translate
+
+NO_ARCH=	yes
+
 USERS=		pootle
 GROUPS=		pootle
 
-PLIST_SUB+=	POOTLEUSER="${USERS}" \
-		POOTLEGROUP="${GROUPS}"
+SUB_LIST+=	POOTLEUSER="${USERS}" \
+		POOTLEGROUP="${GROUPS}" \
+		POOTLERUNDIR="/var/run/${PORTNAME}/"
 
 USE_RC_SUBR=	pootle
 SUB_LIST+=	PYTHON_CMD="${PYTHON_CMD}"
 
-PORTDOCS=	CREDITS INSTALL LICENSE
+PORTDOCS=	AUTHORS CONTRIBUTING.rst INSTALL README.rst
 
-OPTIONS_DEFINE=	DOCS LDAP MEMCACHED
+OPTIONS_DEFINE=	DOCS
 OPTIONS_GROUP=	DB
 DB_DESC=	Database backend
-OPTIONS_GROUP_DB=MYSQL PGSQL
-OPTIONS_DEFAULT=MEMCACHED MYSQL
+OPTIONS_GROUP_DB=MYSQL PGSQL SQLITE
+OPTIONS_DEFAULT=SQLITE
 
-MEMCACHED_DESC=	Use memcached to improve performance
-
-LDAP_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}ldap2>0:devel/py-ldap2@${PY_FLAVOR}
-
-MEMCACHED_LIB_DEPENDS=	libmemcached.so:databases/libmemcached
-MEMCACHED_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}python-memcached>=1.45:databases/py-python-memcached@${PY_FLAVOR}
-
 MYSQL_USES=		mysql:client
-MYSQL_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}MySQLdb>0:databases/py-MySQLdb@${PY_FLAVOR}
+MYSQL_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}mysqlclient>=1.3.3:databases/py-mysqlclient@${PY_FLAVOR}
+PGSQL_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}psycopg2>=2.4.5:databases/py-psycopg2@${PY_FLAVOR}
+SQLITE_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}sqlite3>=0:databases/py-sqlite3@${PY_FLAVOR}
 
-PGSQL_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}psycopg2>0:databases/py-psycopg2@${PY_FLAVOR}
-
+post-extract:
+	${RM} ${WRKSRC}/tests/__init__.py # prevent conflict with py-django-bulk-update dependency
 pre-configure:
-	@${REINPLACE_CMD} -e "s/,<0.11.2//g" \
-		-e "s/,<0.8//g" \
-		-e "s/==0.1//g" \
-		-e "s/,<1.5//g" \
+	# switch off pip checks
+	${REINPLACE_CMD} -e '/^check_pep440_versions()/d' ${WRKSRC}/setup.py
+	# relax versions for packaging
+	${REINPLACE_CMD} -e "s/==/>=/g" \
+		-e "s/~=/>=/g" \
+		-e "s/,<=.*//g" \
 		${WRKSRC}/requirements/base.txt
+	# fix django-bulk-update invocations
+	${REINPLACE_CMD} -e "s/bulk_update.helper/django_bulk_update.helper/g" \
+		${WRKSRC}/pootle/core/batch.py \
+		${WRKSRC}/pootle/core/bulk.py \
+		${WRKSRC}/pootle/apps/pootle_store/migrations/0054_clean_abs_file_paths.py \
+		${WRKSRC}/pootle/apps/pootle_fs/plugin.py
 
 post-install-DOCS-on:
 	${MKDIR} ${STAGEDIR}/${DOCSDIR}

Modified: head/textproc/pootle/distinfo
==============================================================================
--- head/textproc/pootle/distinfo	Sun Oct  7 10:29:06 2018	(r481438)
+++ head/textproc/pootle/distinfo	Sun Oct  7 10:58:42 2018	(r481439)
@@ -1,2 +1,3 @@
-SHA256 (Pootle-2.5.1.3.tar.bz2) = f0303896af702f6bc6cbd7f28fae9478f3f11e804c6f0194c1fb34d2557f4243
-SIZE (Pootle-2.5.1.3.tar.bz2) = 6387947
+TIMESTAMP = 1505559121
+SHA256 (translate-pootle-2.8.2_GH0.tar.gz) = b8cc5e05066fe2517ca03882ef41eaa22ac5e47b6918591aaf3d8fa36fd0e5a2
+SIZE (translate-pootle-2.8.2_GH0.tar.gz) = 8498394

Modified: head/textproc/pootle/pkg-descr
==============================================================================
--- head/textproc/pootle/pkg-descr	Sun Oct  7 10:29:06 2018	(r481438)
+++ head/textproc/pootle/pkg-descr	Sun Oct  7 10:58:42 2018	(r481439)
@@ -5,4 +5,4 @@ gives statistics and allows easy volunteer contributio
 You can run Pootle as an Internet server like
 these projects or run your own copy on an Intranet.
 
-WWW: http://translate.sourceforge.net/wiki/pootle/index
+WWW: http://docs.translatehouse.org/projects/pootle/



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