1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-19 08:13:21 +00:00

- Convert to option helper install target (add OPTIONS_DEFINE=DOCS

when it was missing)
- Invoke INSTALL_DATA where appropriate instead of INSTALL_MAN
- Fix some whitespace and formatting bugs along the way
This commit is contained in:
Alexey Dokuchaev 2018-01-11 18:09:00 +00:00
parent 70e5afba3d
commit 35f74fbe2e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=458761
18 changed files with 110 additions and 86 deletions

View File

@ -19,16 +19,17 @@ MAKE_ARGS= LIBUTIL_OBJS=ssl_writev.o \
PLIST_FILES= bin/httperf \
man/man1/httperf.1.gz
OPTIONS_DEFINE= DOCS
PORTDOCS= ChangeLog NEWS README TODO
OPTIONS_DEFINE= DOCS
do-install:
${INSTALL_MAN} ${WRKSRC}/man/${PORTNAME}.1 ${STAGEDIR}${MAN1PREFIX}/man/man1/
${INSTALL_MAN} ${WRKSRC}/man/${PORTNAME}.1 \
${STAGEDIR}${MAN1PREFIX}/man/man1
${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for file in ${PORTDOCS}
${INSTALL_MAN} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}
.endfor
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>

View File

@ -77,7 +77,9 @@ do-install:
.for f in ${PERLMOD_FILES}
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${PREFIX}/${SITE_PERL_REL}/${f:H:T}/${f:T}
.endfor
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_MAN} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>

View File

@ -21,8 +21,8 @@ OPTIONS_SUB= yes
BASH_CONFIGURE_WITH= bash-completion-dir
post-install:
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_MAN} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>

View File

@ -31,6 +31,8 @@ USE_PYTHON= autoplist distutils concurrent optsuffix
PORTDOCS= tutorial.pdf
OPTIONS_DEFINE= DOCS
.include <bsd.port.pre.mk>
.if ${PGSQL_VER:M9\.[12345]}
@ -48,9 +50,12 @@ post-patch:
${SED} -i -e "s@%%PGUSER%%@${PGUSER}@" ${WRKSRC}/doc/barman.5
post-install:
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_MAN} ${WRKDIR}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}
${MKDIR} ${STAGEDIR}${ETCDIR}
${INSTALL_DATA} ${WRKSRC}/doc/barman.conf ${STAGEDIR}${ETCDIR}/barman.conf.sample
${INSTALL_DATA} ${WRKSRC}/doc/barman.conf \
${STAGEDIR}${ETCDIR}/barman.conf.sample
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKDIR}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.post.mk>

View File

@ -12,15 +12,8 @@ COMMENT= Data modeling and profiling tool
LICENSE= GPLv3
OPTIONS_DEFINE= MYSQL_JDBC PGSQL_JDBC
MYSQL_JDBC_RUN_DEPENDS= ${JAVALIBDIR}/mysql-connector-java.jar:databases/mysql-connector-java
PGSQL_JDBC_RUN_DEPENDS= ${JAVALIBDIR}/postgresql.jar:databases/postgresql-jdbc
USE_JAVA= yes
JAVA_VERSION= 1.6+
NO_BUILD= yes
PORTDOCS= *
@ -28,6 +21,11 @@ DATADIR= ${JAVASHAREDIR}/${PORTNAME}
WRKSRC= ${WRKDIR}/architect-${PORTVERSION}
SUB_FILES= ${PORTNAME}
OPTIONS_DEFINE= DOCS MYSQL_JDBC PGSQL_JDBC
MYSQL_JDBC_RUN_DEPENDS= ${JAVALIBDIR}/mysql-connector-java.jar:databases/mysql-connector-java
PGSQL_JDBC_RUN_DEPENDS= ${JAVALIBDIR}/postgresql.jar:databases/postgresql-jdbc
do-install:
@${MKDIR} ${STAGEDIR}/${DATADIR}/jdbc
(cd ${WRKSRC}/ && \
@ -36,7 +34,8 @@ do-install:
${COPYTREE_SHARE} lib ${STAGEDIR}/${DATADIR})
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}/${PREFIX}/bin/${PORTNAME}
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}/${DOCSDIR}
${INSTALL_MAN} ${WRKSRC}/README.generic ${STAGEDIR}/${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.generic ${STAGEDIR}/${DOCSDIR}
.include <bsd.port.mk>

View File

@ -37,6 +37,6 @@ post-install:
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_MAN} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>

View File

@ -28,7 +28,10 @@ USE_PERL5= run
USE_GCC= 4.8 # same as devel/elfutils
NO_BUILD= yes
PLIST_FILES= bin/${PORTNAME}.pl
PORTDOCS= Changes.html Descriptor.html Options.html Readme.html \
SpecType.html
OPTIONS_DEFINE= DOCS
@ -55,17 +58,13 @@ post-patch:
do-install:
@${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.pl ${STAGEDIR}${PREFIX}/bin
.if defined(MAINTAINER_MODE) || defined(PACKAGE_BUILDING)
check regression-test test: build
cd ${WRKSRC}; ${PERL} ./${PORTNAME}.pl -test
.endif
PORTDOCS= Changes.html Descriptor.html Options.html Readme.html SpecType.html
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
@(cd ${WRKSRC}/doc; ${INSTALL_MAN} ${PORTDOCS} ${STAGEDIR}${DOCSDIR})
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/doc/,} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>

View File

@ -33,8 +33,12 @@ GIT_SUBVERSION_RUN_DEPENDS= git-subversion>0:devel/git-subversion
GIT_SUBVERSION_RUN_DEPENDS_OFF= git>0:devel/git
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/${ELISPDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/*.el ${WRKSRC}/*.elc ${STAGEDIR}${PREFIX}/${ELISPDIR}
${INSTALL_MAN} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
@${MKDIR} ${STAGEDIR}${PREFIX}/${ELISPDIR}
${INSTALL_DATA} ${WRKSRC}/*.el ${WRKSRC}/*.elc \
${STAGEDIR}${PREFIX}/${ELISPDIR}
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>

View File

@ -24,8 +24,8 @@ PLIST_FILES= lib/gtk-2.0/modules/libgtkparasite.so
OPTIONS_DEFINE= DOCS
post-install:
post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_MAN} ${WRKSRC}/USAGE ${STAGEDIR}/${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/USAGE ${STAGEDIR}/${DOCSDIR}
.include <bsd.port.mk>

View File

@ -16,14 +16,16 @@ GH_TAGNAME= 1bf6ce5
PLIST_FILES= bin/jsmin
PORTDOCS= README
.include <bsd.port.options.mk>
OPTIONS_DEFINE= DOCS
do-build:
cd ${WRKSRC} && ${CC} ${CFLAGS} -o ${PORTNAME} ${PORTNAME}.c
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_MAN} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>

View File

@ -9,9 +9,11 @@ MASTER_SITES= LOCAL/philip
MAINTAINER= rodrigo@FreeBSD.org
COMMENT= Library of Assorted Useful Reusable Abstractions
USES= tar:bzip2
USES= tar:bzip2
USE_LDCONFIG= yes
MAKE_ENV= SONAME=${SONAME} SOLINK=${SOLINK}
SONAME= ${SOLINK}.3
SOLINK= ${PORTNAME}3.so
@ -24,18 +26,20 @@ PLIST_FILES= lib/${SONAME} \
include/aura3/mem.h
PORTDOCS= README
MAKE_ENV= SONAME=${SONAME} SOLINK=${SOLINK}
OPTIONS_DEFINE= DOCS
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${SONAME} ${STAGEDIR}${PREFIX}/lib/${SONAME}
${LN} -s ${PREFIX}/lib/${SONAME} ${STAGEDIR}${PREFIX}/lib/${SOLINK}
${INSTALL_PROGRAM} ${WRKSRC}/${SONAME} ${STAGEDIR}${PREFIX}/lib
${LN} -s ${SONAME} ${STAGEDIR}${PREFIX}/lib/${SOLINK}
${MKDIR} ${STAGEDIR}${PREFIX}/include/aura3/
${INSTALL_DATA} ${WRKSRC}/buffer.h ${STAGEDIR}${PREFIX}/include/aura3/
${INSTALL_DATA} ${WRKSRC}/dict.h ${STAGEDIR}${PREFIX}/include/aura3/
${INSTALL_DATA} ${WRKSRC}/popen.h ${STAGEDIR}${PREFIX}/include/aura3/
${INSTALL_DATA} ${WRKSRC}/fspred.h ${STAGEDIR}${PREFIX}/include/aura3/
${INSTALL_DATA} ${WRKSRC}/mem.h ${STAGEDIR}${PREFIX}/include/aura3/
do-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_MAN} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>

View File

@ -13,9 +13,11 @@ LICENSE= BSD3CLAUSE
LIB_DEPENDS= libaura3.so:devel/libaura
USES= tar:bzip2
USES= tar:bzip2
USE_LDCONFIG= yes
MAKE_ENV= SONAME=${SONAME} SOLINK=${SOLINK}
SONAME= ${SOLINK}.4
SOLINK= ${PORTNAME}4.so
@ -31,13 +33,13 @@ PLIST_FILES= lib/${SONAME} \
include/dfui4/system.h
PORTDOCS= README
MAKE_ENV= SONAME=${SONAME} SOLINK=${SOLINK}
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/Makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${SONAME} ${STAGEDIR}${PREFIX}/lib/${SONAME}
${INSTALL_PROGRAM} ${WRKSRC}/${SONAME} ${STAGEDIR}${PREFIX}/lib
${LN} -s ${SONAME} ${STAGEDIR}${PREFIX}/lib/${SOLINK}
${MKDIR} ${STAGEDIR}${PREFIX}/include/dfui4
${INSTALL_DATA} ${WRKSRC}/conn_caps.h ${STAGEDIR}${PREFIX}/include/dfui4/
@ -48,7 +50,9 @@ do-install:
${INSTALL_DATA} ${WRKSRC}/encoding.h ${STAGEDIR}${PREFIX}/include/dfui4/
${INSTALL_DATA} ${WRKSRC}/lang.h ${STAGEDIR}${PREFIX}/include/dfui4/
${INSTALL_DATA} ${WRKSRC}/system.h ${STAGEDIR}${PREFIX}/include/dfui4/
do-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_MAN} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>

View File

@ -27,9 +27,11 @@ OPTIONS_DEFINE= DOCS
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/noip2 ${STAGEDIR}${PREFIX}/bin
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_MAN} ${WRKSRC}/README.FIRST ${STAGEDIR}${DOCSDIR}
${INSTALL_MAN} ${WRKSRC}/COPYING ${STAGEDIR}${DOCSDIR}
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.FIRST ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/COPYING ${STAGEDIR}${DOCSDIR}
conf:
(cd ${PREFIX}/etc && ${PREFIX}/bin/noip2 -C)

View File

@ -18,22 +18,25 @@ GH_ACCOUNT= magit
USES= gmake makeinfo
USE_EMACS= yes
MAKE_ENV= EFLAGS="-L ${PREFIX}/${EMACS_SITE_LISPDIR}"
NO_ARCH= yes
INFO= with-editor
PORTDOCS= README.md
OPTIONS_DEFINE= DOCS
MAKE_ENV+= EFLAGS="-L ${PREFIX}/${EMACS_SITE_LISPDIR}"
PLIST_FILES= ${EMACS_VERSION_SITE_LISPDIR}/with-editor.el \
${EMACS_VERSION_SITE_LISPDIR}/with-editor.elc \
${EMACS_VERSION_SITE_LISPDIR}/with-editor-autoloads.el
OPTIONS_DEFINE= DOCS
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/${EMACS_VERSION_SITE_LISPDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/*.el ${WRKSRC}/*.elc ${STAGEDIR}${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}
${INSTALL_MAN} ${WRKSRC}/*.info ${STAGEDIR}${PREFIX}/${INFO_PATH}
${INSTALL_MAN} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
@${MKDIR} ${STAGEDIR}${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}
${INSTALL_DATA} ${WRKSRC}/*.el ${WRKSRC}/*.elc \
${STAGEDIR}${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/*.info ${STAGEDIR}${PREFIX}/${INFO_PATH}
${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>

View File

@ -20,21 +20,14 @@ PORTEXAMPLES= Makefile pairs.c tuples.c
OPTIONS_DEFINE= DOCS EXAMPLES
.include <bsd.port.options.mk>
post-install:
.if ${PORT_OPTIONS:MDOCS}
post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
.for _d in ${PORTDOCS}
${INSTALL_MAN} ${WRKSRC}/doc/${_d} ${STAGEDIR}${DOCSDIR}
.endfor
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/doc/,} ${STAGEDIR}${DOCSDIR}
post-install-EXAMPLES-on:
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
.for _e in ${PORTEXAMPLES}
${INSTALL_DATA} ${WRKSRC}/examples/${_e} ${STAGEDIR}${EXAMPLESDIR}
.endfor
.endif
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/examples/,} \
${STAGEDIR}${EXAMPLESDIR}
check regression-test test: build
@(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE_CMD} \

View File

@ -17,10 +17,14 @@ GNU_CONFIGURE= yes
PLIST_FILES= bin/atom man/man1/atom.1.gz
PORTDOCS= README TODO testFile
OPTIONS_DEFINE= DOCS
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${PREFIX}/man/man1/
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_MAN} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}/
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>

View File

@ -1,24 +1,25 @@
# Created by: Andrey Zakhvatov
# $FreeBSD$
PORTNAME= c2html
PORTVERSION= 0.9.6
CATEGORIES= textproc www
MASTER_SITES= SUNSITE/apps/www/converters
PORTNAME= c2html
PORTVERSION= 0.9.6
CATEGORIES= textproc www
MASTER_SITES= SUNSITE/apps/www/converters
MAINTAINER= mkamm@gmx.net
MAINTAINER= mkamm@gmx.net
COMMENT= C-language sources to HTML converter
LICENSE= GPLv2
GNU_CONFIGURE= yes
PLIST_FILES= bin/c2html man/man1/c2html.1.gz
PORTDOCS= AUTHORS NEWS README
post-install:
OPTIONS_DEFINE= DOCS
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for file in ${PORTDOCS}
${INSTALL_MAN} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}
.endfor
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>

View File

@ -25,10 +25,11 @@ do-configure:
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/tidy ${STAGEDIR}${PREFIX}/bin/tidy4
${INSTALL_MAN} ${WRKSRC}/man_page.txt ${STAGEDIR}${PREFIX}/man/man1/tidy4.1
${MKDIR} ${STAGEDIR}${DOCSDIR}
.for docfile in ${DOCFILES}
${INSTALL_MAN} ${WRKSRC}/${docfile} ${STAGEDIR}${DOCSDIR}/
.endfor
${INSTALL_MAN} ${WRKSRC}/man_page.txt \
${STAGEDIR}${PREFIX}/man/man1/tidy4.1
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>