freebsd-ports/www/qooxdoo/Makefile
Adam Weinberger 2fee86da81 Update to 4.0.1.
The plist was thousands of lines long, and with this update became over
1MB. Switch to a dynamically-generated plist.
2014-09-12 21:47:57 +00:00

55 lines
1.7 KiB
Makefile

# Created by: Nicola Vitale <nivit@FreeBSD.org>
# $FreeBSD$
PORTNAME= qooxdoo
PORTVERSION= 4.0.1
CATEGORIES= www devel
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-current/${PORTVERSION}/
DISTNAME= ${PORTNAME}-${PORTVERSION}-sdk
MAINTAINER= ports@FreeBSD.org
COMMENT= Comprehensive and innovative Ajax application framework
LICENSE= LGPL3 EPL
LICENSE_COMB= dual
USES= zip python:2
OPTIONS_DEFINE= DOCS EXAMPLES
PORTDOCS= *
PORTEXAMPLES= *
post-patch:
${FIND} ${WRKSRC} -type f -name '*.py' -print0 | ${XARGS} -0 \
${REINPLACE_CMD} -e 's|/usr/bin/env python|&${PYTHON_VER}|'
${FIND} ${WRKSRC} -type f -and \( -name '*.orig' -or -name '*.bak' \) -delete
do-build:
${PYTHON_CMD} -m compileall -f ${WRKSRC}/tool
${PYTHON_CMD} -O -m compileall -f ${WRKSRC}/tool
do-install:
@${MKDIR} ${STAGEDIR}${DATADIR}
(cd ${WRKSRC} && ${COPYTREE_SHARE} \
"create-application.py component framework tool version.txt" \
${STAGEDIR}${DATADIR})
(cd ${WRKSRC}/documentation/manual && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
(cd ${WRKSRC}/application && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
# build plist
# make the python files executable
@${ECHO_CMD} '@mode ${BINMODE}' >> ${TMPPLIST}
@${FIND} ${STAGEDIR}${DATADIR} -type f -name '*.py' | ${SORT} | \
${SED} -e 's|^${STAGEDIR}${PREFIX}/||' >> ${TMPPLIST}
@${ECHO_CMD} '@mode 644' >> ${TMPPLIST}
@${FIND} ${STAGEDIR}${DATADIR} -type f \! -name '*.py' | ${SORT} | \
${SED} -e 's|^${STAGEDIR}${PREFIX}/||' >> ${TMPPLIST}
@${ECHO_CMD} '@mode' >> ${TMPPLIST}
@${FIND} ${STAGEDIR}${DATADIR}/* -type d | ${SORT} -r | \
${SED} -e 's|^${STAGEDIR}${PREFIX}/|@dirrmtry |' >> ${TMPPLIST}
@${ECHO_CMD} '@dirrmtry ${DATADIR_REL}' >> ${TMPPLIST}
.include <bsd.port.mk>