1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00
freebsd-ports/www/tinymce3/Makefile
Sunpoet Po-Chuan Hsieh 1b2f9d03e3 - Use USES=zip
2014-03-08 00:12:13 +00:00

48 lines
1.3 KiB
Makefile

# Created by: Nick Hilliard <nick@foobar.org>
# $FreeBSD$
PORTNAME= tinymce
PORTVERSION= 3.5.8
CATEGORIES= www
MASTER_SITES= http://cloud.github.com/downloads/${PORTNAME}/${PORTNAME}/ \
LOCAL/sunpoet
PKGNAMESUFFIX= 3
DISTNAME= ${PORTNAME}_${PORTVERSION}
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Open source JavaScript HTML WYSIWYG editor for web sites
LICENSE= LGPL21
CONFLICTS_INSTALL= tinymce-[0-24-9]*
NO_BUILD= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
USES= zip
post-extract:
@cd ${WRKSRC}/ && ${FIND} -s * -type d -empty | ${XARGS} -I % ${TOUCH} %/.keepme
do-install:
cd ${WRKSRC}/ && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}/
# maintainer section:
#MS_DIRRMTRY= # empty
MS_PLIST= ${WRKDIR}/.ms-pkg-plist
genplist: do-clean extract
${ECHO} "@owner www" > ${MS_PLIST}
${ECHO} "@group www" >> ${MS_PLIST}
cd ${WRKSRC}/ && ${FIND} -s * -type f | ${SED} 's|^|%%WWWDIR%%/|' >> ${MS_PLIST}
cd ${WRKSRC}/ && ${FIND} -s * -type d | ${TAIL} -r | ${SED} 's|^|@dirrm %%WWWDIR%%/|' >> ${MS_PLIST}
${ECHO} '@dirrmtry %%WWWDIR%%' >> ${MS_PLIST}
${ECHO} "@owner" >> ${MS_PLIST}
${ECHO} "@group" >> ${MS_PLIST}
#.for dir in ${MS_DIRRMTRY}
# ${REINPLACE_CMD} '/^@dirrm %%WWWDIR%%\/${dir:C/\//\\\//g}$$/ s|@dirrm|&try|' ${MS_PLIST}
#.endfor
${INSTALL} -m 600 ${MS_PLIST} ${PLIST}
.include <bsd.port.mk>