1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-11 02:50:24 +00:00
freebsd-ports/www/qooxdoo/Makefile
Nicola Vitale 1fac35be82 - Update to 1.5
- Install bytecode of all Python files under ${DATADIR}/tool/bin
2011-08-03 13:47:30 +00:00

55 lines
1.3 KiB
Makefile

# New ports collection makefile for: qooxdoo
# Date created: 2010-12-10
# Whom: Nicola Vitale <nivit@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= qooxdoo
PORTVERSION= 1.5
PORTREVISION= 0
CATEGORIES= www devel
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-current/${PORTVERSION}/
DISTNAME= ${PORTNAME}-${PORTVERSION}-sdk
MAINTAINER= nivit@FreeBSD.org
COMMENT= A comprehensive and innovative Ajax application framework
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= -i.bak -e 's,/usr/bin/env python,&${PYTHON_VER},'
USE_PYTHON= -2.7
USE_ZIP= yes
SHAREMODE= 644
XARGS_ARGS= -0
post-patch:
${FIND} ${FIND_FILES} | ${XARGS} ${XARGS_ARGS} ${REINPLACE_CMD}
${FIND} ${FIND_FILES_BAK} -delete
do-build:
${PYTHON_CMD} -m compileall -f ${WRKSRC}/tool/bin
${PYTHON_CMD} -O -m compileall -f ${WRKSRC}/tool/bin
do-install:
${MKDIR} ${DATADIR}
.for D in ${QXDDIRS}
cd ${WRKSRC} && ${COPYTREE_SHARE} ${D} ${DATADIR}
.endfor
.if !defined(NOPORTDOCS)
cd ${WRKSRC}/documentation/manual && ${COPYTREE_SHARE} . ${DOCSDIR}
.endif
.if !defined(NOPORTEXAMPLES)
cd ${WRKSRC}/application && ${COPYTREE_SHARE} . ${EXAMPLESDIR}
.endif
${INSTALL_DATA} ${WRKSRC}/version.txt ${DATADIR}
${CHMOD} ${BINMODE} ${DATADIR}/tool/bin/*.py
.include <bsd.port.mk>