Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Jun 2004 01:42:42 +0200
From:      Cyrille Lefevre <cyrille.lefevre@laposte.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/67888: Ports update: devel/cvsbook (was marked broken)
Message-ID:  <20040612234242.GA35525@gits.dyndns.org>
Resent-Message-ID: <200406122350.i5CNoGmO041984@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         67888
>Category:       ports
>Synopsis:       Ports update: devel/cvsbook (was marked broken)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jun 12 23:50:15 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Cyrille Lefevre
>Release:        FreeBSD 5.2-CURRENT i386
>Organization:
ACME
>Environment:
System: FreeBSD gits 5.2-CURRENT FreeBSD 5.2-CURRENT #29: Mon May 31 01:35:59 CEST 2004 root@gits:/disk3/freebsd/current/obj/disk3/freebsd/current/src/sys/CUSTOM i386
>Description:
	Makefile
		PORTREVISION bumped
		BROKEN deleted
		OPTIONS added
		heuristic changed
	distinfo
		updated
>How-To-Repeat:
	n/a
>Fix:
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/devel/cvsbook/Makefile,v
retrieving revision 1.9
diff -u -I$Id.*$ -I$.+BSD.*$ -r1.9 Makefile
--- Makefile	28 May 2004 07:11:50 -0000	1.9
+++ Makefile	12 Jun 2004 23:39:03 -0000
@@ -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 @@
 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}
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_CVSBOOK_SPLIT_HTML)
+ALL_TARGET=	html-distributed
+.else
+NO_BUILD=	yes
+.endif
+
+.if defined(WITH_CVSBOOK_INFO)
 INFO=		cvsbook
-PLIST_FILES+=	%%DOCSDIR%%/cvsbook.html \
-		%%DOCSDIR%%/cvsbook.pdf \
-		%%DOCSDIR%%/cvsbook.ps
-
-.if defined(WITH_SPLIT_HTML)
-ALL_TARGET+=	html-monolithic
+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_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_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>
Index: distinfo
===================================================================
RCS file: /home/ncvs/ports/devel/cvsbook/distinfo,v
retrieving revision 1.3
diff -u -I$Id.*$ -I$.+BSD.*$ -r1.3 distinfo
--- distinfo	21 May 2004 16:15:21 -0000	1.3
+++ distinfo	12 Jun 2004 22:41:25 -0000
@@ -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
>Release-Note:
>Audit-Trail:
>Unformatted:


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040612234242.GA35525>