mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
add ziarc 20020729
ZiaRC is a Resistor Calculator
This commit is contained in:
parent
86a0854453
commit
9a27501579
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=75190
@ -1,5 +1,6 @@
|
||||
# $FreeBSD$
|
||||
#
|
||||
SUBDIR += ziarc
|
||||
|
||||
SUBDIR += atlc
|
||||
SUBDIR += cascade
|
||||
|
40
cad/ziarc/Makefile
Normal file
40
cad/ziarc/Makefile
Normal file
@ -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>
|
1
cad/ziarc/distinfo
Normal file
1
cad/ziarc/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (ziarc_src.zip) = 4418c02890459b01c1324e145622e02d
|
20
cad/ziarc/files/patch-rnetgui.py
Normal file
20
cad/ziarc/files/patch-rnetgui.py
Normal file
@ -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)
|
9
cad/ziarc/files/patch-setup.py
Normal file
9
cad/ziarc/files/patch-setup.py
Normal file
@ -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\\*.*"))],)
|
3
cad/ziarc/files/ziarc
Normal file
3
cad/ziarc/files/ziarc
Normal file
@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
cd %%PYTHON_SITELIBDIR%%/ziarc && python ./main_ziarc.py
|
1
cad/ziarc/pkg-comment
Normal file
1
cad/ziarc/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
ZiaRC is a Resistor Calculator
|
7
cad/ziarc/pkg-descr
Normal file
7
cad/ziarc/pkg-descr
Normal file
@ -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/
|
28
cad/ziarc/pkg-plist
Normal file
28
cad/ziarc/pkg-plist
Normal file
@ -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%%
|
Loading…
Reference in New Issue
Block a user