2002-03-25 22:22:39 +00:00
|
|
|
# New ports collection makefile for: cvsbook
|
|
|
|
# Date created: 2002/02/28
|
|
|
|
# Whom: Alan Eldridge <alane@geeksrus.net>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= cvsbook
|
|
|
|
PORTVERSION= 1.21
|
2004-06-14 21:40:38 +00:00
|
|
|
PORTREVISION= 2
|
2002-03-25 22:22:39 +00:00
|
|
|
CATEGORIES= devel
|
|
|
|
MASTER_SITES= http://cvsbook.red-bean.com/
|
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}-all
|
|
|
|
|
2003-01-02 18:18:45 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 17:07:10 +00:00
|
|
|
COMMENT= A tutorial and reference for CVS
|
2002-03-25 22:22:39 +00:00
|
|
|
|
2004-06-14 21:40:38 +00:00
|
|
|
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
|
2004-05-28 07:11:50 +00:00
|
|
|
|
2004-06-14 21:40:38 +00:00
|
|
|
USE_REINPLACE= yes
|
2002-03-25 22:22:39 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
2004-05-21 16:15:21 +00:00
|
|
|
|
2004-06-14 21:40:38 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(WITH_CVSBOOK_SPLIT_HTML)
|
|
|
|
ALL_TARGET= html-distributed
|
|
|
|
.else
|
|
|
|
NO_BUILD= yes
|
2004-05-21 16:15:21 +00:00
|
|
|
.endif
|
|
|
|
|
2004-06-26 22:32:50 +00:00
|
|
|
.if !defined(WITHOUT_CVSBOOK_INFO)
|
2004-06-14 21:40:38 +00:00
|
|
|
INFO= cvsbook
|
|
|
|
INFODIR= ${PREFIX}/${INFO_PATH}
|
|
|
|
INSTALL_INFO?= install-info
|
|
|
|
.endif
|
2004-06-26 22:32:50 +00:00
|
|
|
.if !defined(WITHOUT_CVSBOOK_SINGLE_HTML)
|
2004-06-14 21:40:38 +00:00
|
|
|
PLIST_FILES+= %%DOCSDIR%%/cvsbook.html
|
|
|
|
WANT_DOCSDIR= yes
|
|
|
|
.endif
|
2004-06-26 22:32:50 +00:00
|
|
|
.if !defined(WITHOUT_CVSBOOK_POSTSCRIPT)
|
2004-06-14 21:40:38 +00:00
|
|
|
PLIST_FILES+= %%DOCSDIR%%/cvsbook.ps
|
|
|
|
WANT_DOCSDIR= yes
|
|
|
|
.endif
|
2004-06-26 22:32:50 +00:00
|
|
|
.if !defined(WITHOUT_CVSBOOK_PDF)
|
2004-06-14 21:40:38 +00:00
|
|
|
PLIST_FILES+= %%DOCSDIR%%/cvsbook.pdf
|
|
|
|
WANT_DOCSDIR= yes
|
|
|
|
.endif
|
|
|
|
.if defined(WITH_CVSBOOK_SPLIT_HTML)
|
2004-06-26 22:32:50 +00:00
|
|
|
PLIST_DIRS+= %%DOCSDIR%%/cvsbook-shtml
|
2004-06-14 21:40:38 +00:00
|
|
|
WANT_DOCSDIR= yes
|
|
|
|
.endif
|
|
|
|
.if defined(WANT_DOCSDIR)
|
|
|
|
PLIST_DIRS+= %%DOCSDIR%%
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_CVSBOOK_SPLIT_HTML)
|
|
|
|
post-patch:
|
2004-06-26 22:32:50 +00:00
|
|
|
${REINPLACE_CMD} -e \
|
2004-06-14 21:40:38 +00:00
|
|
|
'/Non-monolithic HTML not supported/s|@.*|makeinfo --html main.texi|' \
|
|
|
|
${WRKSRC}/Makefile
|
2004-05-21 16:15:21 +00:00
|
|
|
.endif
|
2002-03-25 22:22:39 +00:00
|
|
|
|
2004-06-26 22:32:50 +00:00
|
|
|
.if defined(WITH_CVSBOOK_SPLIT_HTML)
|
|
|
|
pre-install:
|
|
|
|
PLIST_FILES+= `cd ${WRKSRC}/cvsbook && ${FIND} . -type f| ${CUT} -c2- \
|
|
|
|
| ${SED} 's|^|${DOCSDIR:S,${PREFIX}/,,}/cvsbook-shtml|' \
|
|
|
|
| ${SORT}`
|
|
|
|
.endif
|
|
|
|
|
2002-03-25 22:22:39 +00:00
|
|
|
do-install:
|
2004-06-14 21:40:38 +00:00
|
|
|
.if defined(WANT_DOCSDIR)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
.endif
|
|
|
|
.if defined(WITH_CVSBOOK_SPLIT_HTML)
|
2004-06-26 22:32:50 +00:00
|
|
|
@${MKDIR} ${DOCSDIR}/cvsbook-shtml
|
|
|
|
@cd ${WRKSRC}/cvsbook && ${INSTALL_DATA} -- *.html ${DOCSDIR}/cvsbook-shtml
|
2004-05-21 16:15:21 +00:00
|
|
|
.endif
|
2004-06-26 22:32:50 +00:00
|
|
|
.if !defined(WITHOUT_CVSBOOK_SINGLE_HTML)
|
2002-03-25 22:22:39 +00:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/cvsbook.html ${DOCSDIR}
|
2004-06-14 21:40:38 +00:00
|
|
|
.endif
|
2004-06-26 22:32:50 +00:00
|
|
|
.if !defined(WITHOUT_CVSBOOK_PDF)
|
2002-03-25 22:22:39 +00:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/cvsbook.pdf ${DOCSDIR}
|
2004-06-14 21:40:38 +00:00
|
|
|
.endif
|
2004-06-26 22:32:50 +00:00
|
|
|
.if !defined(WITHOUT_CVSBOOK_POSTSCRIPT)
|
2002-03-25 22:22:39 +00:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/cvsbook.ps ${DOCSDIR}
|
2004-06-14 21:40:38 +00:00
|
|
|
.endif
|
2004-06-26 22:32:50 +00:00
|
|
|
.if !defined(WITHOUT_CVSBOOK_INFO)
|
2004-06-14 21:40:38 +00:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/cvsbook.info* ${INFODIR}
|
|
|
|
@${INSTALL_INFO} ${INFODIR}/cvsbook.info ${INFODIR}/dir
|
|
|
|
.endif
|
2002-03-25 22:22:39 +00:00
|
|
|
|
2004-06-14 21:40:38 +00:00
|
|
|
.include <bsd.port.post.mk>
|