ports/115847: [PATCH] devel/pcre: really respect NOPORTDOCS

Rong-En Fan rafan at FreeBSD.org
Mon Aug 27 03:50:01 UTC 2007


>Number:         115847
>Category:       ports
>Synopsis:       [PATCH] devel/pcre: really respect NOPORTDOCS
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Aug 27 03:50:00 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Rong-En Fan
>Release:        FreeBSD 6.2-STABLE amd64
>Organization:
NTU CSIE
>Environment:
System: FreeBSD svm.csie.ntu.edu.tw 6.2-STABLE FreeBSD 6.2-STABLE #1: Sat Jul 14 14:31:49 CST 2007
>Description:
Distribution's Makefile installs documents unconditionally. Patch it.

Port maintainer (krion at FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- pcre-7.2.patch begins here ---
Index: Makefile
===================================================================
RCS file: /big/freebsd-cvsup/ncvs/ports/devel/pcre/Makefile,v
retrieving revision 1.46
diff -u -u -r1.46 Makefile
--- Makefile	4 Aug 2007 11:40:49 -0000	1.46
+++ Makefile	27 Aug 2007 03:39:03 -0000
@@ -44,12 +44,13 @@
 		pcrecpp.3 pcrematching.3 pcrepattern.3 \
 		pcreperform.3 pcreposix.3 pcresample.3 pcrestack.3
 
+post-patch:
+.if defined(NOPORTDOCS)
+	@${REINPLACE_CMD} -E -e '/^install-data-am/,/^$$/ s,install-(dist_doc|dist_html|html)DATA,,g' \
+		${WRKSRC}/Makefile.in
+.endif
+
 post-install:
 	@${STRIP_CMD} ${PREFIX}/bin/pcregrep ${PREFIX}/bin/pcretest
-.if !defined(NOPORTDOCS)
-	@${MKDIR} ${DOCSDIR} ${DOCSDIR}/html
-	@cd ${WRKSRC}; ${INSTALL_DATA} ChangeLog NEWS LICENCE doc/*.txt ${DOCSDIR}
-	@${INSTALL_DATA} ${WRKSRC}/doc/html/*.html ${DOCSDIR}/html
-.endif
 
 .include <bsd.port.mk>
--- pcre-7.2.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list