mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
Handle the case when py-docutils is installed, and register HTML documentation
plist entries. Submitted by: Herbert J. Skuhra <h.skuhra@gmail.com>
This commit is contained in:
parent
bbf136f5d2
commit
cf80d13974
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=197886
2 changed files with 15 additions and 1 deletions
|
@ -27,6 +27,14 @@ CONFIGURE_ARGS= --docdir=${DOCSDIR}
|
||||||
DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME}
|
DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME}
|
||||||
EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
|
EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
|
||||||
|
|
||||||
|
.include <bsd.port.pre.mk>
|
||||||
|
|
||||||
|
.if exists(${LOCALBASE}/bin/rst2html) && !defined(NOPORTDOCS)
|
||||||
|
PLIST_SUB+= HTML=""
|
||||||
|
.else
|
||||||
|
PLIST_SUB+= HTML="@comment "
|
||||||
|
.endif
|
||||||
|
|
||||||
post-install:
|
post-install:
|
||||||
.if defined(NOPORTDOCS)
|
.if defined(NOPORTDOCS)
|
||||||
@${RM} -rf ${DOCSDIR}
|
@${RM} -rf ${DOCSDIR}
|
||||||
|
@ -35,4 +43,4 @@ post-install:
|
||||||
${INSTALL_DATA} ${WRKSRC}/examples/*.py ${EXAMPLESDIR}
|
${INSTALL_DATA} ${WRKSRC}/examples/*.py ${EXAMPLESDIR}
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.post.mk>
|
||||||
|
|
|
@ -1,11 +1,17 @@
|
||||||
include/dbus-1.0/dbus/dbus-python.h
|
include/dbus-1.0/dbus/dbus-python.h
|
||||||
libdata/pkgconfig/dbus-python.pc
|
libdata/pkgconfig/dbus-python.pc
|
||||||
%%PORTDOCS%%%%DOCSDIR%%/API_CHANGES.txt
|
%%PORTDOCS%%%%DOCSDIR%%/API_CHANGES.txt
|
||||||
|
%%HTML%%%%PORTDOCS%%%%DOCSDIR%%/API_CHANGES.html
|
||||||
%%PORTDOCS%%%%DOCSDIR%%/HACKING.txt
|
%%PORTDOCS%%%%DOCSDIR%%/HACKING.txt
|
||||||
|
%%HTML%%%%PORTDOCS%%%%DOCSDIR%%/HACKING.html
|
||||||
%%PORTDOCS%%%%DOCSDIR%%/NEWS
|
%%PORTDOCS%%%%DOCSDIR%%/NEWS
|
||||||
|
%%HTML%%%%PORTDOCS%%%%DOCSDIR%%/NEWS.html
|
||||||
%%PORTDOCS%%%%DOCSDIR%%/README
|
%%PORTDOCS%%%%DOCSDIR%%/README
|
||||||
|
%%HTML%%%%PORTDOCS%%%%DOCSDIR%%/README.html
|
||||||
%%PORTDOCS%%%%DOCSDIR%%/TODO
|
%%PORTDOCS%%%%DOCSDIR%%/TODO
|
||||||
|
%%HTML%%%%PORTDOCS%%%%DOCSDIR%%/TODO.html
|
||||||
%%PORTDOCS%%%%DOCSDIR%%/tutorial.txt
|
%%PORTDOCS%%%%DOCSDIR%%/tutorial.txt
|
||||||
|
%%HTML%%%%PORTDOCS%%%%DOCSDIR%%/tutorial.html
|
||||||
%%PORTDOCS%%%%EXAMPLESDIR%%/example-async-client.py
|
%%PORTDOCS%%%%EXAMPLESDIR%%/example-async-client.py
|
||||||
%%PORTDOCS%%%%EXAMPLESDIR%%/example-client.py
|
%%PORTDOCS%%%%EXAMPLESDIR%%/example-client.py
|
||||||
%%PORTDOCS%%%%EXAMPLESDIR%%/example-service.py
|
%%PORTDOCS%%%%EXAMPLESDIR%%/example-service.py
|
||||||
|
|
Loading…
Add table
Reference in a new issue