diff options
author | thierry <thierry@FreeBSD.org> | 2004-06-15 05:40:38 +0800 |
---|---|---|
committer | thierry <thierry@FreeBSD.org> | 2004-06-15 05:40:38 +0800 |
commit | b0027db97ec326d978328125c5e530de2675c147 (patch) | |
tree | 83f5c56337299f52d672e505e27e0f0f95b23696 /devel/cvsbook | |
parent | f25cb20719b8bccd624aa37e8ab3c2cd65e1c7cb (diff) | |
download | freebsd-ports-gnome-b0027db97ec326d978328125c5e530de2675c147.tar.gz freebsd-ports-gnome-b0027db97ec326d978328125c5e530de2675c147.tar.zst freebsd-ports-gnome-b0027db97ec326d978328125c5e530de2675c147.zip |
- Unbreak (fix distinfo);
- Add OPTIONS;
- Bump PORTREVISION.
PR: ports/67888
Submitted by: Cyrille Lefevre.
Diffstat (limited to 'devel/cvsbook')
-rw-r--r-- | devel/cvsbook/Makefile | 81 | ||||
-rw-r--r-- | devel/cvsbook/distinfo | 4 |
2 files changed, 62 insertions, 23 deletions
diff --git a/devel/cvsbook/Makefile b/devel/cvsbook/Makefile index 13a41c93ccf4..f340a6431dca 100644 --- a/devel/cvsbook/Makefile +++ b/devel/cvsbook/Makefile @@ -7,7 +7,7 @@ PORTNAME= cvsbook PORTVERSION= 1.21 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= devel MASTER_SITES= http://cvsbook.red-bean.com/ DISTNAME= ${PORTNAME}-${PORTVERSION}-all @@ -15,39 +15,78 @@ DISTNAME= ${PORTNAME}-${PORTVERSION}-all MAINTAINER= ports@FreeBSD.org COMMENT= A tutorial and reference for CVS -BROKEN= "Size mismatch" +OPTIONS= CVSBOOK_INFO "Install the info version" on \ + CVSBOOK_SINGLE_HTML "Install the single-html version" on \ + CVSBOOK_SPLIT_HTML "Install the split-html version" off \ + CVSBOOK_POSTSCRIPT "Install the postscript version" on \ + CVSBOOK_PDF "Install the PDF version" on -ALL_TARGET= version +USE_REINPLACE= yes WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} -INFO= cvsbook -PLIST_FILES+= %%DOCSDIR%%/cvsbook.html \ - %%DOCSDIR%%/cvsbook.pdf \ - %%DOCSDIR%%/cvsbook.ps -.if defined(WITH_SPLIT_HTML) -ALL_TARGET+= html-monolithic +.include <bsd.port.pre.mk> + +.if defined(WITH_CVSBOOK_SPLIT_HTML) +ALL_TARGET= html-distributed +.else +NO_BUILD= yes .endif -.if !defined(WITH_SPLIT_HTML) -pre-everything:: - @${ECHO_MSG} "You can install SPLIT-HTML format of cvsbook" - @${ECHO_MSG} "by defining WITH_SPLIT_HTML" +.if defined(WITH_CVSBOOK_INFO) +INFO= cvsbook +INFODIR= ${PREFIX}/${INFO_PATH} +INSTALL_INFO?= install-info +.endif +.if defined(WITH_CVSBOOK_SINGLE_HTML) +PLIST_FILES+= %%DOCSDIR%%/cvsbook.html +WANT_DOCSDIR= yes +.endif +.if defined(WITH_CVSBOOK_POSTSCRIPT) +PLIST_FILES+= %%DOCSDIR%%/cvsbook.ps +WANT_DOCSDIR= yes +.endif +.if defined(WITH_CVSBOOK_PDF) +PLIST_FILES+= %%DOCSDIR%%/cvsbook.pdf +WANT_DOCSDIR= yes +.endif +.if defined(WITH_CVSBOOK_SPLIT_HTML) +PLIST_DIRS+= %%DOCSDIR%%/cvsbook +WANT_DOCSDIR= yes +.endif +.if defined(WANT_DOCSDIR) +PLIST_DIRS+= %%DOCSDIR%% +.endif + +.if defined(WITH_CVSBOOK_SPLIT_HTML) +post-patch: + ${REINPLACE} -e \ + '/Non-monolithic HTML not supported/s|@.*|makeinfo --html main.texi|' \ + ${WRKSRC}/Makefile .endif do-install: - @${MKDIR} ${DOCSDIR}/cvsbook-shtml -.if defined(WITH_SPLIT_HTML) +.if defined(WANT_DOCSDIR) + @${MKDIR} ${DOCSDIR} +.endif +.if defined(WITH_CVSBOOK_SPLIT_HTML) + @${MKDIR} ${DOCSDIR}/cvsbook @cd ${WRKSRC}/cvsbook && ${FIND} . -type f| ${CUT} -c2- \ | ${SED} 's|^|${DOCSDIR:S,${PREFIX}/,,}/cvsbook-shtml/|' \ | ${SORT} >> ${TMPPLIST} - @${INSTALL_DATA} ${WRKSRC}/cvsbook/* ${DOCSDIR}/cvsbook-shtml/ + @cd ${WRKSRC}/cvsbook && ${INSTALL_DATA} *.html ${DOCSDIR}/cvsbook .endif +.if defined(WITH_CVSBOOK_SINGLE_HTML) @${INSTALL_DATA} ${WRKSRC}/cvsbook.html ${DOCSDIR} +.endif +.if defined(WITH_CVSBOOK_PDF) @${INSTALL_DATA} ${WRKSRC}/cvsbook.pdf ${DOCSDIR} +.endif +.if defined(WITH_CVSBOOK_POSTSCRIPT) @${INSTALL_DATA} ${WRKSRC}/cvsbook.ps ${DOCSDIR} - @${INSTALL_DATA} ${WRKSRC}/cvsbook.info* ${PREFIX}/info - @install-info ${PREFIX}/info/cvsbook.info ${PREFIX}/info/dir - @${ECHO_CMD} "@dirrm ${DOCSDIR:S,^${PREFIX}/,,}/cvsbook-shtml" >> ${TMPPLIST} - @${ECHO_CMD} "@dirrm ${DOCSDIR:S,^${PREFIX}/,,}" >> ${TMPPLIST} +.endif +.if defined(WITH_CVSBOOK_INFO) + @${INSTALL_DATA} ${WRKSRC}/cvsbook.info* ${INFODIR} + @${INSTALL_INFO} ${INFODIR}/cvsbook.info ${INFODIR}/dir +.endif -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff --git a/devel/cvsbook/distinfo b/devel/cvsbook/distinfo index 15c624850826..67015a6227a0 100644 --- a/devel/cvsbook/distinfo +++ b/devel/cvsbook/distinfo @@ -1,2 +1,2 @@ -MD5 (cvsbook-1.21-all.tar.gz) = 8ee9176be735189cd0f88919e482fffb -SIZE (cvsbook-1.21-all.tar.gz) = 2026612 +MD5 (cvsbook-1.21-all.tar.gz) = 2e0b853a408b27e4a5638f74ddda217d +SIZE (cvsbook-1.21-all.tar.gz) = 4137136 |