summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059>2005-08-09 12:35:36 +0800
committerahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059>2005-08-09 12:35:36 +0800
commit98e3d244fd9c17651a24a1ee446f9d3f8d1908d3 (patch)
treef4a22896fff8408471e002e7b25a34443e365ebb
parent9e0a0e14a58e8879ae76c959e05a4d4abc6bb602 (diff)
downloadmarcuscom-ports-98e3d244fd9c17651a24a1ee446f9d3f8d1908d3.tar.gz
marcuscom-ports-98e3d244fd9c17651a24a1ee446f9d3f8d1908d3.tar.zst
marcuscom-ports-98e3d244fd9c17651a24a1ee446f9d3f8d1908d3.zip
- Add oregano at version 0.40.5
* cairo 0.6.0 update port. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@4434 df743ca5-7f9a-e211-a948-0013205c9059
-rw-r--r--cad/oregano/Makefile36
-rw-r--r--cad/oregano/distinfo2
-rw-r--r--cad/oregano/files/patch-src::node-store.c25
-rw-r--r--cad/oregano/files/patch-src::schematic-view.c19
-rw-r--r--cad/oregano/files/patch-src::simulate.c14
-rw-r--r--cad/oregano/files/patch-src_sim-engine.c11
-rw-r--r--cad/oregano/pkg-descr5
-rw-r--r--cad/oregano/pkg-plist86
8 files changed, 198 insertions, 0 deletions
diff --git a/cad/oregano/Makefile b/cad/oregano/Makefile
new file mode 100644
index 000000000..62b159d73
--- /dev/null
+++ b/cad/oregano/Makefile
@@ -0,0 +1,36 @@
+# New ports collection makefile for: oregano
+# Date created: 19 Feb 2001
+# Whom: Anders Andersson <anders@hack.org>
+#
+# $FreeBSD$
+# $MCom$
+#
+
+PORTNAME= oregano
+PORTVERSION= 0.40.5
+CATEGORIES= cad gnome
+MASTER_SITES= http://gforge.lug.fi.uba.ar/frs/download.php/64/
+
+MAINTAINER= ports@FreeBSD.org
+COMMENT= Schematic capture and simulation of electrical circuits
+
+LIB_DEPENDS= cairo.1:${PORTSDIR}/graphics/cairo
+
+USE_BZIP2= yes
+USE_X_PREFIX= yes
+USE_GNOME= gnomehack gnomeprefix gtksourceview intlhack libglade2 \
+ libgnomeprintui libgnomeui
+USE_GMAKE= yes
+USE_LIBTOOL_VER= 15
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib"
+MAKE_ARGS= ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" AUTOHEADER="${TRUE}" \
+ AUTOMAKE="${TRUE}"
+INSTALLS_OMF= yes
+
+.include <bsd.port.pre.mk>
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|src/main\.c|${PORTNAME}|g' ${WRKSRC}/configure
+
+.include <bsd.port.post.mk>
diff --git a/cad/oregano/distinfo b/cad/oregano/distinfo
new file mode 100644
index 000000000..142540c35
--- /dev/null
+++ b/cad/oregano/distinfo
@@ -0,0 +1,2 @@
+MD5 (oregano-0.40.5.tar.bz2) = 9aa11ab2afca0453466ac236458e9ea4
+SIZE (oregano-0.40.5.tar.bz2) = 874251
diff --git a/cad/oregano/files/patch-src::node-store.c b/cad/oregano/files/patch-src::node-store.c
new file mode 100644
index 000000000..66de46020
--- /dev/null
+++ b/cad/oregano/files/patch-src::node-store.c
@@ -0,0 +1,25 @@
+--- src/node-store.c.orig Tue Oct 12 04:04:27 2004
++++ src/node-store.c Fri Nov 26 18:05:48 2004
+@@ -431,9 +431,10 @@
+
+ if (IS_EQ (x1, x2) && ((ipoint->pos.y == y1) || (ipoint->pos.y == y2))) {
+ SheetPos w_pos, w_length;
+- wire_get_pos_and_length (ipoint->wire, &w_pos, &w_length);
+ gdouble _x1, _x2, _y1, _y2;
+
++ wire_get_pos_and_length (ipoint->wire, &w_pos, &w_length);
++
+ _x1 = w_pos.x;
+ _y1 = w_pos.y;
+ _x2 = x1 + w_length.x;
+@@ -457,8 +458,9 @@
+ }
+ } else if (IS_EQ (y1, y2) && ((ipoint->pos.x == x1) || (ipoint->pos.x == x2))) {
+ SheetPos w_pos, w_length;
+- wire_get_pos_and_length (ipoint->wire, &w_pos, &w_length);
+ gdouble _x1, _x2, _y1, _y2;
++
++ wire_get_pos_and_length (ipoint->wire, &w_pos, &w_length);
+
+ _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..7cc677b82
--- /dev/null
+++ b/cad/oregano/files/patch-src::schematic-view.c
@@ -0,0 +1,19 @@
+--- src/schematic-view.c.orig Fri Nov 12 10:09:14 2004
++++ src/schematic-view.c Fri Nov 26 18:08:32 2004
+@@ -1840,6 +1840,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';
+@@ -1849,8 +1850,6 @@
+ i++;
+ continue;
+ }
+-
+- gchar *fname = files[i];
+
+ new_sm = schematic_read (fname);
+ if (new_sm) {
diff --git a/cad/oregano/files/patch-src::simulate.c b/cad/oregano/files/patch-src::simulate.c
new file mode 100644
index 000000000..439118184
--- /dev/null
+++ b/cad/oregano/files/patch-src::simulate.c
@@ -0,0 +1,14 @@
+--- src/simulate.c.orig Tue Nov 23 04:20:05 2004
++++ src/simulate.c Fri Nov 26 18:10:37 2004
+@@ -200,10 +200,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/files/patch-src_sim-engine.c b/cad/oregano/files/patch-src_sim-engine.c
new file mode 100644
index 000000000..c9e9410fc
--- /dev/null
+++ b/cad/oregano/files/patch-src_sim-engine.c
@@ -0,0 +1,11 @@
+--- src/sim-engine.c.orig Tue Aug 9 00:26:23 2005
++++ src/sim-engine.c Tue Aug 9 00:26:46 2005
+@@ -265,7 +265,7 @@
+ /* 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;
+ /* !!!!!!!!!!! "-s" "-n" */
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..03e2fb05b
--- /dev/null
+++ b/cad/oregano/pkg-plist
@@ -0,0 +1,86 @@
+bin/oregano
+bin/oregano_parser.pl
+bin/pspice2oregano
+share/gnome/apps/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/glade/clamp-properties-dialog.glade2
+share/gnome/oregano/glade/log-window.glade2
+share/gnome/oregano/glade/page-properties.glade2
+share/gnome/oregano/glade/part-browser.glade2
+share/gnome/oregano/glade/part-properties-dialog.glade2
+share/gnome/oregano/glade/plot-add-function.glade2
+share/gnome/oregano/glade/plot-export.glade2
+share/gnome/oregano/glade/plot-window.glade2
+share/gnome/oregano/glade/properties.glade2
+share/gnome/oregano/glade/settings.glade2
+share/gnome/oregano/glade/sim-settings.glade2
+share/gnome/oregano/glade/simulation.glade2
+share/gnome/oregano/glade/splash.glade2
+share/gnome/oregano/glade/splash.xpm
+share/gnome/oregano/glade/textbox-properties-dialog.glade2
+share/gnome/oregano/glade/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/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
+share/mime/text/netlist.xml
+share/mime/text/oregano.xml
+@dirrm share/gnome/oregano/samples
+@dirrm share/gnome/oregano/models
+@dirrm share/gnome/oregano/libraries
+@dirrm share/gnome/oregano/glade
+@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