blob: cc091e1077bbe40badf2f28c0c95a4a768b5f57c (
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.0.2
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= -i.bak -e 's,/usr/bin/env python,&${PYTHON_VER},'
USE_PYTHON= -2.7
USE_ZIP= yes
SHAREMODE= 644
XARGS_ARGS= -0
OPTIONS_DEFINE= DOCS EXAMPLES
.include <bsd.port.options.mk>
post-patch:
${FIND} ${FIND_FILES} | ${XARGS} ${XARGS_ARGS} ${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
.include <bsd.port.mk>
|