mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-24 04:33:24 +00:00
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.
This commit is contained in:
parent
0c0b386757
commit
2fee86da81
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=368068
@ -2,8 +2,7 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= qooxdoo
|
||||
PORTVERSION= 2.1.1
|
||||
PORTREVISION= 0
|
||||
PORTVERSION= 4.0.1
|
||||
CATEGORIES= www devel
|
||||
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-current/${PORTVERSION}/
|
||||
DISTNAME= ${PORTNAME}-${PORTVERSION}-sdk
|
||||
@ -14,37 +13,43 @@ 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
|
||||
USES= zip python:2
|
||||
|
||||
OPTIONS_DEFINE= DOCS EXAMPLES
|
||||
|
||||
PORTDOCS= *
|
||||
PORTEXAMPLES= *
|
||||
|
||||
post-patch:
|
||||
${FIND} ${FIND_FILES} | ${XARGS} -0 ${REINPLACE_CMD}
|
||||
${FIND} ${FIND_FILES_BAK} -delete
|
||||
${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}
|
||||
.for D in ${QXDDIRS}
|
||||
cd ${WRKSRC} && ${COPYTREE_SHARE} ${D} ${STAGEDIR}${DATADIR}
|
||||
.endfor
|
||||
cd ${WRKSRC}/documentation/manual && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
|
||||
cd ${WRKSRC}/application && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/version.txt ${STAGEDIR}${DATADIR}
|
||||
${CHMOD} ${BINMODE} ${STAGEDIR}${DATADIR}/tool/bin/*.py
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/create-application.py ${STAGEDIR}${DATADIR}/create-application.py
|
||||
@${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>
|
||||
|
@ -1,2 +1,2 @@
|
||||
SHA256 (qooxdoo-2.1.1-sdk.zip) = c4c8a566fdb66c35ff8d6be543b9159c40532f43256ba25e54df1b35f001d9c0
|
||||
SIZE (qooxdoo-2.1.1-sdk.zip) = 39437905
|
||||
SHA256 (qooxdoo-4.0.1-sdk.zip) = 29f5500a64b98955a3eb66740a0c879b3ff96d12ef04c526b645879f65e4d5dc
|
||||
SIZE (qooxdoo-4.0.1-sdk.zip) = 44858618
|
||||
|
11667
www/qooxdoo/pkg-plist
11667
www/qooxdoo/pkg-plist
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user