Convert converters to MDOCS and MEXAMPLES

This commit is contained in:
Adam Weinberger 2014-01-03 16:12:21 +00:00
parent fbd9122a40
commit 9523cfd4e2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=338556
13 changed files with 42 additions and 23 deletions

View file

@ -11,8 +11,11 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= Ish/uuencode/Base64 converter
NO_STAGE= yes
.include <bsd.port.options.mk>
post-install:
.if !defined(NOPORTDOCS)
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${PREFIX}/share/doc/ja/aish
${INSTALL_DATA} ${WRKSRC}/aish.txt ${PREFIX}/share/doc/ja/aish
.endif

View file

@ -23,6 +23,8 @@ NO_BUILD= yes
USE_ASDF= yes
NO_STAGE= yes
.include <bsd.port.options.mk>
do-install:
@${MKDIR} ${ASDF_PATHNAME}
@${MKDIR} ${ASDF_PATHNAME}/src
@ -30,13 +32,13 @@ do-install:
@${INSTALL_DATA} ${WRKSRC}/babel.asd ${ASDF_PATHNAME}
@${INSTALL_DATA} ${WRKSRC}/babel-streams.asd ${ASDF_PATHNAME}
@${LN} -sf ${ASDF_PATHNAME}/*.asd ${ASDF_REGISTRY}
.if !defined(NOPORTDOCS)
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
.for FILE in COPYRIGHT HEADER NOTES README
@${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
.endfor
.endif
.if !defined(NOPORTEXAMPLES)
.if ${PORT_OPTIONS:MEXAMPLES}
@${MKDIR} ${EXAMPLESDIR}
@${INSTALL_DATA} ${WRKSRC}/tests/* ${EXAMPLESDIR}
.endif

View file

@ -24,8 +24,11 @@ DOCS_EN= COPYING ChangeLog
DOCS_JA= ChangeLog.ja README.ja
NO_STAGE= yes
.include <bsd.port.options.mk>
post-install:
.if !defined(NOPORTDOCS)
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
${MKDIR} ${DOCSDIR}/ja
.for f in ${DOCS_EN}

View file

@ -30,8 +30,11 @@ MAN1= enca.1
MLINKS= enca.1 enconv.1
NO_STAGE= yes
.include <bsd.port.options.mk>
post-patch::
.if defined(NOPORTDOCS)
.if ${PORT_OPTIONS:MDOCS}
@${REINPLACE_CMD} -e 's#\ devel-docs##g' ${WRKSRC}/Makefile.in
.endif
@${REINPLACE_CMD} -e 's/$$(LN_S)/$$(LN_S) -f/' ${WRKSRC}/src/Makefile.in

View file

@ -25,8 +25,11 @@ MAN1= fix-mime-charset.1
PLIST_FILES= bin/fix-mime-charset
NO_STAGE= yes
.include <bsd.port.options.mk>
post-install:
.if !defined(NOPORTDOCS)
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
.for f in ${PORTDOCS}
@${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}

View file

@ -29,6 +29,9 @@ MULEUCS_DESTDIR= ${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}/mule-ucs
EMACS_ARGS= -q --no-site-file -batch
NO_STAGE= yes
.include <bsd.port.options.mk>
do-build:
cd ${WRKSRC}/lisp/big5conv && \
${EMACS_CMD} ${EMACS_ARGS} -l big5-comp.el
@ -52,7 +55,7 @@ do-install:
@${RM} ${MULEUCS_DESTDIR}/jisx0213/x0213-comp.el
post-install:
.if !defined(NOPORTDOCS)
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
cd ${WRKSRC}/lisp; \
for i in ChangeLog MuleUni.txt README* ; do \

View file

@ -17,6 +17,9 @@ PORTDOCS= README COPYING ChangeLog
PLIST_FILES= bin/o3read bin/o3totxt bin/o3tohtml bin/utf8tolatin1
NO_STAGE= yes
.include <bsd.port.options.mk>
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/o3read ${PREFIX}/bin
@${INSTALL_PROGRAM} ${WRKSRC}/o3totxt ${PREFIX}/bin
@ -24,7 +27,7 @@ do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/utf8tolatin1 ${PREFIX}/bin
@${INSTALL_MAN} ${WRKSRC}/o3read.1 ${MANPREFIX}/man/man1
@${INSTALL_MAN} ${WRKSRC}/utf8tolatin1.1 ${MANPREFIX}/man/man1
.if !defined(NOPORTDOCS)
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
.for FILE in ${PORTDOCS}
@${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}

View file

@ -33,7 +33,7 @@ post-patch:
s#(doc_loc, data_fnames)##g' ${WRKSRC}/setup.py
post-install:
.if !defined(NOPORTDOCS)
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
.for DOC in COPYING.GPL COPYING.TGPPL.html README.rst TODO changelog
${INSTALL_DATA} ${WRKSRC}/${DOC} ${DOCSDIR}

View file

@ -37,13 +37,11 @@ CONFIGURE_ARGS+= --enable-inews=${PREFIX}/news/lib/inews
post-install:
@${STRIP_CMD} ${PREFIX}/bin/uudeview
@${STRIP_CMD} ${PREFIX}/bin/uuenview
.if !defined(NOPORTDOCS)
.if ${PORT_OPTIONS:MDOCS}
@${ECHO_MSG} "===> Installing documents to ${DOCSDIR}"
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/HISTORY ${DOCSDIR}
@${INSTALL_DATA} ${FILESDIR}/porting.notes ${DOCSDIR}
.else
@${ECHO_MSG} "===> Not installing available documents"
.endif
.include <bsd.port.post.mk>

View file

@ -30,6 +30,9 @@ DOCFILES= HISTORY doc/Makefile doc/README doc/binhex.fig \
doc/td-v3.c doc/test.txt
NO_STAGE= yes
.include <bsd.port.options.mk>
post-patch:
@${SED} -e 's,FUNKYTOKENHERE,${PREFIX}/,' \
< ${FILESDIR}/uulib.3 > ${WRKDIR}/uulib.3
@ -41,7 +44,7 @@ do-install:
@/usr/bin/ranlib ${PREFIX}/lib/libuu.a
${INSTALL_DATA} ${WRKSRC}/uulib/uudeview.h ${PREFIX}/include
${INSTALL_MAN} ${WRKDIR}/uulib.3 ${MANPREFIX}/man/man3
.if !defined(NOPORTDOCS)
.if ${PORT_OPTIONS:MDOCS}
@${ECHO_MSG} "===> Installing documentation for ${PKGNAME}"
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${FILESDIR}/porting.notes ${DOCSDIR}

View file

@ -16,15 +16,12 @@ MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" YACC="${YACC}"
PORTDOCS= model.ps.gz
PLIST_FILES= bin/vda2fbd
NO_STAGE= yes
post-build:
cd ${WRKSRC}/../doc && ${GZIP_CMD} -c model.ps > model.ps.gz
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/vda2fbd ${PREFIX}/bin
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/../doc/model.ps.gz ${DOCSDIR}
.endif
${INSTALL_PROGRAM} ${WRKSRC}/vda2fbd ${STAGEDIR}${PREFIX}/bin
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/../doc/model.ps.gz ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>

View file

@ -39,14 +39,12 @@ NO_STAGE= yes
post-install:
${STRIP_CMD} ${PREFIX}/bin/uuwish
.if !defined(NOPORTDOCS)
.if ${PORT_OPTIONS:MDOCS}
@${ECHO_MSG} "===> Installing documents to ${DOCSDIR}"
@${MKDIR} ${DOCSDIR}
.for file in ${PORTDOCS}
@${INSTALL_DATA} ${FILESDIR}/${file} ${DOCSDIR}
.endfor
.else
@${ECHO_MSG} "===> Not installing available documents"
.endif
${INSTALL_MAN} ${WRKSRC}/man/xdeview.1 ${MANPREFIX}/man/man1

View file

@ -24,12 +24,15 @@ PLIST_FILES= bin/ytnef bin/ytnefprocess.pl bin/ytnefprint
PORTDOCS= AUTHORS NEWS README
NO_STAGE= yes
.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -e 's|^#!/usr/bin/perl|#!${PERL}|' \
${WRKSRC}/src/ytnef/ytnefprocess.pl
post-install:
.if !defined(NOPORTDOCS)
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.endif