b2ff312a84
Reported by: portsnap builder
76 lines
2.2 KiB
Makefile
76 lines
2.2 KiB
Makefile
# Created by: Denis Pokataev <catone@cpan.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= pootle
|
|
PORTVERSION= 2.5.1.3
|
|
PORTREVISION= 1
|
|
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:textproc/translate-toolkit \
|
|
${PYTHON_PKGNAMEPREFIX}south>=0.7.6:databases/py-south\
|
|
${PYTHON_PKGNAMEPREFIX}cssmin>=0.1.4:www/py-cssmin \
|
|
${PYTHON_PKGNAMEPREFIX}lxml>=2.1.4:devel/py-lxml \
|
|
${PYTHON_PKGNAMEPREFIX}django-taggit>0.10:www/py-django-taggit \
|
|
${PYTHON_PKGNAMEPREFIX}django-assets>=0.8:www/py-django-assets \
|
|
${PYTHON_PKGNAMEPREFIX}south>=0.7.6:databases/py-south \
|
|
${PYTHON_PKGNAMEPREFIX}django-voting>=0.1:www/py-django-voting \
|
|
${PYTHON_PKGNAMEPREFIX}simplejson>=0:devel/py-simplejson \
|
|
${PYTHON_PKGNAMEPREFIX}diff-match-patch>=0:textproc/py-diff-match-patch
|
|
# actually diff-match-patch is a dependency of translate-toolkit,
|
|
# but only this port uses it.
|
|
|
|
NO_ARCH= yes
|
|
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= DOCS 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:devel/py-ldap2
|
|
|
|
MEMCACHED_LIB_DEPENDS= libmemcached.so:databases/libmemcached
|
|
MEMCACHED_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}python-memcached>=1.45:databases/py-python-memcached
|
|
|
|
MYSQL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}MySQLdb>0:databases/py-MySQLdb
|
|
|
|
PGSQL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}psycopg2>0:databases/py-psycopg2
|
|
|
|
SUBVERSION_RUN_DEPENDS= svn: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-DOCS-on:
|
|
${MKDIR} ${STAGEDIR}/${DOCSDIR}
|
|
.for docs in ${PORTDOCS}
|
|
${INSTALL_DATA} ${WRKSRC}/${docs} ${STAGEDIR}/${DOCSDIR}
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|