1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/textproc/pootle/Makefile
Rene Ladan d4a58fdfad textproc/pootle: fix run dependency for PGSQL
Submitted by:	HellSpawn via IRC
2015-10-06 20:38:32 +00:00

76 lines
2.4 KiB
Makefile

# 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-psycopg2
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>