blob: ea8c0e638019d73ff557406704f712dc8b442103 (
plain) (
blame)
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
46
47
48
49
50
51
52
53
54
55
56
57
|
# 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= ports@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
USES= zip
SHAREMODE= 644
OPTIONS_DEFINE= DOCS EXAMPLES
NO_STAGE= yes
.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>
|