From 74a2f8cddf1001c6300086a55857e99b67a4969b Mon Sep 17 00:00:00 2001
From: mezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059>
Date: Mon, 24 Jul 2006 23:08:20 +0000
Subject: X11BASE -> LOCALBASE, bump the PORTREVISION.

git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@6750 df743ca5-7f9a-e211-a948-0013205c9059
---
 cad/oregano/Makefile                             | 61 +++++++++++++++++
 cad/oregano/distinfo                             |  3 +
 cad/oregano/files/patch-src__model__node-store.c | 24 +++++++
 cad/oregano/files/patch-src__schematic-view.c    | 19 ++++++
 cad/oregano/files/patch-src__sheet__wire-item.c  | 12 ++++
 cad/oregano/files/patch-src__sim-engine.c        | 22 +++++++
 cad/oregano/files/patch-src__simulate.c          | 14 ++++
 cad/oregano/pkg-descr                            |  5 ++
 cad/oregano/pkg-plist                            | 84 ++++++++++++++++++++++++
 9 files changed, 244 insertions(+)
 create mode 100644 cad/oregano/Makefile
 create mode 100644 cad/oregano/distinfo
 create mode 100644 cad/oregano/files/patch-src__model__node-store.c
 create mode 100644 cad/oregano/files/patch-src__schematic-view.c
 create mode 100644 cad/oregano/files/patch-src__sheet__wire-item.c
 create mode 100644 cad/oregano/files/patch-src__sim-engine.c
 create mode 100644 cad/oregano/files/patch-src__simulate.c
 create mode 100644 cad/oregano/pkg-descr
 create mode 100644 cad/oregano/pkg-plist

(limited to 'cad/oregano')

diff --git a/cad/oregano/Makefile b/cad/oregano/Makefile
new file mode 100644
index 000000000..f5b479e91
--- /dev/null
+++ b/cad/oregano/Makefile
@@ -0,0 +1,61 @@
+# New ports collection makefile for:	oregano
+# Date created:			19 Feb 2001
+# Whom:				Anders Andersson <anders@hack.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME=	oregano
+PORTVERSION=	0.50.0
+PORTREVISION=	1
+CATEGORIES=	cad gnome
+MASTER_SITES=	http://gforge.lug.fi.uba.ar/frs/download.php/80/
+
+MAINTAINER=	ports@FreeBSD.org
+COMMENT=	Schematic capture and simulation of electrical circuits
+
+BUILD_DEPENDS=	scons:${PORTSDIR}/devel/scons
+
+USE_BZIP2=	yes
+USE_XLIB=	yes
+USE_GNOME=	gnomehack gnomeprefix gtksourceview intlhack libglade2 \
+		libgnomeprintui libgnomeui
+INSTALLS_OMF=	yes
+
+.include <bsd.port.pre.mk>
+
+post-patch:
+	@${REINPLACE_CMD} -e "s|-Wall|${CFLAGS}|g ; \
+		 s|'/share'|'/share/gnome'|g ; \
+		 s|'gnome/apps/Applications'|'applications'|g ; \
+		 /oregano\.xml/d" ${WRKSRC}/SConstruct
+	@${FIND} ${WRKSRC} -name "SConscript" | ${XARGS} ${REINPLACE_CMD} -e \
+		"s|share/oregano|share/gnome/oregano|g"
+
+do-build:
+	@cd ${BUILD_WRKSRC} && scons PREFIX=${PREFIX}
+
+do-install:
+	@cd ${BUILD_WRKSRC} && scons install PREFIX=${PREFIX}
+	@${STRIP_CMD} ${PREFIX}/bin/oregano
+	@${MKDIR} ${PREFIX}/share/gnome/oregano/models
+	${INSTALL_DATA} ${WRKSRC}/data/models/*.model \
+		${PREFIX}/share/gnome/oregano/models
+	@${MKDIR} ${PREFIX}/share/gnome/oregano/samples
+	${INSTALL_DATA} ${WRKSRC}/src/samples/*.oregano \
+		${PREFIX}/share/gnome/oregano/samples
+.for lang in C es fr
+	@${MKDIR} ${PREFIX}/share/gnome/help/oregano/${lang}
+	${INSTALL_DATA} ${WRKSRC}/help/${lang}/*.xml \
+		${PREFIX}/share/gnome/help/oregano/${lang}
+	@${MKDIR} ${PREFIX}/share/gnome/omf/oregano
+	${INSTALL_DATA} ${WRKSRC}/help/${lang}/*.omf \
+		${PREFIX}/share/gnome/omf/oregano
+.endfor
+	${INSTALL_DATA} ${WRKSRC}/gnome-oregano.svg \
+		${PREFIX}/share/gnome/pixmaps/gnome-oregano.svg
+	${INSTALL_DATA} ${WRKSRC}/oregano.xml.in \
+		${PREFIX}/share/mime/packages/oregano.xml
+	@-update-mime-database ${PREFIX}/share/mime
+
+.include <bsd.port.post.mk>
diff --git a/cad/oregano/distinfo b/cad/oregano/distinfo
new file mode 100644
index 000000000..59da29dee
--- /dev/null
+++ b/cad/oregano/distinfo
@@ -0,0 +1,3 @@
+MD5 (oregano-0.50.0.tar.bz2) = 9816761944b0163029942f2e113b7827
+SHA256 (oregano-0.50.0.tar.bz2) = a7a44daa150d589f34f134682ecec5e3a50ce3e418fef991f0ef6a127ab155d5
+SIZE (oregano-0.50.0.tar.bz2) = 521434
diff --git a/cad/oregano/files/patch-src__model__node-store.c b/cad/oregano/files/patch-src__model__node-store.c
new file mode 100644
index 000000000..d4a39e524
--- /dev/null
+++ b/cad/oregano/files/patch-src__model__node-store.c
@@ -0,0 +1,24 @@
+--- src/model/node-store.c.orig	Wed May 24 14:16:30 2006
++++ src/model/node-store.c	Wed May 24 19:07:00 2006
+@@ -432,9 +432,9 @@
+ 			SheetPos w_pos, w_length;
+ 			gboolean can_join;
+ 			GSList *nodes;
++			gdouble _x1, _x2, _y1, _y2;
+ 
+ 			wire_get_pos_and_length (ipoint->wire, &w_pos, &w_length);
+-			gdouble _x1, _x2, _y1, _y2;
+ 
+ 			_x1 = w_pos.x;
+ 			_y1 = w_pos.y;
+@@ -481,9 +481,9 @@
+ 			SheetPos w_pos, w_length;
+ 			gboolean can_join;
+ 			GSList *nodes;
++			gdouble _x1, _x2, _y1, _y2;
+ 
+ 			wire_get_pos_and_length (ipoint->wire, &w_pos, &w_length);
+-			gdouble _x1, _x2, _y1, _y2;
+ 
+ 			_x1 = w_pos.x;
+ 			_y1 = w_pos.y;
diff --git a/cad/oregano/files/patch-src__schematic-view.c b/cad/oregano/files/patch-src__schematic-view.c
new file mode 100644
index 000000000..c7fd3c690
--- /dev/null
+++ b/cad/oregano/files/patch-src__schematic-view.c
@@ -0,0 +1,19 @@
+--- src/schematic-view.c.orig	Wed May 24 14:16:30 2006
++++ src/schematic-view.c	Wed May 24 21:39:29 2006
+@@ -1849,6 +1849,7 @@
+ 				int i=0;
+ 				while (files[i]) {
+ 					Schematic *new_sm = NULL;
++					gchar *fname = files[i];
+ 					int l = strlen(files[i]);
+ 					/* Algo queda mal al final luego del split, agrego un \0 */
+ 					files[i][l-1] = '\0';
+@@ -1858,8 +1859,6 @@
+ 						i++;
+ 						continue;
+ 					}
+-
+-					gchar *fname = files[i];
+ 
+ 					new_sm = schematic_read (fname, &error);
+ 					if (new_sm) {
diff --git a/cad/oregano/files/patch-src__sheet__wire-item.c b/cad/oregano/files/patch-src__sheet__wire-item.c
new file mode 100644
index 000000000..e6c85906d
--- /dev/null
+++ b/cad/oregano/files/patch-src__sheet__wire-item.c
@@ -0,0 +1,12 @@
+--- src/sheet/wire-item.c.orig	Wed May 24 14:16:30 2006
++++ src/sheet/wire-item.c	Wed May 24 21:13:43 2006
+@@ -363,8 +363,8 @@
+ 		case GDK_BUTTON_PRESS:
+ 			switch (event->button.button) {
+ 				case 1: {
+-					g_signal_stop_emission_by_name (G_OBJECT (sheet), "event");
+ 					double x, y;
++					g_signal_stop_emission_by_name (G_OBJECT (sheet), "event");
+ 					x = event->button.x - start_pos.x;
+ 					y = event->button.y - start_pos.y;
+ 					if ((x > -RESIZER_SIZE) && (x < RESIZER_SIZE) &&
diff --git a/cad/oregano/files/patch-src__sim-engine.c b/cad/oregano/files/patch-src__sim-engine.c
new file mode 100644
index 000000000..142c45f5b
--- /dev/null
+++ b/cad/oregano/files/patch-src__sim-engine.c
@@ -0,0 +1,22 @@
+--- src/sim-engine.c.orig	Wed May 24 14:16:30 2006
++++ src/sim-engine.c	Wed May 24 21:39:29 2006
+@@ -268,9 +268,9 @@
+ 	/* TODO Would be recomendable to use pthread? */
+ 	engine->child_pid = fork();
+ 	if (engine->child_pid == 0) {
+-		setpgrp ();
++		setpgrp(0, getpid());
+ 		/* Now oregano.simtype has gnucap or ngspice */
+-		gchar *simexec = oregano.simexec;
++		{ gchar *simexec = oregano.simexec;
+         /* !!!!!!!!!!! "-s" "-n" */
+ 		gchar *args[4] = { simexec, oregano.simtype, (gchar *)netlist, NULL };
+ 	
+@@ -300,6 +300,7 @@
+ 		 * path y todo
+ 		 */
+ 		execvp(simexec, args);
++		}
+ 
+ 		/* We should never get here. */
+ 		g_warning ("Error executing the simulation engine.");
diff --git a/cad/oregano/files/patch-src__simulate.c b/cad/oregano/files/patch-src__simulate.c
new file mode 100644
index 000000000..e6a983baf
--- /dev/null
+++ b/cad/oregano/files/patch-src__simulate.c
@@ -0,0 +1,14 @@
+--- src/simulate.c.orig	Wed May 24 14:16:30 2006
++++ src/simulate.c	Wed May 24 21:39:29 2006
+@@ -188,10 +188,10 @@
+ 	GList *parts;
+ 	GList *p;
+ 	gchar *prop, *type, *ac;
+-	parts = node_store_get_parts (store);
+ 	GString *out;
+ 	gchar *ret;
+ 
++	parts = node_store_get_parts (store);
+ 	out = g_string_new ("");
+ 
+ 	for(p=parts; p; p = p->next) {
diff --git a/cad/oregano/pkg-descr b/cad/oregano/pkg-descr
new file mode 100644
index 000000000..6de9aa1ca
--- /dev/null
+++ b/cad/oregano/pkg-descr
@@ -0,0 +1,5 @@
+Oregano is a tool for schematic capture and simulation of electrical
+circuits.  It simplifies design of simple circuits by letting the user
+draw the circuit and then simulate its electrical characteristics.
+
+WWW: http://arrakis.gforge.lug.fi.uba.ar/
diff --git a/cad/oregano/pkg-plist b/cad/oregano/pkg-plist
new file mode 100644
index 000000000..c5765e887
--- /dev/null
+++ b/cad/oregano/pkg-plist
@@ -0,0 +1,84 @@
+bin/oregano
+bin/oregano_parser.pl
+share/gnome/applications/oregano.desktop
+share/gnome/help/oregano/C/legal.xml
+share/gnome/help/oregano/C/oregano.xml
+share/gnome/help/oregano/es/legal.xml
+share/gnome/help/oregano/es/oregano.xml
+share/gnome/help/oregano/fr/legal.xml
+share/gnome/help/oregano/fr/oregano.xml
+share/gnome/mime-info/oregano.keys
+share/gnome/mime-info/oregano.mime
+share/gnome/omf/oregano/oregano-C.omf
+share/gnome/omf/oregano/oregano-es.omf
+share/gnome/omf/oregano/oregano-fr.omf
+share/gnome/oregano/dialogs/clamp-properties-dialog.glade2
+share/gnome/oregano/dialogs/log-window.glade2
+share/gnome/oregano/dialogs/page-properties.glade2
+share/gnome/oregano/dialogs/part-browser.glade2
+share/gnome/oregano/dialogs/part-properties-dialog.glade2
+share/gnome/oregano/dialogs/plot-add-function.glade2
+share/gnome/oregano/dialogs/plot-export.glade2
+share/gnome/oregano/dialogs/plot-window.glade2
+share/gnome/oregano/dialogs/properties.glade2
+share/gnome/oregano/dialogs/settings.glade2
+share/gnome/oregano/dialogs/sim-settings.glade2
+share/gnome/oregano/dialogs/simulation.glade2
+share/gnome/oregano/dialogs/splash.glade2
+share/gnome/oregano/dialogs/splash.xpm
+share/gnome/oregano/dialogs/textbox-properties-dialog.glade2
+share/gnome/oregano/dialogs/view-netlist.glade2
+share/gnome/oregano/libraries/cmos.oreglib
+share/gnome/oregano/libraries/cpu.oreglib
+share/gnome/oregano/libraries/default.oreglib
+share/gnome/oregano/libraries/interface.oreglib
+share/gnome/oregano/libraries/linear.oreglib
+share/gnome/oregano/libraries/memory.oreglib
+share/gnome/oregano/libraries/miscellaneous.oreglib
+share/gnome/oregano/libraries/opamplib.oreglib
+share/gnome/oregano/libraries/peripheral.oreglib
+share/gnome/oregano/libraries/power.oreglib
+share/gnome/oregano/libraries/ttl.oreglib
+share/gnome/oregano/models/12AX7A.model
+share/gnome/oregano/models/1N750.model
+share/gnome/oregano/models/NPN.model
+share/gnome/oregano/models/PNP.model
+share/gnome/oregano/models/TLC555.model
+share/gnome/oregano/models/UA741.model
+share/gnome/oregano/samples/12ax7a.oregano
+share/gnome/oregano/samples/555.oregano
+share/gnome/oregano/samples/741.oregano
+share/gnome/oregano/samples/OP177B.oregano
+share/gnome/oregano/samples/carga_capacitor.oregano
+share/gnome/oregano/samples/opamp.oregano
+share/gnome/oregano/samples/opamp_ideal.oregano
+share/gnome/oregano/samples/pasa_altos.oregano
+share/gnome/oregano/samples/simple.oregano
+share/gnome/oregano/samples/simple2.oregano
+share/gnome/oregano/samples/transistors.oregano
+share/gnome/oregano/samples/zener.oregano
+share/gnome/pixmaps/gnome-oregano.svg
+share/locale/ca/LC_MESSAGES/oregano.mo
+share/locale/de/LC_MESSAGES/oregano.mo
+share/locale/es/LC_MESSAGES/oregano.mo
+share/locale/fr/LC_MESSAGES/oregano.mo
+share/locale/it/LC_MESSAGES/oregano.mo
+share/locale/ja/LC_MESSAGES/oregano.mo
+share/locale/pl/LC_MESSAGES/oregano.mo
+share/locale/pt_BR/LC_MESSAGES/oregano.mo
+share/locale/ro/LC_MESSAGES/oregano.mo
+share/locale/ru/LC_MESSAGES/oregano.mo
+share/locale/sv/LC_MESSAGES/oregano.mo
+share/mime/packages/oregano.xml
+@dirrm share/gnome/oregano/samples
+@dirrm share/gnome/oregano/models
+@dirrm share/gnome/oregano/libraries
+@dirrm share/gnome/oregano/dialogs
+@dirrm share/gnome/oregano
+@dirrm share/gnome/omf/oregano
+@dirrm share/gnome/help/oregano/fr
+@dirrm share/gnome/help/oregano/es
+@dirrm share/gnome/help/oregano/C
+@dirrm share/gnome/help/oregano
+@exec %%LOCALBASE%%/bin/update-mime-database %D/share/mime
+@unexec %%LOCALBASE%%/bin/update-mime-database %D/share/mime
-- 
cgit