aboutsummaryrefslogtreecommitdiff
path: root/cad/py-lcapy
diff options
context:
space:
mode:
authorHiroki Sato <hrs@FreeBSD.org>2016-05-16 17:34:37 +0000
committerHiroki Sato <hrs@FreeBSD.org>2016-05-16 17:34:37 +0000
commitd06c86d08a44f2446f8ae7f973e5e0a25d19e1a8 (patch)
tree31ac6ee4b3169054ac6bcbdfea78c0a823825709 /cad/py-lcapy
parentb1ab1d8fb80260305063b9891ffcbc692d16da0d (diff)
downloadports-d06c86d08a44f2446f8ae7f973e5e0a25d19e1a8.tar.gz
ports-d06c86d08a44f2446f8ae7f973e5e0a25d19e1a8.zip
Notes
Diffstat (limited to 'cad/py-lcapy')
-rw-r--r--cad/py-lcapy/Makefile33
-rw-r--r--cad/py-lcapy/distinfo3
-rw-r--r--cad/py-lcapy/pkg-descr10
3 files changed, 46 insertions, 0 deletions
diff --git a/cad/py-lcapy/Makefile b/cad/py-lcapy/Makefile
new file mode 100644
index 000000000000..e6aa98f1beee
--- /dev/null
+++ b/cad/py-lcapy/Makefile
@@ -0,0 +1,33 @@
+# $FreeBSD$
+
+PORTNAME= lcapy
+DISTVERSION= 40de0a2
+CATEGORIES= cad python
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= hrs@FreeBSD.org
+COMMENT= Symbolic MDA Analysis Package for Linear Circuits
+
+LICENSE= LGPL21
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sympy>0:math/py-sympy \
+ ${PYTHON_PKGNAMEPREFIX}numpy>0:math/py-numpy \
+ ${PYTHON_PKGNAMEPREFIX}matplotlib>0:math/matplotlib
+
+USES= python
+USE_PYTHON= distutils autoplist
+USE_GITHUB= yes
+GH_ACCOUNT= mph-
+PORTEXAMPLES= netlists \
+ networks \
+ notebooks \
+ schematics
+
+OPTIONS_DEFINE= EXAMPLES
+
+post-install-EXAMPLES-on:
+ @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ cd ${WRKSRC}/doc/examples && \
+ ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
+
+.include <bsd.port.mk>
diff --git a/cad/py-lcapy/distinfo b/cad/py-lcapy/distinfo
new file mode 100644
index 000000000000..e3db4d4d90ea
--- /dev/null
+++ b/cad/py-lcapy/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1463419670
+SHA256 (mph--lcapy-40de0a2_GH0.tar.gz) = 5588fe619ee409ab3727a1d38245b7a0cf493726f00679a0dff6f33a6a815055
+SIZE (mph--lcapy-40de0a2_GH0.tar.gz) = 976810
diff --git a/cad/py-lcapy/pkg-descr b/cad/py-lcapy/pkg-descr
new file mode 100644
index 000000000000..313b0e40487b
--- /dev/null
+++ b/cad/py-lcapy/pkg-descr
@@ -0,0 +1,10 @@
+Lcapy is an experimental Python package for teaching linear circuit
+analysis. It uses SymPy for symbolic mathematics.
+
+Lcapy can analyse circuits described with netlists using modified
+nodal analysis.
+
+Alternatively, Lcapy can analyse networks and circuits formed by
+combining one, two, and (some) three port networks.
+
+WWW: https://github.com/mph-/lcapy