Skip to content
Permalink
Browse files

update to 0.6.1

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@7531 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Ole Guldberg Jensen
Ole Guldberg Jensen committed Jun 16, 2004
1 parent fb67f4c commit ab87c3d9b7c1a4209801b7ce0ea135c6b4c9f52c
Showing with 60 additions and 9 deletions.
  1. +4 −4 gnome/genius/Portfile
  2. +56 −5 gnome/genius/files/patch_ve-misc.c
@@ -1,7 +1,7 @@
# $Id: Portfile,v 1.2 2004/05/01 14:18:06 olegb Exp $
# $Id: Portfile,v 1.3 2004/06/16 12:49:51 olegb Exp $
PortSystem 1.0
name genius
version 0.6.0
version 0.6.1
description Genius is a calculator program.
long_description Genius is a calculator program similiar in some aspects to \
BC, Matlab or Maple. GEL is the name of its extention language \
@@ -11,10 +11,10 @@ long_description Genius is a calculator program similiar in some aspects
maintainers olegb@opendarwin.org
categories gnome math
platforms darwin
homepage http://www.5z.com/jirka/genius.html
homepage http://www.jirka.org/genius.html
master_sites http://ftp.5z.com/pub/genius/ \
gnome:sources/genius/0.6
checksums md5 84a20037c91c48ed8ceea2d6a5097ea2
checksums md5 f6bb8357593f8a51aac1e7eae4f8ad91
patchfiles patch_calc.c patch_ve-misc.c
depends_lib lib:libgtksourceview-1:gtksourceview \
lib:libreadline:readline lib:libgmp:gmp
@@ -1,16 +1,67 @@
--- vicious-extensions/ve-misc.c.org Sat May 1 11:00:37 2004
+++ vicious-extensions/ve-misc.c Sat May 1 11:04:06 2004
@@ -434,12 +434,7 @@
--- vicious-extensions/ve-misc.c.org Wed Jun 16 07:04:49 2004
+++ vicious-extensions/ve-misc.c Wed Jun 16 07:06:03 2004
@@ -28,6 +28,13 @@

#include "ve-misc.h"

+#ifdef __APPLE__
+# include <crt_externs.h>
+# define environ (*_NSGetEnviron())
+#elif
+ extern char **environ;
+#endif
+
char **
ve_split (const char *s)
{
@@ -364,9 +371,6 @@
int
ve_setenv (const char *name, const char *value, gboolean overwrite)
{
-#if defined (HAVE_SETENV)
- return setenv (name, value != NULL ? value : "", overwrite);
-#else
char *string;

if (! overwrite && g_getenv (name) != NULL) {
@@ -379,7 +383,6 @@
*/
string = g_strconcat (name, "=", value, NULL);
return putenv (string);
-#endif
}
#endif

@@ -397,10 +400,6 @@
void
ve_unsetenv (const char *name)
{
-#if defined (HAVE_SETENV)
- unsetenv (name);
-#else
- extern char **environ;
int i, len;

if (environ == NULL)
@@ -421,7 +420,6 @@
environ[i] = environ[i + 1];
i++;
}
-#endif
}
#endif

@@ -437,13 +435,8 @@
void
ve_clearenv (void)
{
-#ifdef HAVE_CLEARENV
- clearenv ();
-#else
- extern char **environ;
- environ[0] = NULL;
if (environ != NULL)
environ[0] = NULL;
-#endif
+ unsetenv (NULL);
}

char *

0 comments on commit ab87c3d

Please sign in to comment.
You can’t perform that action at this time.