aboutsummaryrefslogtreecommitdiff
path: root/cad
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2003-02-09 17:11:07 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2003-02-09 17:11:07 +0000
commit9a27501579d6242814fac64f77727d6b3a437fb2 (patch)
treec2848fa7bf4ca3da8ac6009cda19b484f8345743 /cad
parent86a08544531e4920007cc6ba968f2f5b16614ccb (diff)
downloadports-9a27501579d6242814fac64f77727d6b3a437fb2.tar.gz
ports-9a27501579d6242814fac64f77727d6b3a437fb2.zip
Notes
Diffstat (limited to 'cad')
-rw-r--r--cad/Makefile1
-rw-r--r--cad/ziarc/Makefile40
-rw-r--r--cad/ziarc/distinfo1
-rw-r--r--cad/ziarc/files/patch-rnetgui.py20
-rw-r--r--cad/ziarc/files/patch-setup.py9
-rw-r--r--cad/ziarc/files/ziarc3
-rw-r--r--cad/ziarc/pkg-comment1
-rw-r--r--cad/ziarc/pkg-descr7
-rw-r--r--cad/ziarc/pkg-plist28
9 files changed, 110 insertions, 0 deletions
diff --git a/cad/Makefile b/cad/Makefile
index 2ecb0ebac91c..fe4ea05ccd30 100644
--- a/cad/Makefile
+++ b/cad/Makefile
@@ -1,5 +1,6 @@
# $FreeBSD$
#
+ SUBDIR += ziarc
SUBDIR += atlc
SUBDIR += cascade
diff --git a/cad/ziarc/Makefile b/cad/ziarc/Makefile
new file mode 100644
index 000000000000..9c670852bc90
--- /dev/null
+++ b/cad/ziarc/Makefile
@@ -0,0 +1,40 @@
+# ex:ts=8
+# Ports collection makefile for: ziarc
+# Date created: Jan 11, 2003
+# Whom: ijliao
+#
+# $FreeBSD$
+#
+
+PORTNAME= ziarc
+PORTVERSION= 20020729 # date of the tarball
+CATEGORIES= cad
+MASTER_SITES= http://www.procoders.net/downloads/
+DISTNAME= ziarc_src
+
+MAINTAINER= ports@FreeBSD.org
+
+BUILD_DEPENDS= ${PYNUMERIC}
+RUN_DEPENDS= ${PYNUMERIC}
+
+USE_ZIP= yes
+USE_REINPLACE= yes
+USE_PYTHON= yes
+USE_PYDISTUTILS= yes
+NO_WRKSUBDIR= yes
+
+post-patch:
+ @${REINPLACE_CMD} -e "s|%%DATADIR%%|${DATADIR}|g" ${WRKSRC}/rnetgui.py
+
+do-install:
+ ${CAT} ${FILESDIR}/ziarc | \
+ ${SED} -e "s|%%PYTHON_SITELIBDIR%%|${PYTHON_SITELIBDIR}|" > \
+ ${PREFIX}/bin/ziarc
+ @${CHMOD} +x ${PREFIX}/bin/ziarc
+ @${MKDIR} ${PYTHON_SITELIBDIR}/ziarc
+ ${INSTALL_SCRIPT} ${WRKSRC}/*.py ${PYTHON_SITELIBDIR}/ziarc
+ @${RM} -f ${PYTHON_SITELIBDIR}/ziarc/setup.py
+ @${MKDIR} ${DATADIR}/icons
+ ${INSTALL_DATA} ${WRKSRC}/icons/*.png ${DATADIR}/icons
+
+.include <bsd.port.mk>
diff --git a/cad/ziarc/distinfo b/cad/ziarc/distinfo
new file mode 100644
index 000000000000..dcc5230c2cbe
--- /dev/null
+++ b/cad/ziarc/distinfo
@@ -0,0 +1 @@
+MD5 (ziarc_src.zip) = 4418c02890459b01c1324e145622e02d
diff --git a/cad/ziarc/files/patch-rnetgui.py b/cad/ziarc/files/patch-rnetgui.py
new file mode 100644
index 000000000000..411281e97e86
--- /dev/null
+++ b/cad/ziarc/files/patch-rnetgui.py
@@ -0,0 +1,20 @@
+--- rnetgui.py.orig Mon Feb 10 01:00:29 2003
++++ rnetgui.py Mon Feb 10 01:03:25 2003
+@@ -765,7 +765,7 @@
+
+ for fnam, tg, tool, help, id, sep in ziplist:
+
+- path=os.path.join(homepath,"icons",fnam)+".png"
++ path=os.path.join("%%DATADIR%%","icons",fnam)+".png"
+
+ bitmap=wxBitmapFromImage(wxImage(path, wxBITMAP_TYPE_PNG))
+ self.tb.AddTool(id,bitmap,wxNullBitmap, tg, -1, tool, help)
+@@ -958,7 +958,7 @@
+
+ def About(self, event) :
+
+- path=os.path.join(homepath,"icons","ziarc.png")
++ path=os.path.join("%%DATADIR%%","icons","ziarc.png")
+ bitmap=wxBitmapFromImage(wxImage(path, wxBITMAP_TYPE_PNG))
+
+ about=MyAbout(self, bitmap)
diff --git a/cad/ziarc/files/patch-setup.py b/cad/ziarc/files/patch-setup.py
new file mode 100644
index 000000000000..1fde8e9de5fb
--- /dev/null
+++ b/cad/ziarc/files/patch-setup.py
@@ -0,0 +1,9 @@
+--- setup.py.orig Sat Feb 8 00:14:36 2003
++++ setup.py Sat Feb 8 00:14:41 2003
+@@ -31,6 +31,5 @@
+
+ from distutils.core import setup
+ import glob
+-import py2exe
+
+ setup(name="main_ziarc.py", scripts=["main_ziarc.py"],data_files=[("icons",glob.glob("icons\\*.*"))],)
diff --git a/cad/ziarc/files/ziarc b/cad/ziarc/files/ziarc
new file mode 100644
index 000000000000..1a89e28fd456
--- /dev/null
+++ b/cad/ziarc/files/ziarc
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+cd %%PYTHON_SITELIBDIR%%/ziarc && python ./main_ziarc.py
diff --git a/cad/ziarc/pkg-comment b/cad/ziarc/pkg-comment
new file mode 100644
index 000000000000..03558d5b3ddb
--- /dev/null
+++ b/cad/ziarc/pkg-comment
@@ -0,0 +1 @@
+ZiaRC is a Resistor Calculator
diff --git a/cad/ziarc/pkg-descr b/cad/ziarc/pkg-descr
new file mode 100644
index 000000000000..d49e5138c00a
--- /dev/null
+++ b/cad/ziarc/pkg-descr
@@ -0,0 +1,7 @@
+ZiaRC (which is a recursive acronym for "ZiaRC is a Resistor Calculator")
+facilitates the drawing of resistor nets and calculates overall resistivity
+and particular currents through the resistors. It consists of a graphical
+user interface which allows the easy creation of resistor nets and has many
+functions such as undo/redo, delete, move and many more.
+
+WWW: http://ziarc.procoders.net/
diff --git a/cad/ziarc/pkg-plist b/cad/ziarc/pkg-plist
new file mode 100644
index 000000000000..ac5cfc9803e1
--- /dev/null
+++ b/cad/ziarc/pkg-plist
@@ -0,0 +1,28 @@
+bin/ziarc
+%%PYTHON_SITELIBDIR%%/ziarc/datatier.py
+%%PYTHON_SITELIBDIR%%/ziarc/graph.py
+%%PYTHON_SITELIBDIR%%/ziarc/main_ziarc.py
+%%PYTHON_SITELIBDIR%%/ziarc/polygon.py
+%%PYTHON_SITELIBDIR%%/ziarc/resistornet.py
+%%PYTHON_SITELIBDIR%%/ziarc/rnetgui.py
+%%PYTHON_SITELIBDIR%%/ziarc/undoqueue.py
+@dirrm %%PYTHON_SITELIBDIR%%/ziarc
+%%DATADIR%%/icons/del_ival.png
+%%DATADIR%%/icons/draw_con.png
+%%DATADIR%%/icons/draw_r.png
+%%DATADIR%%/icons/editdelete.png
+%%DATADIR%%/icons/exec.png
+%%DATADIR%%/icons/exit.png
+%%DATADIR%%/icons/filenew.png
+%%DATADIR%%/icons/fileopen.png
+%%DATADIR%%/icons/filesave.png
+%%DATADIR%%/icons/help.png
+%%DATADIR%%/icons/move.png
+%%DATADIR%%/icons/put_ground.png
+%%DATADIR%%/icons/put_rval.png
+%%DATADIR%%/icons/put_u0.png
+%%DATADIR%%/icons/redo.png
+%%DATADIR%%/icons/undo.png
+%%DATADIR%%/icons/ziarc.png
+@dirrm %%DATADIR%%/icons
+@dirrm %%DATADIR%%