1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/www/qooxdoo/Makefile
Nicola Vitale c20b4da5a8 - Update to 2.1.1
ReleaseNotes:	http://goo.gl/eBrKT
2013-03-10 14:47:31 +00:00

57 lines
1.4 KiB
Makefile

# Created by: Nicola Vitale <nivit@FreeBSD.org>
# $FreeBSD$
PORTNAME= qooxdoo
PORTVERSION= 2.1.1
PORTREVISION= 0
CATEGORIES= www devel
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-current/${PORTVERSION}/
DISTNAME= ${PORTNAME}-${PORTVERSION}-sdk
MAINTAINER= nivit@FreeBSD.org
COMMENT= Comprehensive and innovative Ajax application framework
LICENSE= LGPL3 EPL
LICENSE_COMB= dual
FIND_FILES= ${WRKSRC} -type f -name "*.py" -print0
FIND_FILES_BAK= ${WRKSRC} -type f -and \( -name "*.orig" -or -name "*.bak" \)
QXDDIRS= component framework tool
REINPLACE_ARGS= -e 's,/usr/bin/env python,&${PYTHON_VER},' -i.bak
USE_PYTHON= -2.7
USE_ZIP= yes
SHAREMODE= 644
OPTIONS_DEFINE= DOCS EXAMPLES
.include <bsd.port.options.mk>
post-patch:
${FIND} ${FIND_FILES} | ${XARGS} -0 ${REINPLACE_CMD}
${FIND} ${FIND_FILES_BAK} -delete
do-build:
${PYTHON_CMD} -m compileall -f ${WRKSRC}/tool
${PYTHON_CMD} -O -m compileall -f ${WRKSRC}/tool
do-install:
${MKDIR} ${DATADIR}
.for D in ${QXDDIRS}
cd ${WRKSRC} && ${COPYTREE_SHARE} ${D} ${DATADIR}
.endfor
.if ${PORT_OPTIONS:MDOCS}
cd ${WRKSRC}/documentation/manual && ${COPYTREE_SHARE} . ${DOCSDIR}
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
cd ${WRKSRC}/application && ${COPYTREE_SHARE} . ${EXAMPLESDIR}
.endif
${INSTALL_DATA} ${WRKSRC}/version.txt ${DATADIR}
${CHMOD} ${BINMODE} ${DATADIR}/tool/bin/*.py
${INSTALL_SCRIPT} ${WRKSRC}/create-application.py ${DATADIR}/create-application.py
.include <bsd.port.mk>