diff options
author | adamw <adamw@FreeBSD.org> | 2014-01-04 00:12:21 +0800 |
---|---|---|
committer | adamw <adamw@FreeBSD.org> | 2014-01-04 00:12:21 +0800 |
commit | 81015c330ff506f7c0bdee1b635b9bf1159fb47a (patch) | |
tree | 8d979ce7322c8b03c4d310c7286e6659cd0bdc39 | |
parent | f7adb9400ad6412ec69e2af88ff9a812aa6d942d (diff) | |
download | freebsd-ports-gnome-81015c330ff506f7c0bdee1b635b9bf1159fb47a.tar.gz freebsd-ports-gnome-81015c330ff506f7c0bdee1b635b9bf1159fb47a.tar.zst freebsd-ports-gnome-81015c330ff506f7c0bdee1b635b9bf1159fb47a.zip |
Convert converters to MDOCS and MEXAMPLES
-rw-r--r-- | converters/aish/Makefile | 5 | ||||
-rw-r--r-- | converters/cl-babel/Makefile | 6 | ||||
-rw-r--r-- | converters/cocot/Makefile | 5 | ||||
-rw-r--r-- | converters/enca/Makefile | 5 | ||||
-rw-r--r-- | converters/fix-mime-charset/Makefile | 5 | ||||
-rw-r--r-- | converters/mule-ucs/Makefile | 5 | ||||
-rw-r--r-- | converters/o3read/Makefile | 5 | ||||
-rw-r--r-- | converters/py-zfec/Makefile | 2 | ||||
-rw-r--r-- | converters/uudeview/Makefile | 4 | ||||
-rw-r--r-- | converters/uulib/Makefile | 5 | ||||
-rw-r--r-- | converters/vda2fbd/Makefile | 9 | ||||
-rw-r--r-- | converters/xdeview/Makefile | 4 | ||||
-rw-r--r-- | converters/ytnef/Makefile | 5 |
13 files changed, 42 insertions, 23 deletions
diff --git a/converters/aish/Makefile b/converters/aish/Makefile index 7a0d4e91362f..c4d361818a10 100644 --- a/converters/aish/Makefile +++ b/converters/aish/Makefile @@ -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 diff --git a/converters/cl-babel/Makefile b/converters/cl-babel/Makefile index 16ed959a8b3c..31c7a8398d14 100644 --- a/converters/cl-babel/Makefile +++ b/converters/cl-babel/Makefile @@ -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 diff --git a/converters/cocot/Makefile b/converters/cocot/Makefile index cfa4376a5949..f879b1e919e9 100644 --- a/converters/cocot/Makefile +++ b/converters/cocot/Makefile @@ -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} diff --git a/converters/enca/Makefile b/converters/enca/Makefile index a97c7b54b3fe..22ed6f69a4fa 100644 --- a/converters/enca/Makefile +++ b/converters/enca/Makefile @@ -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 diff --git a/converters/fix-mime-charset/Makefile b/converters/fix-mime-charset/Makefile index 08e3a5fa65fb..a5f341ffe151 100644 --- a/converters/fix-mime-charset/Makefile +++ b/converters/fix-mime-charset/Makefile @@ -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} diff --git a/converters/mule-ucs/Makefile b/converters/mule-ucs/Makefile index 83125de6d946..574bb2bd2043 100644 --- a/converters/mule-ucs/Makefile +++ b/converters/mule-ucs/Makefile @@ -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 \ diff --git a/converters/o3read/Makefile b/converters/o3read/Makefile index ef86548619d4..70d852bb908f 100644 --- a/converters/o3read/Makefile +++ b/converters/o3read/Makefile @@ -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} diff --git a/converters/py-zfec/Makefile b/converters/py-zfec/Makefile index e0a3c9545bb4..6db61a7a52b3 100644 --- a/converters/py-zfec/Makefile +++ b/converters/py-zfec/Makefile @@ -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} diff --git a/converters/uudeview/Makefile b/converters/uudeview/Makefile index 1d02307f1a60..22d7a2ab3e8d 100644 --- a/converters/uudeview/Makefile +++ b/converters/uudeview/Makefile @@ -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> diff --git a/converters/uulib/Makefile b/converters/uulib/Makefile index edf0e9316afc..f3f5c3e65d25 100644 --- a/converters/uulib/Makefile +++ b/converters/uulib/Makefile @@ -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} diff --git a/converters/vda2fbd/Makefile b/converters/vda2fbd/Makefile index a06ba3827a1e..073c00f0abd1 100644 --- a/converters/vda2fbd/Makefile +++ b/converters/vda2fbd/Makefile @@ -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> diff --git a/converters/xdeview/Makefile b/converters/xdeview/Makefile index 12adaeba29e1..6a4de4d65d23 100644 --- a/converters/xdeview/Makefile +++ b/converters/xdeview/Makefile @@ -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 diff --git a/converters/ytnef/Makefile b/converters/ytnef/Makefile index 6f4279cc40bc..3a8a364dba51 100644 --- a/converters/ytnef/Makefile +++ b/converters/ytnef/Makefile @@ -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 |