From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Mar 18 00:00:11 2005 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 51CCA16A4CE for ; Fri, 18 Mar 2005 00:00:11 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8D6DC43D54 for ; Fri, 18 Mar 2005 00:00:10 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j2I00AhC019617 for ; Fri, 18 Mar 2005 00:00:10 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j2I00AxA019614; Fri, 18 Mar 2005 00:00:10 GMT (envelope-from gnats) Resent-Date: Fri, 18 Mar 2005 00:00:10 GMT Resent-Message-Id: <200503180000.j2I00AxA019614@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Boris B.Samorodov" Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E57E216A4CE for ; Thu, 17 Mar 2005 23:51:12 +0000 (GMT) Received: from bsam.ru (gw.ipt.ru [80.253.10.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id A920243D31 for ; Thu, 17 Mar 2005 23:51:11 +0000 (GMT) (envelope-from bsam@bsam.ru) Received: from bsam by bsam.ru with local (Exim 4.30; FreeBSD) id 1DC4kb-000BsE-2N for FreeBSD-gnats-submit@freebsd.org; Fri, 18 Mar 2005 02:50:01 +0300 Message-Id: Date: Fri, 18 Mar 2005 02:50:01 +0300 From: "Boris B.Samorodov" Sender: "Boris B. Samorodov" To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/78971: [maintainer update] www/pyweblib: docs, examples, OPTIONS added X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: "Boris B.Samorodov" List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Mar 2005 00:00:11 -0000 >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@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 +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 + +.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 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 +@comment - +@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%% +@comment - +@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: