[84989] users/anddam
and.damore at macports.org
and.damore at macports.org
Thu Oct 6 13:46:21 PDT 2011
Revision: 84989
http://trac.macports.org/changeset/84989
Author: and.damore at macports.org
Date: 2011-10-06 13:46:20 -0700 (Thu, 06 Oct 2011)
Log Message:
-----------
user dir: new port gspiceui work in progress
Added Paths:
-----------
users/anddam/science/
users/anddam/science/gspiceui/
users/anddam/science/gspiceui/Portfile
users/anddam/science/gspiceui/files/
users/anddam/science/gspiceui/files/patch-iStrCmp.diff
users/anddam/science/gspiceui/files/patch-src-Makefile.diff
users/anddam/science/gspiceui/files/patch-src-utility-ConvertType-cpp.diff
Added: users/anddam/science/gspiceui/Portfile
===================================================================
--- users/anddam/science/gspiceui/Portfile (rev 0)
+++ users/anddam/science/gspiceui/Portfile 2011-10-06 20:46:20 UTC (rev 84989)
@@ -0,0 +1,67 @@
+# $Id$
+PortSystem 1.0
+
+name gspiceui
+version 0.9.99
+categories cad science electronics
+maintainers nomaintainer
+license GPL-2
+description intuitive and user-friendly graphical interface to gsch2pcb
+long_description xgsch2pcb provides an intuitive, user-friendly graphical interface to \
+ the gsch2pcb command-line tool which is used to generate and update a \
+ PCB layout. It works with schematics created by gschem, and layouts \
+ created by pcb. xgsch2pcb also features a "template" functionality for \
+ creating new projects.
+homepage http://sourceforge.net/projects/gspiceui/
+platforms darwin
+
+master_sites sourceforge
+checksums md5 a81db43df1bd0cc267179c2dad267506 \
+ sha1 5d258093a3d3ea81be1fb2ab5dc13aa93164f90e \
+ rmd160 5e8078ff3864a5ea0d5d811db5ad3bbbd296e5b3
+
+distname ${name}-v${version}
+depends_build bin:wx-config:wxWidgets
+
+patchfiles patch-iStrCmp.diff \
+ patch-src-Makefile.diff \
+ patch-src-utility-ConvertType-cpp.diff
+
+use_configure no
+
+post-patch {
+ reinplace "s|%%CXX_ARCHFLAGS%%|${configure.cxx_archflags}|" ${worksrcpath}/src/Makefile
+ reinplace "s|iStrCmp.c|iStrCmp.cpp|g" ${worksrcpath}/src/Makefile
+
+ move ${worksrcpath}/src/utility/iStrCmp.c ${worksrcpath}/src/utility/iStrCmp.cpp
+ move ${worksrcpath}/src/utility/iStrCmp.h ${worksrcpath}/src/utility/iStrCmp.hpp
+
+ reinplace "s|iStrCmp.c|iStrCmp.cpp|g" ${worksrcpath}/src/Makefile.deps
+ reinplace "s|iStrCmp.h|iStrCmp.hpp|g" ${worksrcpath}/src/Makefile.deps
+ reinplace "s|iStrCmp.h|iStrCmp.hpp|g" ${worksrcpath}/src/netlist/Component.hpp
+ reinplace "s|iStrCmp.h|iStrCmp.hpp|g" ${worksrcpath}/src/netlist/NetList.hpp
+ reinplace "s|iStrCmp.h|iStrCmp.hpp|g" ${worksrcpath}/src/utility/iStrCmp.cpp
+
+ #patch hardcoded wx-config command
+ reinplace -E "s|(WXCFG = )(wx-config)|\\1${prefix}/bin/\\2|" ${worksrcpath}/src/Makefile
+
+ set wxVersion [exec -ignorestderr /opt/local/bin/wx-config --release]
+ if { ${wxVersion} == "2.9" } {
+ #patch a wxWidgets issue in compatibility between 2.9 and 2.8
+ reinplace -E "s|(switch\\( )(osUnits.G)|\\1(wxChar)\\2|" ${worksrcpath}/src/utility/ChoUnits.cpp
+ reinplace -E "s|(switch\\( )(os1.GetCh)|\\1(wxChar)\\2|" ${worksrcpath}/src/gnucap/commands/CmdGnuCapPR.cpp
+ reinplace -E "s|(switch\\( )(wxToupper)|\\1(wxChar)\\2|" ${worksrcpath}/src/gnucap/panels/PnlGnuCapDC.cpp
+ reinplace -E "s|(switch\\( )(os1.GetCh)|\\1(wxChar)\\2|" ${worksrcpath}/src/ngspice/commands/CmdNgSpicePR.cpp
+ reinplace -E "s|(switch\\( )(wxToupper)|\\1(wxChar)\\2|" ${worksrcpath}/src/ngspice/panels/PnlNgSpiceDC.cpp
+ #patch hardcoded wxWidgets version number
+ reinplace -E "s|(GSPICEUI_WXLIB = )2.8|\\1${wxVersion}|" ${worksrcpath}/src/Makefile
+ }
+}
+
+#use_parallel_build no
+
+build.args-append CC=${configure.cc} \
+ CXX=${configure.cxx} \
+ CPP=${configure.cpp}
+
+destroot.destdir INSTALLDIR=${destroot}${prefix}
Property changes on: users/anddam/science/gspiceui/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: users/anddam/science/gspiceui/files/patch-iStrCmp.diff
===================================================================
--- users/anddam/science/gspiceui/files/patch-iStrCmp.diff (rev 0)
+++ users/anddam/science/gspiceui/files/patch-iStrCmp.diff 2011-10-06 20:46:20 UTC (rev 84989)
@@ -0,0 +1,10 @@
+--- src/utility/iStrCmp.c.orig 2010-05-01 08:14:24.000000000 +0200
++++ src/utility/iStrCmp.c 2010-05-01 08:13:08.000000000 +0200
+@@ -17,6 +17,7 @@
+ //*****************************************************************************
+
+ #include "utility/iStrCmp.h"
++#include "../TypeDefs.hpp"
+
+ //*****************************************************************************
+ // Compare algorithm for sorting strings alpha/numerically.
Added: users/anddam/science/gspiceui/files/patch-src-Makefile.diff
===================================================================
--- users/anddam/science/gspiceui/files/patch-src-Makefile.diff (rev 0)
+++ users/anddam/science/gspiceui/files/patch-src-Makefile.diff 2011-10-06 20:46:20 UTC (rev 84989)
@@ -0,0 +1,20 @@
+--- src/Makefile.orig 2010-05-01 19:23:29.000000000 +0200
++++ src/Makefile 2010-05-01 19:23:48.000000000 +0200
+@@ -61,7 +61,7 @@
+ # Compiler options
+ ifeq ($(GSPICEUI_DBG),0)
+ # Options for release (not using -Wall since it's GCC specific)
+- CXXFLAGS := -O -pipe $(shell $(WXCFG) --cxxflags)
++ CXXFLAGS := -O -pipe $(shell $(WXCFG) --cxxflags) %%CXX_ARCHFLAGS%%
+ else
+ # Options for development
+ CXXFLAGS := -Wall -g -pipe $(shell $(WXCFG) --cxxflags)
+@@ -72,7 +72,7 @@
+
+ # Libraries
+ # (The pkg-config stuff was requested by a user, somehow pangox was missing)
+-LIBS := $(shell $(WXCFG) --libs core,base,html) $(shell pkg-config --libs pangox)
++LIBS := $(shell $(WXCFG) --libs core,base,html) $(shell pkg-config --libs pangox) -lstdc++
+
+ # Objects
+ OBJS := $(wildcard *.cpp) $(wildcard */*.cpp) $(wildcard */*/*.cpp)
Added: users/anddam/science/gspiceui/files/patch-src-utility-ConvertType-cpp.diff
===================================================================
--- users/anddam/science/gspiceui/files/patch-src-utility-ConvertType-cpp.diff (rev 0)
+++ users/anddam/science/gspiceui/files/patch-src-utility-ConvertType-cpp.diff 2011-10-06 20:46:20 UTC (rev 84989)
@@ -0,0 +1,14 @@
+--- src/utility/ConvertType.cpp.orig 2010-05-01 19:33:34.000000000 +0200
++++ src/utility/ConvertType.cpp 2010-05-01 19:32:59.000000000 +0200
+@@ -263,9 +263,9 @@
+ if( ! bParseFlt( dfNum, &fMan, &iExp ) ) return( FALSE );
+
+ // Round the mantissa based on the desired resolution
+- fMan *= pow( 10.0, (float) m_iFltRes );
++ fMan *= pow( (float) 10.0, (float) m_iFltRes );
+ fMan = roundf( fMan );
+- fMan /= pow( 10.0, (float) m_iFltRes );
++ fMan /= pow( (float) 10.0, (float) m_iFltRes );
+
+ // Scale the mantissa so that the exponent is a multiple of 3
+ while( iExp % 3 )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111006/4cd2954d/attachment.html>
More information about the macports-changes
mailing list