Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Apr 2007 23:08:44 +0400 (MSD)
From:      Boris Samorodov <bsamFreeBSD.org@tinderbox.i386.ipt.ru>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/111909: [patch] comms/py-serial: install docs and examples
Message-ID:  <200704191908.l3JJ8ia1082447@tinderbox.i386.ipt.ru>
Resent-Message-ID: <200704191900.l3JJ0A5R030540@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         111909
>Category:       ports
>Synopsis:       [patch] comms/py-serial: install docs and examples
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr 19 19:00:10 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Boris Samorodov
>Release:        FreeBSD 7.0-CURRENT i386
>Organization:
InPharmTech, Co. http://www.ipt.ru
>Environment:
System: FreeBSD tinderbox.i386.ipt.ru 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Mon Apr 16 15:44:55 MSD 2007 bsam@tinderbox.i386.ipt.ru:/usr/obj/usr/src/sys/GENERIC i386

>Description:
	Current port does not install docs and examples files while
	the distro contains them.
>How-To-Repeat:
>Fix:
	. install docs and examples if !defined(NOPORTDOCS);
	. change pkg-plist accordingly;
	. bump PORTREVISION.

--- py-serial.diff begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/comms/py-serial/Makefile,v
retrieving revision 1.14
diff -u -r1.14 Makefile
--- Makefile	10 Oct 2005 14:47:41 -0000	1.14
+++ Makefile	19 Apr 2007 18:52:13 -0000
@@ -7,6 +7,7 @@
 
 PORTNAME=	serial
 PORTVERSION=	2.2
+PORTREVISION=	1
 CATEGORIES=	comms python
 MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
 MASTER_SITE_SUBDIR=	pyserial
@@ -22,4 +23,15 @@
 USE_PYDISTUTILS=	yes
 USE_PYTHON_PREFIX=	yes
 
+PORTDOCS=	*.txt
+DOCSDIR=	${TARGETDIR}/share/doc/py-${PORTNAME}
+
+post-install:
+.if !defined(NOPORTDOCS)
+	${MKDIR} ${DOCSDIR}
+	${INSTALL_MAN} ${WRKSRC}/*.txt ${DOCSDIR}
+	${MKDIR} ${EXAMPLESDIR}
+	${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR}
+.endif
+
 .include <bsd.port.mk>
Index: pkg-plist
===================================================================
RCS file: /home/pcvs/ports/comms/py-serial/pkg-plist,v
retrieving revision 1.2
diff -u -r1.2 pkg-plist
--- pkg-plist	1 May 2002 03:17:21 -0000	1.2
+++ pkg-plist	19 Apr 2007 18:52:13 -0000
@@ -13,4 +13,17 @@
 %%PYTHON_SITELIBDIR%%/serial/serialwin32.py
 %%PYTHON_SITELIBDIR%%/serial/serialwin32.pyc
 %%PYTHON_SITELIBDIR%%/serial/serialwin32.pyo
+%%PORTDOCS%%%%EXAMPLESDIR%%/enhancedserial.py
+%%PORTDOCS%%%%EXAMPLESDIR%%/miniterm.py
+%%PORTDOCS%%%%EXAMPLESDIR%%/scan.py
+%%PORTDOCS%%%%EXAMPLESDIR%%/setup_demo.py
+%%PORTDOCS%%%%EXAMPLESDIR%%/tcp_serial_redirect.py
+%%PORTDOCS%%%%EXAMPLESDIR%%/test.py
+%%PORTDOCS%%%%EXAMPLESDIR%%/test_advanced.py
+%%PORTDOCS%%%%EXAMPLESDIR%%/test_high_load.py
+%%PORTDOCS%%%%EXAMPLESDIR%%/wxSerialConfigDialog.py
+%%PORTDOCS%%%%EXAMPLESDIR%%/wxSerialConfigDialog.wxg
+%%PORTDOCS%%%%EXAMPLESDIR%%/wxTerminal.py
+%%PORTDOCS%%%%EXAMPLESDIR%%/wxTerminal.wxg
+%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
 @dirrm %%PYTHON_SITELIBDIR%%/serial
--- py-serial.diff ends here ---

WBR
-- 
bsam

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200704191908.l3JJ8ia1082447>