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}
|
||||
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:
|
||||
.if defined(NOPORTDOCS)
|
||||
@${RM} -rf ${DOCSDIR}
|
||||
|
@ -35,4 +43,4 @@ post-install:
|
|||
${INSTALL_DATA} ${WRKSRC}/examples/*.py ${EXAMPLESDIR}
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
.include <bsd.port.post.mk>
|
||||
|
|
|
@ -1,11 +1,17 @@
|
|||
include/dbus-1.0/dbus/dbus-python.h
|
||||
libdata/pkgconfig/dbus-python.pc
|
||||
%%PORTDOCS%%%%DOCSDIR%%/API_CHANGES.txt
|
||||
%%HTML%%%%PORTDOCS%%%%DOCSDIR%%/API_CHANGES.html
|
||||
%%PORTDOCS%%%%DOCSDIR%%/HACKING.txt
|
||||
%%HTML%%%%PORTDOCS%%%%DOCSDIR%%/HACKING.html
|
||||
%%PORTDOCS%%%%DOCSDIR%%/NEWS
|
||||
%%HTML%%%%PORTDOCS%%%%DOCSDIR%%/NEWS.html
|
||||
%%PORTDOCS%%%%DOCSDIR%%/README
|
||||
%%HTML%%%%PORTDOCS%%%%DOCSDIR%%/README.html
|
||||
%%PORTDOCS%%%%DOCSDIR%%/TODO
|
||||
%%HTML%%%%PORTDOCS%%%%DOCSDIR%%/TODO.html
|
||||
%%PORTDOCS%%%%DOCSDIR%%/tutorial.txt
|
||||
%%HTML%%%%PORTDOCS%%%%DOCSDIR%%/tutorial.html
|
||||
%%PORTDOCS%%%%EXAMPLESDIR%%/example-async-client.py
|
||||
%%PORTDOCS%%%%EXAMPLESDIR%%/example-client.py
|
||||
%%PORTDOCS%%%%EXAMPLESDIR%%/example-service.py
|
||||
|
|
Loading…
Add table
Reference in a new issue