ports/97989: [MAINTAINER] devel/libusb: enable documentation
Rene Ladan
r.c.ladan at gmail.com
Fri May 26 21:00:49 UTC 2006
>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 at 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:
More information about the freebsd-ports-bugs
mailing list