ports/78971: [maintainer update] www/pyweblib: docs, examples, OPTIONS added

Boris B.Samorodov bsam at ipt.ru
Fri Mar 18 00:00:11 UTC 2005


>Number:         78971
>Category:       ports
>Synopsis:       [maintainer update] www/pyweblib: docs, examples, OPTIONS added
>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 Mar 18 00:00:09 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Boris B. Samorodov
>Release:        FreeBSD 5.3-STABLE i386
>Organization:
InPharmTech
>Environment:
System: FreeBSD srv.sem.ipt.ru 5.3-STABLE FreeBSD 5.3-STABLE #0: Thu Nov 25 02:03:43 MSK 2004 bsam at srv.sem.ipt.ru:/usr/obj/usr/src/sys/SRV i386


>Description:
	1. There are some docs and examples at the tar-ball, but they
	are not installed.
	2. OPTIONS were never used.

	Both of the above points are corrected by the next patch.

>How-To-Repeat:
	Install current port version.
>Fix:

diff -ruN pyweblib.old/Makefile pyweblib/Makefile
--- pyweblib.old/Makefile	Fri Mar 18 02:22:36 2005
+++ pyweblib/Makefile	Fri Mar 18 02:23:47 2005
@@ -18,4 +18,55 @@
 USE_PYDISTUTILS=	yes
 WRKSRC=		${WRKDIR}/${DISTNAME:S=-src==}
 
-.include <bsd.port.mk>
+DOCS=		PyWebLib.html \
+		pydoc/pyweblib.forms.html \
+		pydoc/pyweblib.helper.html \
+		pydoc/pyweblib.html \
+		pydoc/pyweblib.httphelper.html \
+		pydoc/pyweblib.session.html \
+		pydoc/pyweblib.sslenv.html
+
+EXAMPLES=	*.py
+
+PLIST_SUB=	PORTVERSION=${PORTVERSION}
+
+OPTIONS=	EXAMPLES "Install examples" off
+.ifdef(NOPORTDOCS)
+OPTIONS+=	HTMLDOCS "Install documentation" off
+.else
+OPTIONS+=	HTMLDOCS "Install documentation" on
+.endif
+
+.include <bsd.port.pre.mk>
+
+.ifdef(WITH_EXAMPLES)
+PLIST_SUB+=	INSTALLEXAMPLES=""
+.else
+PLIST_SUB+=	INSTALLEXAMPLES="@comment "
+.endif
+
+.ifdef(WITH_HTMLDOCS)
+PLIST_SUB+=	INSTALLPORTDOCS=""
+.else
+PLIST_SUB+=	INSTALLPORTDOCS="@comment "
+.endif
+
+post-install: install-examples install-docs
+
+install-examples:
+
+.ifdef(WITH_EXAMPLES)
+	@${MKDIR} ${EXAMPLESDIR} ${EXAMPLESDIR}/cgi-bin
+	@${INSTALL_DATA} ${WRKSRC}/cgi-bin/${EXAMPLES} ${EXAMPLESDIR}/cgi-bin
+.endif
+
+install-docs:
+
+.ifdef(WITH_HTMLDOCS)
+	@${MKDIR} ${DOCSDIR} ${DOCSDIR}/pydoc
+.for file in ${DOCS}
+	@${INSTALL_DATA} ${WRKSRC}/htdocs/${file} ${DOCSDIR}/${file}
+.endfor
+.endif
+
+.include <bsd.port.post.mk>
diff -ruN pyweblib.old/pkg-plist pyweblib/pkg-plist
--- pyweblib.old/pkg-plist	Fri Aug 23 15:30:23 2002
+++ pyweblib/pkg-plist	Fri Mar 18 02:23:52 2005
@@ -17,3 +17,20 @@
 lib/%%PYTHON_VERSION%%/site-packages/pyweblib/sslenv.pyc
 lib/%%PYTHON_VERSION%%/site-packages/pyweblib/sslenv.pyo
 @dirrm lib/%%PYTHON_VERSION%%/site-packages/pyweblib
+ at comment -
+ at comment --- HTML documentation ---
+%%INSTALLPORTDOCS%%%%DOCSDIR%%/pydoc/pyweblib.forms.html
+%%INSTALLPORTDOCS%%%%DOCSDIR%%/pydoc/pyweblib.helper.html
+%%INSTALLPORTDOCS%%%%DOCSDIR%%/pydoc/pyweblib.html
+%%INSTALLPORTDOCS%%%%DOCSDIR%%/pydoc/pyweblib.httphelper.html
+%%INSTALLPORTDOCS%%%%DOCSDIR%%/pydoc/pyweblib.session.html
+%%INSTALLPORTDOCS%%%%DOCSDIR%%/pydoc/pyweblib.sslenv.html
+%%INSTALLPORTDOCS%%%%DOCSDIR%%/PyWebLib.html
+%%INSTALLPORTDOCS%%@dirrm %%DOCSDIR%%/pydoc
+%%INSTALLPORTDOCS%%@dirrm %%DOCSDIR%%
+ at comment -
+ at comment --- some examples here ---
+%%INSTALLEXAMPLES%%%%EXAMPLESDIR%%/cgi-bin/test-forms.py
+%%INSTALLEXAMPLES%%%%EXAMPLESDIR%%/cgi-bin/test-session.py
+%%INSTALLEXAMPLES%%@dirrm %%EXAMPLESDIR%%/cgi-bin
+%%INSTALLEXAMPLES%%@dirrm %%EXAMPLESDIR%%

WBR
-- 
bsam
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list