Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 May 2006 01:05:16 +0200 (CEST)
From:      Rene Ladan <r.c.ladan@gmail.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/97993: [MAINTAINER] devel/libusb: enable documentation (replaces ports/97989)
Message-ID:  <200605262305.k4QN5Gkn063344@82-168-79-254.dsl.ip.tiscali.nl>
Resent-Message-ID: <200605262310.k4QNAMeM088857@freefall.freebsd.org>

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

>Number:         97993
>Category:       ports
>Synopsis:       [MAINTAINER] devel/libusb: enable documentation (replaces ports/97989)
>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 23:10:21 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:
Enable build and install of documentation via the option "SGML"

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	Sat May 27 00:53:42 2006
@@ -14,7 +14,21 @@
 MAINTAINER=	r.c.ladan@gmail.com
 COMMENT=	Library giving userland programs access to USB devices
 
+OPTIONS=	SGML "Install developer guide from SGML" off
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_SGML)
+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
+PLIST_SUB=	SGML=""
+.else
 CONFIGURE_ARGS=	--disable-build-docs
+PLIST_SUB=	SGML="@comment "
+.endif
+
 INSTALLS_SHLIB=	yes
 GNU_CONFIGURE=	yes
 
@@ -22,4 +36,10 @@
 	@${REINPLACE_CMD} -e 's|{libdir}/pkgconfig|{prefix}/libdata/pkgconfig|g' ${WRKSRC}/configure
 	@${REINPLACE_CMD} -e 's|<stdint.h>|<inttypes.h>|' ${WRKSRC}/descriptors.c
 
-.include <bsd.port.mk>
+post-install:
+.if defined(WITH_SGML)
+	@${MKDIR} ${DOCSDIR}/html
+	@${INSTALL_DATA} ${WRKSRC}/doc/html/* ${DOCSDIR}/html
+.endif
+
+.include <bsd.port.post.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	Sat May 27 00:46:49 2006
@@ -12,3 +12,51 @@
 lib/libusbpp.la
 lib/libusbpp.so
 libdata/pkgconfig/libusb.pc
+%%SGML%%%%DOCSDIR%%/html/api-device-interfaces.html
+%%SGML%%%%DOCSDIR%%/html/api-return-values.html
+%%SGML%%%%DOCSDIR%%/html/api-synchronous.html
+%%SGML%%%%DOCSDIR%%/html/api-timeouts.html
+%%SGML%%%%DOCSDIR%%/html/api-types.html
+%%SGML%%%%DOCSDIR%%/html/api.html
+%%SGML%%%%DOCSDIR%%/html/examples-code.html
+%%SGML%%%%DOCSDIR%%/html/examples-other.html
+%%SGML%%%%DOCSDIR%%/html/examples-tests.html
+%%SGML%%%%DOCSDIR%%/html/examples.html
+%%SGML%%%%DOCSDIR%%/html/function.usbbulkread.html
+%%SGML%%%%DOCSDIR%%/html/function.usbbulkwrite.html
+%%SGML%%%%DOCSDIR%%/html/function.usbclaiminterface.html
+%%SGML%%%%DOCSDIR%%/html/function.usbclearhalt.html
+%%SGML%%%%DOCSDIR%%/html/function.usbclose.html
+%%SGML%%%%DOCSDIR%%/html/function.usbcontrolmsg.html
+%%SGML%%%%DOCSDIR%%/html/function.usbdetachkerneldrivernp.html
+%%SGML%%%%DOCSDIR%%/html/function.usbfindbusses.html
+%%SGML%%%%DOCSDIR%%/html/function.usbfinddevices.html
+%%SGML%%%%DOCSDIR%%/html/function.usbgetbusses.html
+%%SGML%%%%DOCSDIR%%/html/function.usbgetdescriptor.html
+%%SGML%%%%DOCSDIR%%/html/function.usbgetdescriptorbyendpoint.html
+%%SGML%%%%DOCSDIR%%/html/function.usbgetdrivernp.html
+%%SGML%%%%DOCSDIR%%/html/function.usbgetstring.html
+%%SGML%%%%DOCSDIR%%/html/function.usbgetstringsimple.html
+%%SGML%%%%DOCSDIR%%/html/function.usbinit.html
+%%SGML%%%%DOCSDIR%%/html/function.usbinterruptread.html
+%%SGML%%%%DOCSDIR%%/html/function.usbinterruptwrite.html
+%%SGML%%%%DOCSDIR%%/html/function.usbopen.html
+%%SGML%%%%DOCSDIR%%/html/function.usbreleaseinterface.html
+%%SGML%%%%DOCSDIR%%/html/function.usbreset.html
+%%SGML%%%%DOCSDIR%%/html/function.usbresetep.html
+%%SGML%%%%DOCSDIR%%/html/function.usbsetaltinterface.html
+%%SGML%%%%DOCSDIR%%/html/function.usbsetconfiguration.html
+%%SGML%%%%DOCSDIR%%/html/functions.html
+%%SGML%%%%DOCSDIR%%/html/index.html
+%%SGML%%%%DOCSDIR%%/html/intro-overview.html
+%%SGML%%%%DOCSDIR%%/html/intro-support.html
+%%SGML%%%%DOCSDIR%%/html/intro.html
+%%SGML%%%%DOCSDIR%%/html/preface.html
+%%SGML%%%%DOCSDIR%%/html/ref.bulk.html
+%%SGML%%%%DOCSDIR%%/html/ref.control.html
+%%SGML%%%%DOCSDIR%%/html/ref.core.html
+%%SGML%%%%DOCSDIR%%/html/ref.deviceops.html
+%%SGML%%%%DOCSDIR%%/html/ref.interrupt.html
+%%SGML%%%%DOCSDIR%%/html/ref.nonportable.html
+%%SGML%%@dirrm %%DOCSDIR%%/html
+%%SGML%%@dirrm %%DOCSDIR%%
>Release-Note:
>Audit-Trail:
>Unformatted:



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