Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Nov 2015 10:53:52 +0000 (UTC)
From:      Bartek Rutkowski <robak@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r401047 - in head/cad/gspiceui: . files
Message-ID:  <201511081053.tA8Arquk025187@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: robak
Date: Sun Nov  8 10:53:51 2015
New Revision: 401047
URL: https://svnweb.freebsd.org/changeset/ports/401047

Log:
  cad/gspiceui: update 1.0.00 -> 1.1.00
  
  - Remove RUN_DEPENDS on circuit simulators
  - Support building with WX 3.0
  - Update COMMENT and pkg-descr
  - Update LICENSE to GPLv3
  - Respect CFLAGS from ports infrastructure
  
  PR:		202232
  Submitted by:	Kevin Zheng <kevinz5000@gmail.com> (maintainer)

Added:
  head/cad/gspiceui/files/
  head/cad/gspiceui/files/patch-src_Makefile   (contents, props changed)
  head/cad/gspiceui/files/patch-src_TypeDefs.hpp   (contents, props changed)
Modified:
  head/cad/gspiceui/Makefile
  head/cad/gspiceui/distinfo
  head/cad/gspiceui/pkg-descr

Modified: head/cad/gspiceui/Makefile
==============================================================================
--- head/cad/gspiceui/Makefile	Sun Nov  8 09:18:51 2015	(r401046)
+++ head/cad/gspiceui/Makefile	Sun Nov  8 10:53:51 2015	(r401047)
@@ -2,32 +2,23 @@
 # $FreeBSD$
 
 PORTNAME=	gspiceui
-PORTVERSION=	1.0.00
-PORTREVISION=	8
+PORTVERSION=	1.1.00
 CATEGORIES=	cad
 MASTER_SITES=	SF/${PORTNAME}/gSpiceUI/${PORTNAME}-v${PORTVERSION}
 DISTNAME=	${PORTNAME}-v${PORTVERSION}
 
 MAINTAINER=	kevinz5000@gmail.com
-COMMENT=	GUI frontend to gnucap and ngspice circuit simulators
+COMMENT=	GUI for ngspice and gnucap circuit simulators
 
-LICENSE=	GPLv2
-
-RUN_DEPENDS=	# none if no options are set
+LICENSE=	GPLv3
 
 OPTIONS_DEFINE=	DOCS EXAMPLES
-OPTIONS_GROUP=	BACKEND
-
-OPTIONS_GROUP_BACKEND=	GNUCAP NGSPICE
-
-GNUCAP_DESC=	Depend on gnucap as a simulation backend
-NGSPICE_DESC=	Depend on ngspice as a simulation backend
 
-OPTIONS_DEFAULT=	NGSPICE
-
-USE_WX=		2.8+
+USE_WX=		2.8 3.0
 WX_UNICODE=	yes
-USES=		gmake compiler:c++11-lib
+USES=		compiler:c++11-lib gmake pkgconfig
+
+CXXFLAGS+=	-std=c++11
 
 DESKTOP_ENTRIES=	"GSpiceUI" "Circuit Simulator GUI" \
 			"${PREFIX}/share/pixmaps/gspiceui-48x48.xpm" \
@@ -38,18 +29,9 @@ PORTEXAMPLES=	*
 PLIST_FILES=	bin/gspiceui share/pixmaps/gspiceui-48x48.xpm \
 		man/man1/gspiceui.1.gz
 
-GNUCAP_RUN_DEPENDS=	gnucap:${PORTSDIR}/cad/gnucap
-NGSPICE_RUN_DEPENDS=	ngspice:${PORTSDIR}/cad/ngspice_rework
-
 post-patch:
-	@${REINPLACE_CMD} -e \
-		's|:= -Ofast -pipe|+= -I.|g ; \
-		 s|^INCLUDES |#INCLUDES |g ; \
-		 s|$$(WXCFG)|$$(WX_CONFIG)|g ; \
-		 s|$$(CC)|$$(CXX)|g' ${WRKSRC}/src/Makefile
-	@${REINPLACE_CMD} -e \
-		's|share/gspiceui|${DOCSDIR}|g' \
-		${WRKSRC}/src/main/HelpTasks.cpp
+	@${REINPLACE_CMD} -e 's|share/gspiceui|${DOCSDIR}|g' \
+	    ${WRKSRC}/src/main/HelpTasks.cpp
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/bin/gspiceui ${STAGEDIR}${PREFIX}/bin

Modified: head/cad/gspiceui/distinfo
==============================================================================
--- head/cad/gspiceui/distinfo	Sun Nov  8 09:18:51 2015	(r401046)
+++ head/cad/gspiceui/distinfo	Sun Nov  8 10:53:51 2015	(r401047)
@@ -1,2 +1,2 @@
-SHA256 (gspiceui-v1.0.00.tar.gz) = ff8d38b9bb10bf695c00a0660dcbd14a43072e93851c5100a85133919736d5da
-SIZE (gspiceui-v1.0.00.tar.gz) = 612517
+SHA256 (gspiceui-v1.1.00.tar.gz) = 22cbe0a8800f9fade43235c74df2e3defb06f2d6e0ac57cff81d058ab89da564
+SIZE (gspiceui-v1.1.00.tar.gz) = 1048236

Added: head/cad/gspiceui/files/patch-src_Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/cad/gspiceui/files/patch-src_Makefile	Sun Nov  8 10:53:51 2015	(r401047)
@@ -0,0 +1,35 @@
+--- src/Makefile.orig	2015-03-29 12:25:24 UTC
++++ src/Makefile
+@@ -38,13 +38,12 @@ DESTDIR = /usr/local/bin
+ #***************************************************************************************************
+ 
+ # Which compiler
+-CXX = g++
+ 
+ # Application name
+ PROG = gspiceui
+ 
+ # wxWidgets configuration utility
+-WXCFG = wx-config --unicode --version=$(GSPICEUI_WXLIB)
++WXCFG = $(WX_CONFIG)
+ 
+ # Dependency file
+ DEPS = Makefile.deps
+@@ -71,7 +70,7 @@ BINDIR     = $(ROOT)/bin
+ #  -Og        Optimize debugging experience but don't break debugging
+ ifeq ($(GSPICEUI_DBG),0)
+   # Options for release (not using -Wall since it's GCC specific)
+-  CXXFLAGS := -O1 -pipe $(shell $(WXCFG) --cxxflags)
++  CXXFLAGS += $(shell $(WXCFG) --cxxflags)
+ else
+   # Options for development
+   CXXFLAGS := -g -Og -Wall -Wextra -pipe $(shell $(WXCFG) --cxxflags)
+@@ -83,7 +82,7 @@ ifeq ($(GSPICEUI_WXLIB),2.8)
+ endif
+ 
+ # Includes
+-INCLUDES = -I/usr/include -I/usr/X11R6/include -I.
++INCLUDES = -I.
+ 
+ # Libraries
+ # (The pkg-config stuff was requested by a user, somehow pangox was missing)

Added: head/cad/gspiceui/files/patch-src_TypeDefs.hpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/cad/gspiceui/files/patch-src_TypeDefs.hpp	Sun Nov  8 10:53:51 2015	(r401047)
@@ -0,0 +1,25 @@
+--- src/TypeDefs.hpp.orig	2015-04-06 10:28:07 UTC
++++ src/TypeDefs.hpp
+@@ -57,16 +57,18 @@ extern  bool  g_bDebug;  // Declared in 
+ //**************************************************************************************************
+ // Type definitions
+ 
+-//typedef  unsigned long  ulong;
+-//typedef  unsigned int   uint;
+-//typedef  unsigned char  uchar;
++#ifdef __BSD__
++typedef  unsigned long  ulong;
++typedef  unsigned int   uint;
++typedef  unsigned char  uchar;
++#endif
+ 
+ typedef  wxStaticText   wxLabel;
+ 
+ //**************************************************************************************************
+ // Operating System specific macro declarations
+ 
+-#ifdef __WXOSX__
++#if defined(__WXOSX__) || defined(__BSD__)
+   #define  EXP10(X)   pow(10.0,X)
+   #define  EXP10F(X)  powf(10.0,X)
+ #else

Modified: head/cad/gspiceui/pkg-descr
==============================================================================
--- head/cad/gspiceui/pkg-descr	Sun Nov  8 09:18:51 2015	(r401046)
+++ head/cad/gspiceui/pkg-descr	Sun Nov  8 10:53:51 2015	(r401047)
@@ -1,6 +1,6 @@
-GSpiceUI (GNU Spice GUI) is intended to provide a graphical frontend to freely
-available circuit simulators, including gnucap and ngspice. It can use
-gnetlist to import schematics or net list files and gwave to display
-simulation results.
+gSpiceUI is intended to provide a GUI for freely available electronic
+circuit simulation engines ie. NG-Spice and GNU-Cap. The utility gnetlist is
+used to convert schematic files to netlist files, Gwave or Gaw to display
+simulation results and gschem is the preferred schematic capture tool.
 
-WWW: http://sourceforge.net/projects/gspiceui/
+WWW: http://users.tpg.com.au/micksw012/gspiceui.html



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201511081053.tA8Arquk025187>