ports/136055: [patch] x11/libxcb -- enable installation of documentation

Pietro Cerutti gahr at FreeBSD.org
Thu Jun 25 19:00:14 UTC 2009


>Number:         136055
>Category:       ports
>Synopsis:       [patch] x11/libxcb -- enable installation of documentation
>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:   Thu Jun 25 19:00:06 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Pietro Cerutti
>Release:        FreeBSD 8.0-CURRENT i386
>Organization:
The FreeBSD Project 
>Environment:


System: FreeBSD 8.0-CURRENT #5: Fri Jun 19 09:46:39 CEST 2009
    root@:/usr/obj/usr/src/sys/MSI1034



>Description:


I would like x11/libxcb to install the HTML tutorial, when NOPORTDOCS is not set. The attached patch does just that.
Please approve and I will commit.


>How-To-Repeat:





>Fix:


--- libxcb.diff begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/x11/libxcb/Makefile,v
retrieving revision 1.18
diff -u -u -r1.18 Makefile
--- Makefile	14 Jun 2009 22:22:28 -0000	1.18
+++ Makefile	25 Jun 2009 18:48:31 -0000
@@ -46,6 +46,9 @@
 XPROTO_LIBS=	-L${LOCALBASE}/lib
 
 post-install:
+.if !defined(NOPORTDOCS)
+	${MAKE} -C ${WRKSRC}/doc ${INSTALL_TARGET}
+.endif
 	@${ECHO_MSG} ''
 	@${CAT} ${PKGMESSAGE}
 	@${ECHO_MSG} ''
Index: pkg-plist
===================================================================
RCS file: /home/pcvs/ports/x11/libxcb/pkg-plist,v
retrieving revision 1.10
diff -u -u -r1.10 pkg-plist
--- pkg-plist	14 Jun 2009 22:22:28 -0000	1.10
+++ pkg-plist	25 Jun 2009 18:49:37 -0000
@@ -130,4 +130,8 @@
 libdata/pkgconfig/xcb-xv.pc
 libdata/pkgconfig/xcb-xvmc.pc
 libdata/pkgconfig/xcb.pc
+%%PORTDOCS%%%%DOCSDIR%%/tutorial/index.html
+%%PORTDOCS%%%%DOCSDIR%%/tutorial/xcb.css
 @dirrmtry include/xcb
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/tutorial
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
--- libxcb.diff ends here ---



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



More information about the freebsd-ports-bugs mailing list