aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--science/Makefile1
-rw-r--r--science/py-ws2300/Makefile28
-rw-r--r--science/py-ws2300/distinfo2
-rw-r--r--science/py-ws2300/files/ws23004
-rw-r--r--science/py-ws2300/pkg-descr5
-rw-r--r--science/py-ws2300/pkg-plist4
6 files changed, 44 insertions, 0 deletions
diff --git a/science/Makefile b/science/Makefile
index 77ad3e0ed171..1ec98d7aee02 100644
--- a/science/Makefile
+++ b/science/Makefile
@@ -163,6 +163,7 @@
SUBDIR += py-pydicom
SUBDIR += py-scimath
SUBDIR += py-scipy
+ SUBDIR += py-ws2300
SUBDIR += pybrain
SUBDIR += pycdf
SUBDIR += pynn
diff --git a/science/py-ws2300/Makefile b/science/py-ws2300/Makefile
new file mode 100644
index 000000000000..6fd5fa7e5ff8
--- /dev/null
+++ b/science/py-ws2300/Makefile
@@ -0,0 +1,28 @@
+# New ports collection makefile for: py-ws2300
+# Date created: 26 December 2010
+# Whom: Stefan Bethke <stb@lassitu.de>
+#
+# $FreeBSD$
+#
+
+PORTNAME= ws2300
+PORTVERSION= 1.5
+CATEGORIES= science python
+MASTER_SITES= http://ace-host.stuart.id.au/russell/files/ws2300/ \
+ http://www.transit.hanse.de/mirror/ace-host.stuart.id.au/russell/files/ws2300/
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= stb@lassitu.de
+COMMENT= A driver for the LaCrosse WS-2300 weather station
+
+USE_PYTHON= yes
+USE_PYDISTUTILS= yes
+
+MAN1= ws2300.1
+
+post-install:
+ #@${LN} -sf ${PYTHONPREFIX_SITELIBDIR}/ws2300.py ${PREFIX}/bin/ws2300
+ @${INSTALL_SCRIPT} ${FILESDIR}/ws2300 ${PREFIX}/bin/ws2300
+ @${INSTALL_MAN} ${WRKSRC}/ws2300.1 ${PREFIX}/man/man1/
+
+.include <bsd.port.mk>
diff --git a/science/py-ws2300/distinfo b/science/py-ws2300/distinfo
new file mode 100644
index 000000000000..b8017da496dc
--- /dev/null
+++ b/science/py-ws2300/distinfo
@@ -0,0 +1,2 @@
+SHA256 (ws2300-1.5.tar.gz) = df7a0b0162a21a20327a99c59ff0e3aa787a8af76dbcfe722c1079aa1bd37696
+SIZE (ws2300-1.5.tar.gz) = 71599
diff --git a/science/py-ws2300/files/ws2300 b/science/py-ws2300/files/ws2300
new file mode 100644
index 000000000000..3cb7b17ffd73
--- /dev/null
+++ b/science/py-ws2300/files/ws2300
@@ -0,0 +1,4 @@
+#!/usr/bin/env python
+
+from ws2300 import *
+main(sys.argv)
diff --git a/science/py-ws2300/pkg-descr b/science/py-ws2300/pkg-descr
new file mode 100644
index 000000000000..44a5fb6c6127
--- /dev/null
+++ b/science/py-ws2300/pkg-descr
@@ -0,0 +1,5 @@
+Ws2300 manipulates the LaCrosse WS-2300 weather station via its RS232
+interface. It can read and write values, and can continuously log data from
+WS-2300 to a file or SQL database.
+
+WWW: http://ace-host.stuart.id.au/russell/files/ws2300/
diff --git a/science/py-ws2300/pkg-plist b/science/py-ws2300/pkg-plist
new file mode 100644
index 000000000000..7a79554bcf25
--- /dev/null
+++ b/science/py-ws2300/pkg-plist
@@ -0,0 +1,4 @@
+%%PYTHON_SITELIBDIR%%/ws2300.py
+%%PYTHON_SITELIBDIR%%/ws2300.pyc
+%%PYTHON_SITELIBDIR%%/ws2300.pyo
+bin/ws2300