Mercurial > hgrepos > FreeBSD > ports > sysutils > local-bsdtools
comparison Makefile @ 281:490aed463971
Implement a DOCS make option to build manual pages.
BUGS: Just the by default generated local-bsdtools(1) page is included yet.
No other manpage ist implemented yet.
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Sat, 17 Sep 2022 23:19:20 +0200 |
| parents | 3c24b07240f2 |
| children | 1fc3b04b39fa |
comparison
equal
deleted
inserted
replaced
| 280:d9f0c8e00019 | 281:490aed463971 |
|---|---|
| 13 | 13 |
| 14 EXTRACT_DEPENDS= hg:devel/mercurial | 14 EXTRACT_DEPENDS= hg:devel/mercurial |
| 15 RUN_DEPENDS= pkg:ports-mgmt/pkg | 15 RUN_DEPENDS= pkg:ports-mgmt/pkg |
| 16 | 16 |
| 17 NO_ARCH= yes | 17 NO_ARCH= yes |
| 18 NO_BUILD= yes | |
| 19 WRKSRC= ${WRKDIR}/local-bsdtools | 18 WRKSRC= ${WRKDIR}/local-bsdtools |
| 19 | |
| 20 OPTIONS_DEFINE= DOCS | |
| 21 OPTIONS_SUB= yes | |
| 22 | |
| 23 DOCS_BUILD_DEPENDS= sphinx-build:textproc/py-sphinx | |
| 24 DOCS_VARS_OFF= NO_BUILD=yes | |
| 25 | |
| 26 .include <bsd.port.options.mk> | |
| 20 | 27 |
| 21 SRC= ${.CURDIR} | 28 SRC= ${.CURDIR} |
| 22 | 29 |
| 23 HGCANONICALPATH?= default | 30 HGCANONICALPATH?= default |
| 24 HGREVISION= ${:!hg id -R "${SRC}" -q!} | 31 HGREVISION= ${:!hg id -R "${SRC}" -q!} |
| 49 ${CP} -v ${SRC}/${_ef} ${WRKSRC}/${_ef} | 56 ${CP} -v ${SRC}/${_ef} ${WRKSRC}/${_ef} |
| 50 ${SED} -i "" -e "s|\\\$$HGid\\\$$|\$$HGid: ${HGPATH}/${_ef} ${HGREVISION} ${HGDATE} ${HGAUTHOR} ${HGPHASE} \$$|" ${WRKSRC}/${_ef} | 57 ${SED} -i "" -e "s|\\\$$HGid\\\$$|\$$HGid: ${HGPATH}/${_ef} ${HGREVISION} ${HGDATE} ${HGAUTHOR} ${HGPHASE} \$$|" ${WRKSRC}/${_ef} |
| 51 ${SED} -i "" -e "s|@@PKGORIGIN@@|${PKGORIGIN}|" ${WRKSRC}/${_ef} | 58 ${SED} -i "" -e "s|@@PKGORIGIN@@|${PKGORIGIN}|" ${WRKSRC}/${_ef} |
| 52 .endfor | 59 .endfor |
| 53 | 60 |
| 61 post-extract-DOCS-on: | |
| 62 ${MKDIR} ${WRKSRC}/docs | |
| 63 (${TAR} -C ${.CURDIR}/docs -c --exclude ./_build -f - . | ${TAR} -C ${WRKSRC}/docs -x -f - ) | |
| 64 | |
| 65 .if ${PORT_OPTIONS:MDOCS} | |
| 66 do-build: | |
| 67 (cd ${WRKSRC}/docs && sphinx-build -M man . _build) | |
| 68 .endif | |
| 69 | |
| 54 do-install: | 70 do-install: |
| 55 .for _rp in sbin/check-ports sbin/fjail sbin/ftjail sbin/fzfs sbin/fpkg sbin/bsmtp2dma | 71 .for _rp in sbin/check-ports sbin/fjail sbin/ftjail sbin/fzfs sbin/fpkg sbin/bsmtp2dma |
| 56 ${INSTALL_SCRIPT} ${WRKSRC}/${_rp} ${STAGEDIR}${PREFIX}/${_rp} | 72 ${INSTALL_SCRIPT} ${WRKSRC}/${_rp} ${STAGEDIR}${PREFIX}/${_rp} |
| 57 .endfor | 73 .endfor |
| 58 ${MKDIR} ${STAGEDIR}${ETCDIR} | 74 ${MKDIR} ${STAGEDIR}${ETCDIR} |
| 62 ${MKDIR} ${STAGEDIR}${PREFIX}/etc/periodic/daily | 78 ${MKDIR} ${STAGEDIR}${PREFIX}/etc/periodic/daily |
| 63 .for _ps in 800.local-ipv6-refresh | 79 .for _ps in 800.local-ipv6-refresh |
| 64 ${INSTALL_SCRIPT} ${WRKSRC}/etc/periodic/daily/${_ps} ${STAGEDIR}${PREFIX}/etc/periodic/daily | 80 ${INSTALL_SCRIPT} ${WRKSRC}/etc/periodic/daily/${_ps} ${STAGEDIR}${PREFIX}/etc/periodic/daily |
| 65 .endfor | 81 .endfor |
| 66 | 82 |
| 83 post-install-DOCS-on: | |
| 84 ${INSTALL_DATA} ${WRKSRC}/docs/_build/man/local-bsdtools.1 ${STAGEDIR}${LOCALBASE}/man/man1/local-bsdtools.1 | |
| 85 | |
| 67 .include <bsd.port.mk> | 86 .include <bsd.port.mk> |
