Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 May 2006 22:57:58 +0200 (CEST)
From:      Rene Ladan <r.c.ladan@gmail.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/97989: [MAINTAINER] devel/libusb: enable documentation
Message-ID:  <200605262057.k4QKvwg9033954@82-168-79-254.dsl.ip.tiscali.nl>
Resent-Message-ID: <200605262100.k4QL0k4f081949@freefall.freebsd.org>

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

>Number:         97989
>Category:       ports
>Synopsis:       [MAINTAINER] devel/libusb: enable documentation
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 26 21:00:45 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Rene Ladan
>Release:        FreeBSD 6.1-RELEASE i386
>Organization:
>Environment:
System: FreeBSD 82-168-79-254.dsl.ip.tiscali.nl 6.1-RELEASE FreeBSD 6.1-RELEASE #2: Sun May  7 11:56:20 CEST
>Description:
Unless NOPORTDOCS is defined, enable building and installing the SGML documentation describing the libusb develoeprs guide.

Unresolved: the @dirrm entries in the generated +CONTENTS file appear after the fixed plist items instead of after the %%PORTDOCS%% part.

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

diff -ruN /usr/ports/devel/libusb.orig/Makefile /usr/ports/devel/libusb/Makefile
--- /usr/ports/devel/libusb.orig/Makefile	Thu May 25 22:28:34 2006
+++ /usr/ports/devel/libusb/Makefile	Fri May 26 22:53:33 2006
@@ -14,12 +14,27 @@
 MAINTAINER=	r.c.ladan@gmail.com
 COMMENT=	Library giving userland programs access to USB devices
 
+.if defined(NOPORTDOCS)
 CONFIGURE_ARGS=	--disable-build-docs
+.else
+BUILD_DEPENDS+=	${LOCALBASE}/share/sgml/jade/catalog:${PORTSDIR}/textproc/jade
+BUILD_DEPENDS+=	${LOCALBASE}/share/sgml/docbook/dsssl/modular/catalog:${PORTSDIR}/textproc/dsssl-docbook-modular
+BUILD_DEPENDS+=	${LOCALBASE}/share/sgml/docbook/catalog:${PORTSDIR}/textproc/docbook
+MAKE_ENV+=	SGML_CATALOG_FILES=${LOCALBASE}/share/sgml/jade/catalog:${LOCALBASE}/share/sgml/docbook/dsssl/modular/catalog:${LOCALBASE}/share/sgml/docbook/catalog:${LOCALBASE}/share/sgml/docbook/4.2/catalog
+PORTDOCS=	doc/html/*
+.endif
+
 INSTALLS_SHLIB=	yes
 GNU_CONFIGURE=	yes
 
 post-patch:
 	@${REINPLACE_CMD} -e 's|{libdir}/pkgconfig|{prefix}/libdata/pkgconfig|g' ${WRKSRC}/configure
 	@${REINPLACE_CMD} -e 's|<stdint.h>|<inttypes.h>|' ${WRKSRC}/descriptors.c
+
+post-install:
+.if !defined(NOPORTDOCS)
+	@${MKDIR} ${DOCSDIR}/doc/html
+	@${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${DOCSDIR}/doc/html
+.endif
 
 .include <bsd.port.mk>
diff -ruN /usr/ports/devel/libusb.orig/pkg-plist /usr/ports/devel/libusb/pkg-plist
--- /usr/ports/devel/libusb.orig/pkg-plist	Wed Mar 29 08:53:05 2006
+++ /usr/ports/devel/libusb/pkg-plist	Fri May 26 22:36:46 2006
@@ -12,3 +12,6 @@
 lib/libusbpp.la
 lib/libusbpp.so
 libdata/pkgconfig/libusb.pc
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/doc/html
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/doc
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
>Release-Note:
>Audit-Trail:
>Unformatted:



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