Stage support

This commit is contained in:
Antoine Brodin 2014-02-01 19:15:00 +00:00
parent d8269280e9
commit aed77db572
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=342206

View File

@ -17,24 +17,19 @@ USE_RUBY= yes
RUBY_SHEBANG_FILES= ${WRKSRC}/pdumpfs.in
ALL_TARGET= pdumpfs
PLIST_FILES= sbin/pdumpfs
PLIST_FILES= man/ja/man8/pdumpfs.8.gz \
man/man8/pdumpfs.8.gz \
sbin/pdumpfs
PORTDOCS= *
MANLANG= "" ja
MAN8= pdumpfs.8
OPTIONS_DEFINE= DOCS
NO_STAGE= yes
.include <bsd.port.options.mk>
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/pdumpfs ${PREFIX}/sbin/
${INSTALL_MAN} ${WRKSRC}/man/man8/pdumpfs.8 ${PREFIX}/man/man8/
${INSTALL_SCRIPT} ${WRKSRC}/pdumpfs ${STAGEDIR}${PREFIX}/sbin
${INSTALL_MAN} ${WRKSRC}/man/man8/pdumpfs.8 ${STAGEDIR}${PREFIX}/man/man8
${RUBY} -ni -r nkf -e 'puts NKF.nkf("-e",$$_)' ${WRKSRC}/man/ja/man8/pdumpfs.8
${INSTALL_MAN} ${WRKSRC}/man/ja/man8/pdumpfs.8 ${PREFIX}/man/ja/man8/
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
${CP} -R ${WRKSRC}/doc ${DOCSDIR}/
.endif
${INSTALL_MAN} ${WRKSRC}/man/ja/man8/pdumpfs.8 ${STAGEDIR}${PREFIX}/man/ja/man8
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>