Stage support

This commit is contained in:
Antoine Brodin 2014-02-16 12:49:24 +00:00
parent b52791a4cb
commit 38f9b1e49e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=344556

View file

@ -16,21 +16,17 @@ NO_BUILD= yes
RESTRICTED= Redistribution is not permitted RESTRICTED= Redistribution is not permitted
PLIST_FILES= bin/dbvis PLIST_FILES= bin/dbvis
WRKSRC= DbVisualizer-${PORTVERSION} WRKSRC= ${WRKDIR}/DbVisualizer-${PORTVERSION}
NO_STAGE= yes
do-install: do-install:
cd ${WRKDIR}/${WRKSRC} \ cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}
&& ${FIND} . -type d -exec ${MKDIR} ${DATADIR}/{} \; \ ${LN} -sf ${DATADIR}/dbvis ${STAGEDIR}${PREFIX}/bin/dbvis
&& ${FIND} . -type f -exec ${INSTALL_DATA} {} ${DATADIR}/{} \; \ ${CHMOD} a+x ${STAGEDIR}${DATADIR}/dbvis
&& ${LN} -s ${DATADIR}/dbvis ${PREFIX}/bin/dbvis \
&& ${CHMOD} a+x ${DATADIR}/dbvis
post-install: post-install:
cd ${WRKDIR}/${WRKSRC} && \ ${FIND} ${STAGEDIR}${DATADIR} -not -type d \
${FIND} ${DATADIR} -not -type d \ | ${SED} -ne 's,^${STAGEDIR}${PREFIX}/,,p' >> ${TMPPLIST}
| ${SED} -ne 's,^${PREFIX}/,,p' >> ${TMPPLIST} ${FIND} -d ${STAGEDIR}${DATADIR} -type d \
${FIND} -d ${DATADIR} -type d \ | ${SED} -ne 's,^${STAGEDIR}${PREFIX}/,@dirrm ,p' >> ${TMPPLIST}
| ${SED} -ne 's,^${PREFIX}/,@dirrm ,p' >> ${TMPPLIST}
.include <bsd.port.mk> .include <bsd.port.mk>