summaryrefslogtreecommitdiffstats
path: root/www/tinymce3/Makefile
blob: d72ff3b9909fa9a5a7a4348bf9321991b1072007 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Created by: Nick Hilliard <nick@foobar.org>
# $FreeBSD$

PORTNAME=	tinymce
PORTVERSION=	3.5.8
CATEGORIES=	www
MASTER_SITES=	GHC \
		LOCAL/sunpoet
PKGNAMESUFFIX=	3
DISTNAME=	${PORTNAME}_${PORTVERSION}

MAINTAINER=	sunpoet@FreeBSD.org
COMMENT=	Open source JavaScript HTML WYSIWYG editor for web sites

LICENSE=	LGPL21
LICENSE_FILE=	${WRKSRC}/jscripts/tiny_mce/license.txt

CONFLICTS_INSTALL=	tinymce-[0-24-9]*

NO_ARCH=	yes
NO_BUILD=	yes
WRKSRC=		${WRKDIR}/${PORTNAME}
USES=		cpe zip

USE_GITHUB=	yes

post-extract:
	@cd ${WRKSRC}/ && ${FIND} -s * -type d -empty | ${XARGS} -I % ${TOUCH} %/.keepme

do-install:
	cd ${WRKSRC}/ && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}/

# maintainer section:

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}
	${ECHO} "@owner" >> ${MS_PLIST}
	${ECHO} "@group" >> ${MS_PLIST}
	${INSTALL} -m 600 ${MS_PLIST} ${PLIST}

.include <bsd.port.mk>
OpenPOWER on IntegriCloud