freebsd-ports/www/entrans/Makefile
Bartek Rutkowski fc7e200928 www/entrans: various fixes and cleanup
- Don't needlessly set WRKSRC to its default value
- Add NO_ARCH
- Fix WWW
- Modernize plist: switch to @dir
- Remove useless chown
- Pet portlint

PR:		200706
Submitted by:	amdmi3
Approved by:	maintainer timeout  (25 days)
2015-07-02 11:53:57 +00:00

40 lines
1 KiB
Makefile

# Created by: Prudhvi Krishna <prudhvikrishna@gmail.com>
# $FreeBSD$
PORTNAME= entrans
PORTVERSION= 0.3.2
CATEGORIES= www
MASTER_SITES= SF
MAINTAINER= prudhvi-krishna-bsd@surapaneni.in
COMMENT= Entrans is an online, collaborative translation tool
USE_PHP= mysql
NO_BUILD= yes
NO_ARCH= yes
WANT_PHP_WEB= yes
ENTRANS?= www/entrans
PLIST_SUB+= ENTRANS=${ENTRANS}
PLIST= ${WRKDIR}/pkg-plist
PORTDOCS= README INSTALL COPYING AUTHORS HACKING THANKS
OPTIONS_DEFINE= DOCS
pre-install:
cd ${WRKSRC} && ${FIND} -s * -type f | \
${SED} -e 's|^|${ENTRANS}/|' > ${PLIST} \
&& ${FIND} -d * -type d -empty | \
${SED} -e 's|^|@dir ${ENTRANS}/|' >> ${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} ${STAGEDIR}${PREFIX}/${ENTRANS}
${CP} -R ${WRKSRC}/ ${STAGEDIR}${PREFIX}/${ENTRANS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}/${i}
.endfor
.include <bsd.port.mk>