diff options
author | rene <rene@FreeBSD.org> | 2015-10-02 23:18:48 +0800 |
---|---|---|
committer | rene <rene@FreeBSD.org> | 2015-10-02 23:18:48 +0800 |
commit | 048aa9a5410e1c2f7e055eef6a2d84b52872d7c0 (patch) | |
tree | 28b6882da1343ffc42efb39731964b58e6211f5b /textproc/pootle/Makefile | |
parent | 730d5cf61f8db424c37ec15ecf95482fb4cf48ec (diff) | |
download | freebsd-ports-gnome-048aa9a5410e1c2f7e055eef6a2d84b52872d7c0.tar.gz freebsd-ports-gnome-048aa9a5410e1c2f7e055eef6a2d84b52872d7c0.tar.zst freebsd-ports-gnome-048aa9a5410e1c2f7e055eef6a2d84b52872d7c0.zip |
Resurrect textproc/pootle and update it to 2.5.1.3
There might be some rough edges with getting it running properly, but
time will tell.
Add UID/GID 158 for pootle.
Differential Revision: https://reviews.freebsd.org/D1234
Diffstat (limited to 'textproc/pootle/Makefile')
-rw-r--r-- | textproc/pootle/Makefile | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/textproc/pootle/Makefile b/textproc/pootle/Makefile new file mode 100644 index 000000000000..f5da60c93e74 --- /dev/null +++ b/textproc/pootle/Makefile @@ -0,0 +1,75 @@ +# Created by: Denis Pokataev <catone@cpan.org> +# $FreeBSD$ + +PORTNAME= pootle +PORTVERSION= 2.5.1.3 +CATEGORIES= textproc +MASTER_SITES= CHEESESHOP +DISTNAME= Pootle-${PORTVERSION} + +MAINTAINER= rene@FreeBSD.org +COMMENT= User-friendly web portal for simple translation process + +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= translate-toolkit>=1.11.0:${PORTSDIR}/textproc/translate-toolkit \ + ${PYTHON_PKGNAMEPREFIX}south>=0.7.6:${PORTSDIR}/databases/py-south\ + ${PYTHON_PKGNAMEPREFIX}cssmin>=0.1.4:${PORTSDIR}/www/py-cssmin \ + ${PYTHON_PKGNAMEPREFIX}lxml>=2.1.4:${PORTSDIR}/devel/py-lxml \ + ${PYTHON_PKGNAMEPREFIX}argparse>=0:${PORTSDIR}/devel/py-argparse \ + ${PYTHON_PKGNAMEPREFIX}django-taggit>0.10:${PORTSDIR}/www/py-django-taggit \ + ${PYTHON_PKGNAMEPREFIX}django-assets>=0.8:${PORTSDIR}/www/py-django-assets \ + ${PYTHON_PKGNAMEPREFIX}south>=0.7.6:${PORTSDIR}/databases/py-south \ + ${PYTHON_PKGNAMEPREFIX}django-voting>=0.1:${PORTSDIR}/www/py-django-voting \ + ${PYTHON_PKGNAMEPREFIX}simplejson>=0:${PORTSDIR}/devel/py-simplejson \ + ${PYTHON_PKGNAMEPREFIX}diff-match-patch>=0:${PORTSDIR}/textproc/py-diff-match-patch +# actually diff-match-patch is a dependency of translate-toolkit, +# but only this port uses it. + +USES= gettext python tar:bzip2 +USE_PYTHON= autoplist distutils + +USERS= pootle +GROUPS= pootle + +PLIST_SUB+= POOTLEUSER="${USERS}" \ + POOTLEGROUP="${GROUPS}" + +USE_RC_SUBR= pootle +SUB_LIST+= PYTHON_CMD="${PYTHON_CMD}" + +PORTDOCS= CREDITS INSTALL LICENSE + +OPTIONS_DEFINE= LDAP MEMCACHED MYSQL PGSQL +OPTIONS_DEFAULT=MEMCACHED MYSQL + +MEMCACHED_DESC= Use memcached to improve performance + +MYSQL_USE= MYSQL=yes + +LDAP_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}ldap2>0:${PORTSDIR}/devel/py-ldap2 + +MEMCACHED_LIB_DEPENDS= libmemcached.so:${PORTSDIR}/databases/libmemcached +MEMCACHED_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}memcached>=1.45:${PORTSDIR}/databases/py-memcached + +MYSQL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}MySQLdb>0:${PORTSDIR}/databases/py-MySQLdb + +PGSQL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}psycopg2>0:${PORTSDIR}/databases/py-pyscopg2 + +SUBVERSION_RUN_DEPENDS= svn:${PORTSDIR}/devel/subversion + +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" \ + ${WRKSRC}/requirements/base.txt + +post-install: + ${MKDIR} ${STAGEDIR}/${DOCSDIR} +.for docs in ${PORTDOCS} + ${INSTALL_DATA} ${WRKSRC}/${docs} ${STAGEDIR}/${DOCSDIR} +.endfor + +.include <bsd.port.mk> |