1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

- add stage support

This commit is contained in:
Olli Hauer 2014-05-24 18:17:10 +00:00
parent 70d842709f
commit 7443a4d392
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=355070
4 changed files with 42 additions and 53 deletions

View File

@ -25,7 +25,8 @@ LICENSE_NAME= The Clarified Artistic License
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
LICENSE_FILE= ${WRKSRC}/docs/LICENSE
USE= perl5
USES= perl5
USE_PERL5= run
USE_RC_SUBR= ${PORTNAME}
NO_BUILD= yes
@ -35,12 +36,8 @@ NO_BUILD= yes
SUB_LIST+= PERL="${PERL}"
.endif
.ifndef(NOPORTDOCS)
PORTDOCS= \
*
.endif
PORTDOCS= *
NO_STAGE= yes
.include <bsd.port.pre.mk>
post-patch:
@ -71,49 +68,47 @@ post-configure:
do-install:
## create site_perl
# dirs
@${MKDIR} ${SITE_PERL:S|${LOCALBASE}|${PREFIX}|}/AmphetaDesk
@cd ${WRKSRC}/lib && \
@${MKDIR} ${SITE_PERL:S|${LOCALBASE}|${STAGEDIR}${PREFIX}|}/AmphetaDesk
@(cd ${WRKSRC}/lib && \
${FIND} * -type d ! -empty -print0 | \
${XARGS} -0 -x -n 10 -I {} \
${MKDIR} ${SITE_PERL:S|${LOCALBASE}|${PREFIX}|}/AmphetaDesk/{}
${MKDIR} ${SITE_PERL:S|${LOCALBASE}|${STAGEDIR}${PREFIX}|}/AmphetaDesk/{})
# files
@cd ${WRKSRC}/lib && \
(cd ${WRKSRC}/lib && \
${FIND} * -type f -name "*pm" -print0 | \
${XARGS} -0 -x -n 10 -I {} \
${INSTALL_DATA} {} ${SITE_PERL:S|${LOCALBASE}|${PREFIX}|}/AmphetaDesk/{}
${INSTALL_DATA} {} ${SITE_PERL:S|${LOCALBASE}|${STAGEDIR}${PREFIX}|}/AmphetaDesk/{})
# script
@${INSTALL_DATA} ${WRKSRC}/AmphetaDesk.pl \
${PREFIX}/bin/AmphetaDesk-real
@${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh \
${PREFIX}/bin/AmphetaDesk
${INSTALL_DATA} ${WRKSRC}/AmphetaDesk.pl \
${STAGEDIR}${PREFIX}/bin/AmphetaDesk-real
${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh \
${STAGEDIR}${PREFIX}/bin/AmphetaDesk
## docs
.ifndef(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for ext in html txt xml
@${INSTALL_DATA} ${WRKSRC}/docs/*.${ext} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/docs/*.${ext} ${STAGEDIR}${DOCSDIR}
.endfor
@${MKDIR} ${DOCSDIR}/images
@${MKDIR} ${STAGEDIR}${DOCSDIR}/images
.for ext in gif jpg
@${INSTALL_DATA} ${WRKSRC}/docs/images/*.${ext} \
${DOCSDIR}/images
${INSTALL_DATA} ${WRKSRC}/docs/images/*.${ext} \
${STAGEDIR}${DOCSDIR}/images
.endfor
.endif
## lists
@${MKDIR} ${DATADIR}/lists
@${INSTALL_DATA} ${WRKSRC}/data/lists/services-channels-recent.xml \
${DATADIR}/lists
@${MKDIR} ${STAGEDIR}${DATADIR}/lists
${INSTALL_DATA} ${WRKSRC}/data/lists/services-channels-recent.xml \
${STAGEDIR}${DATADIR}/lists
## templates
# dirs
@cd ${WRKSRC} && \
(cd ${WRKSRC} && \
${FIND} templates -type d ! -empty -print0 | \
${XARGS} -0 -x -n 10 -I {} \
${MKDIR} ${DATADIR}/{}
${MKDIR} ${STAGEDIR}${DATADIR}/{})
# files
.for ext in gif html ico png pict
@cd ${WRKSRC} && \
(cd ${WRKSRC} && \
${FIND} templates -type f -name "*.${ext}" -print0 | \
${XARGS} -0 -x -n 10 -I {} \
${INSTALL_DATA} {} ${DATADIR}/{}
${INSTALL_DATA} {} ${STAGEDIR}${DATADIR}/{})
.endfor
.include <bsd.port.post.mk>

View File

@ -39,18 +39,15 @@ bin/AmphetaDesk-real
%%DATADIR%%/templates/default/popup.html
%%DATADIR%%/templates/default/tpl_footer.html
%%DATADIR%%/templates/default/tpl_header.html
@dirrm %%DATADIR%%/templates/default/images
@dirrm %%DATADIR%%/templates/default/gui
@dirrm %%DATADIR%%/templates/default
@dirrm %%DATADIR%%/templates
@dirrm %%DATADIR%%/lists
@dirrm %%DATADIR%%
@dirrm %%SITE_PERL%%/AmphetaDesk/XML
@dirrm %%SITE_PERL%%/AmphetaDesk/Text/Template
@dirrm %%SITE_PERL%%/AmphetaDesk/Text
@dirrm %%SITE_PERL%%/AmphetaDesk/AmphetaDesk/OS
@dirrm %%SITE_PERL%%/AmphetaDesk/AmphetaDesk
@dirrm %%SITE_PERL%%/AmphetaDesk/Text/Template
@dirrm %%SITE_PERL%%/AmphetaDesk/Text
@dirrm %%SITE_PERL%%/AmphetaDesk/XML
@dirrm %%SITE_PERL%%/AmphetaDesk
@dirrmtry %%SITE_PERL%%
@dirrmtry lib/perl5/site_perl
@dirrmtry lib/perl5
@dirrm %%DATADIR%%/lists
@dirrm %%DATADIR%%/templates/default/gui
@dirrm %%DATADIR%%/templates/default/images
@dirrm %%DATADIR%%/templates/default
@dirrm %%DATADIR%%/templates
@dirrm %%DATADIR%%

View File

@ -28,18 +28,15 @@ DOCSDIR= ${PREFIX}/share/doc/css-mode
PLIST_SUB= ELISP_SUBDIR=${ELISP_SUBDIR} XELISP_SUBDIR=${XELISP_SUBDIR}
NO_STAGE= yes
do-install:
@${MKDIR} ${PREFIX}/${ELISP_SUBDIR}
${INSTALL_DATA} ${_DISTDIR}/${DISTNAME} ${PREFIX}/${ELISP_SUBDIR}/
@${MKDIR} ${STAGEDIR}${PREFIX}/${ELISP_SUBDIR}
${INSTALL_DATA} ${_DISTDIR}/${DISTNAME} ${STAGEDIR}${PREFIX}/${ELISP_SUBDIR}
# For XEmacs
@${MKDIR} ${PREFIX}/${XELISP_SUBDIR}
${INSTALL_DATA} ${_DISTDIR}/${DISTNAME} ${PREFIX}/${XELISP_SUBDIR}/
@${MKDIR} ${STAGEDIR}${PREFIX}/${XELISP_SUBDIR}
${INSTALL_DATA} ${_DISTDIR}/${DISTNAME} ${STAGEDIR}${PREFIX}/${XELISP_SUBDIR}
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${_DISTDIR}/doco.html ${DOCSDIR}/css-mode-doc.html
.endif
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${_DISTDIR}/doco.html ${STAGEDIR}${DOCSDIR}/css-mode-doc.html
.include <bsd.port.mk>

View File

@ -1,6 +1,6 @@
%%ELISP_SUBDIR%%/css-mode.el
%%XELISP_SUBDIR%%/css-mode.el
%%PORTDOCS%%%%DOCSDIR%%/css-mode-doc.html
%%PORTDOCS%%@dirrm %%DOCSDIR%%
@dirrmtry lib/xemacs/site-lisp
%%ELISP_SUBDIR%%/css-mode.el
@dirrmtry %%XELISP_SUBDIR%%
@dirrmtry lib/xemacs
%%PORTDOCS%%@dirrm %%DOCSDIR%%