mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-04 01:48:54 +00:00
7963329e2d
can be used for the translation of PO (Portable Object) files. Entrans was developed with Indic community in mind and has features, like built-in input editor, that make the translation job a lot easier for Indic translators. Some of the other useful features include * Simple and easy to use interface * User account management * Multiple levels of user roles for different task allocation * Seamless reuse of translations * Search and lookup * Navigation through untranslated strings * Header editing option * Vote for translations * Machine translation and transliteration * Upload files as compressed archives of PO files * Upload files through URLs WWW: http://entrans.sourceforge.net PR: ports/108331 Submitted by: Prudhvi Krishna <prudhvikrishna at gmail.com>
54 lines
1.4 KiB
Makefile
54 lines
1.4 KiB
Makefile
# New ports collection makefile for: entrans
|
|
# Date created: Jan-25-2007
|
|
# Whom: Prudhvi Krishna <prudhvikrishna@gmail.com>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= entrans
|
|
PORTVERSION= 0.3.2
|
|
CATEGORIES= www
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
MAINTAINER= prudhvikrishna@gmail.com
|
|
COMMENT= Entrans is an online, collaborative translation tool
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
|
|
USE_PHP= mysql
|
|
NO_BUILD= YES
|
|
WANT_PHP_WEB= YES
|
|
ENTRANS?= www/entrans
|
|
PLIST_SUB+= ENTRANS=${ENTRANS}
|
|
PLIST= ${WRKDIR}/pkg-plist
|
|
|
|
PORTDOCS= README INSTALL COPYING AUTHORS HACKING THANKS
|
|
|
|
pre-install:
|
|
cd ${WRKSRC} && ${FIND} -s * -type f | \
|
|
${SED} -e 's|^|${ENTRANS}/|' > ${PLIST} \
|
|
&& ${FIND} -d * -type d | \
|
|
${SED} -e 's|^|@dirrm ${ENTRANS}/|' >> ${PLIST} \
|
|
&& ${ECHO_CMD} @dirrm ${ENTRANS} >> ${PLIST} \
|
|
&& ${ECHO_CMD} @dirrmtry www/data >> ${PLIST}
|
|
if [ ! -f ${WRKSRC}/conf/database.conf.php.sample ]; then ${CP} \
|
|
${WRKSRC}/conf/database.conf.php.sample ${WRKSRC}/conf/database.conf.php; fi
|
|
|
|
do-install:
|
|
-@${MKDIR} ${PREFIX}/${ENTRANS}
|
|
@${CHOWN} ${WWWOWN}:${WWWGRP} ${PREFIX}/${ENTRANS}
|
|
@${CHMOD} 755 ${PREFIX}/${ENTRANS}
|
|
${CP} -R ${WRKSRC}/ ${PREFIX}/${ENTRANS}
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
.for i in ${PORTDOCS}
|
|
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}/${i}
|
|
.endfor
|
|
.endif
|
|
|
|
post-install:
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.mk>
|