aboutsummaryrefslogtreecommitdiff
path: root/comms
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2008-06-18 11:02:05 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2008-06-18 11:02:05 +0000
commit40f749985a3daabc772420721615716fd50490df (patch)
treed17d7b5eb59839d71ace55f22d2dd93cb430565b /comms
parent2660f907676e67568a96d909eb84836355d8d534 (diff)
downloadports-40f749985a3daabc772420721615716fd50490df.tar.gz
ports-40f749985a3daabc772420721615716fd50490df.zip
[patch] comms/py-serial: install docs and examples
PR: ports/111909 Submitted by: Boris Samorodov <bsam@FreeBSD.org> Approved by: maintainer timeout
Notes
Notes: svn path=/head/; revision=215059
Diffstat (limited to 'comms')
-rw-r--r--comms/py-serial/Makefile12
-rw-r--r--comms/py-serial/pkg-plist13
2 files changed, 25 insertions, 0 deletions
diff --git a/comms/py-serial/Makefile b/comms/py-serial/Makefile
index 5fb59fb30909..984ea89795a3 100644
--- a/comms/py-serial/Makefile
+++ b/comms/py-serial/Makefile
@@ -7,6 +7,7 @@
PORTNAME= serial
PORTVERSION= 2.2
+PORTREVISION= 1
CATEGORIES= comms python
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= pyserial
@@ -22,5 +23,16 @@ USE_PYTHON= yes
USE_PYDISTUTILS= yes
USE_PYTHON_PREFIX= yes
PYDISTUTILS_PKGNAME= pyserial
+PORTDOCS= *.txt
+DOCSDIR= ${PREFIX}/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>
diff --git a/comms/py-serial/pkg-plist b/comms/py-serial/pkg-plist
index 6620dd11a8b4..bcb9dfca82b7 100644
--- a/comms/py-serial/pkg-plist
+++ b/comms/py-serial/pkg-plist
@@ -13,4 +13,17 @@
%%PYTHON_SITELIBDIR%%/serial/serialwin32.py
%%PYTHON_SITELIBDIR%%/serial/serialwin32.pyc
%%PYTHON_SITELIBDIR%%/serial/serialwin32.pyo
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/enhancedserial.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/miniterm.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/scan.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/setup_demo.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/tcp_serial_redirect.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/test.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/test_advanced.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/test_high_load.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/wxSerialConfigDialog.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/wxSerialConfigDialog.wxg
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/wxTerminal.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/wxTerminal.wxg
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
@dirrm %%PYTHON_SITELIBDIR%%/serial