ports/98020: Update port: cad/oregano to 0.50.0
KATO Tsuguru
tkato432 at yahoo.com
Sat May 27 17:13:34 UTC 2006
>Number: 98020
>Category: ports
>Synopsis: Update port: cad/oregano to 0.50.0
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sat May 27 17:10:26 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: KATO Tsuguru
>Release: FreeBSD 4.11-RELEASE-p17 i386
>Organization:
>Environment:
>Description:
- Update to version 0.50.0
New file:
files/patch-src::node-store.c
fiels/patch-src::schematic-view.c
fiels/patch-src::simulate.c
Remove file:
files/patch-src__model__node-store.c
files/patch-src__schematic-view.c
files/patch-src__sheet_wire-item.c
files/patch-src__sim-engine.c
files/patch-src__simulate.c
>How-To-Repeat:
>Fix:
diff -urN /usr/ports/cad/oregano/Makefile cad/oregano/Makefile
--- /usr/ports/cad/oregano/Makefile Fri Feb 24 00:34:19 2006
+++ cad/oregano/Makefile Wed May 24 21:44:53 2006
@@ -6,32 +6,55 @@
#
PORTNAME= oregano
-PORTVERSION= 0.40.5
+PORTVERSION= 0.50.0
CATEGORIES= cad gnome
-MASTER_SITES= http://gforge.lug.fi.uba.ar/frs/download.php/64/
+MASTER_SITES= http://gforge.lug.fi.uba.ar/frs/download.php/80/
MAINTAINER= ports at FreeBSD.org
COMMENT= Schematic capture and simulation of electrical circuits
+BUILD_DEPENDS= scons:${PORTSDIR}/devel/scons
+
USE_BZIP2= yes
USE_X_PREFIX= yes
USE_GNOME= gnomehack gnomeprefix gtksourceview intlhack libglade2 \
libgnomeprintui libgnomeui
-USE_GMAKE= yes
-GNU_CONFIGURE= yes
-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>
-.if ${OSVERSION} < 500000
-BROKEN= "Does not build on 4.X"
-.endif
-
post-patch:
- @${REINPLACE_CMD} -e 's|src/main\.c|${PORTNAME}|g' ${WRKSRC}/configure
+ @${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 -urN /usr/ports/cad/oregano/distinfo cad/oregano/distinfo
--- /usr/ports/cad/oregano/distinfo Thu Nov 24 16:02:05 2005
+++ cad/oregano/distinfo Wed May 24 19:04:36 2006
@@ -1,3 +1,3 @@
-MD5 (oregano-0.40.5.tar.bz2) = 9aa11ab2afca0453466ac236458e9ea4
-SHA256 (oregano-0.40.5.tar.bz2) = e1406d0cb68d92f165df4d6cf0cd85bbe1a3491f6d2dec320693721deffac357
-SIZE (oregano-0.40.5.tar.bz2) = 874251
+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 -urN /usr/ports/cad/oregano/files/patch-src::node-store.c cad/oregano/files/patch-src::node-store.c
--- /usr/ports/cad/oregano/files/patch-src::node-store.c Sat Nov 27 04:49:15 2004
+++ cad/oregano/files/patch-src::node-store.c Thu Jan 1 09:00:00 1970
@@ -1,25 +0,0 @@
---- 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 -urN /usr/ports/cad/oregano/files/patch-src::schematic-view.c cad/oregano/files/patch-src::schematic-view.c
--- /usr/ports/cad/oregano/files/patch-src::schematic-view.c Sat Nov 27 04:49:15 2004
+++ cad/oregano/files/patch-src::schematic-view.c Thu Jan 1 09:00:00 1970
@@ -1,19 +0,0 @@
---- 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 -urN /usr/ports/cad/oregano/files/patch-src::simulate.c cad/oregano/files/patch-src::simulate.c
--- /usr/ports/cad/oregano/files/patch-src::simulate.c Sat Nov 27 04:49:15 2004
+++ cad/oregano/files/patch-src::simulate.c Thu Jan 1 09:00:00 1970
@@ -1,14 +0,0 @@
---- 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 -urN /usr/ports/cad/oregano/files/patch-src__model__node-store.c cad/oregano/files/patch-src__model__node-store.c
--- /usr/ports/cad/oregano/files/patch-src__model__node-store.c Thu Jan 1 09:00:00 1970
+++ cad/oregano/files/patch-src__model__node-store.c Wed May 24 19:07:10 2006
@@ -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 -urN /usr/ports/cad/oregano/files/patch-src__schematic-view.c cad/oregano/files/patch-src__schematic-view.c
--- /usr/ports/cad/oregano/files/patch-src__schematic-view.c Thu Jan 1 09:00:00 1970
+++ cad/oregano/files/patch-src__schematic-view.c Wed May 24 21:45:22 2006
@@ -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 -urN /usr/ports/cad/oregano/files/patch-src__sheet__wire-item.c cad/oregano/files/patch-src__sheet__wire-item.c
--- /usr/ports/cad/oregano/files/patch-src__sheet__wire-item.c Thu Jan 1 09:00:00 1970
+++ cad/oregano/files/patch-src__sheet__wire-item.c Wed May 24 21:13:54 2006
@@ -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 -urN /usr/ports/cad/oregano/files/patch-src__sim-engine.c cad/oregano/files/patch-src__sim-engine.c
--- /usr/ports/cad/oregano/files/patch-src__sim-engine.c Thu Jan 1 09:00:00 1970
+++ cad/oregano/files/patch-src__sim-engine.c Wed May 24 21:45:41 2006
@@ -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 -urN /usr/ports/cad/oregano/files/patch-src__simulate.c cad/oregano/files/patch-src__simulate.c
--- /usr/ports/cad/oregano/files/patch-src__simulate.c Thu Jan 1 09:00:00 1970
+++ cad/oregano/files/patch-src__simulate.c Wed May 24 21:45:58 2006
@@ -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 -urN /usr/ports/cad/oregano/files/patch-src_plot.c cad/oregano/files/patch-src_plot.c
--- /usr/ports/cad/oregano/files/patch-src_plot.c Thu Nov 10 22:34:56 2005
+++ cad/oregano/files/patch-src_plot.c Thu Jan 1 09:00:00 1970
@@ -1,15 +0,0 @@
-
-$FreeBSD: ports/cad/oregano/files/patch-src_plot.c,v 1.1 2005/11/10 13:34:56 vs Exp $
-
---- src/plot.c.orig
-+++ src/plot.c
-@@ -277,8 +277,8 @@
- {
- GtkTreeIter iter;
- GtkTreeModel *model;
-- plot->selected = 0;
- gboolean activo;
-+ plot->selected = 0;
-
- /* Check if selected row is leaf or root */
- if (gtk_tree_path_get_depth (arg1) == 1) {
diff -urN /usr/ports/cad/oregano/files/patch-src_sim-engine.c cad/oregano/files/patch-src_sim-engine.c
--- /usr/ports/cad/oregano/files/patch-src_sim-engine.c Fri Nov 11 00:38:54 2005
+++ cad/oregano/files/patch-src_sim-engine.c Thu Jan 1 09:00:00 1970
@@ -1,25 +0,0 @@
-
-$FreeBSD: ports/cad/oregano/files/patch-src_sim-engine.c,v 1.2 2005/11/10 13:34:56 vs Exp $
-
---- src/sim-engine.c.orig
-+++ src/sim-engine.c
-@@ -265,9 +265,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 };
-
-@@ -298,6 +298,7 @@
- * path y todo
- */
- execvp(simexec, args);
-+ }
-
- /* We should never get here. */
- g_warning ("Error executing the simulation engine.");
diff -urN /usr/ports/cad/oregano/pkg-plist cad/oregano/pkg-plist
--- /usr/ports/cad/oregano/pkg-plist Sat Nov 5 20:45:32 2005
+++ cad/oregano/pkg-plist Wed May 24 21:33:13 2006
@@ -1,7 +1,6 @@
bin/oregano
bin/oregano_parser.pl
-bin/pspice2oregano
-share/gnome/apps/Applications/oregano.desktop
+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
@@ -13,22 +12,22 @@
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/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
@@ -70,12 +69,10 @@
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
- at dirrm share/gnome/oregano/glade
+ at dirrm share/gnome/oregano/dialogs
@dirrm share/gnome/oregano
@dirrm share/gnome/omf/oregano
@dirrm share/gnome/help/oregano/fr
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list