Changeset 7531 for trunk/dports


Ignore:
Timestamp:
Jun 16, 2004, 12:49:52 PM (20 years ago)
Author:
olegb
Message:

Bug:
Submitted by:
Reviewed by:
Approved by:
Obtained from:
update to 0.6.1

Location:
trunk/dports/gnome/genius
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/gnome/genius/Portfile

    r6864 r7531  
    1 # $Id: Portfile,v 1.2 2004/05/01 14:18:06 olegb Exp $
     1# $Id: Portfile,v 1.3 2004/06/16 12:49:51 olegb Exp $
    22PortSystem 1.0
    33name            genius
    4 version         0.6.0
     4version         0.6.1
    55description     Genius is a calculator program.
    66long_description        Genius is a calculator program similiar in some aspects to \
     
    1212categories      gnome math
    1313platforms       darwin
    14 homepage        http://www.5z.com/jirka/genius.html
     14homepage        http://www.jirka.org/genius.html
    1515master_sites    http://ftp.5z.com/pub/genius/ \
    1616                gnome:sources/genius/0.6
    17 checksums       md5 84a20037c91c48ed8ceea2d6a5097ea2
     17checksums       md5 f6bb8357593f8a51aac1e7eae4f8ad91
    1818patchfiles      patch_calc.c patch_ve-misc.c
    1919depends_lib     lib:libgtksourceview-1:gtksourceview \
  • trunk/dports/gnome/genius/files/patch_ve-misc.c

    r6863 r7531  
    1 --- vicious-extensions/ve-misc.c.org    Sat May  1 11:00:37 2004
    2 +++ vicious-extensions/ve-misc.c        Sat May  1 11:04:06 2004
    3 @@ -434,12 +434,7 @@
     1--- vicious-extensions/ve-misc.c.org    Wed Jun 16 07:04:49 2004
     2+++ vicious-extensions/ve-misc.c        Wed Jun 16 07:06:03 2004
     3@@ -28,6 +28,13 @@
     4 
     5 #include "ve-misc.h"
     6 
     7+#ifdef __APPLE__
     8+# include <crt_externs.h>
     9+# define environ (*_NSGetEnviron())
     10+#elif
     11+ extern char **environ;
     12+#endif
     13+
     14 char **
     15 ve_split (const char *s)
     16 {
     17@@ -364,9 +371,6 @@
     18 int
     19 ve_setenv (const char *name, const char *value, gboolean overwrite)
     20 {
     21-#if defined (HAVE_SETENV)
     22-       return setenv (name, value != NULL ? value : "", overwrite);
     23-#else
     24        char *string;
     25       
     26        if (! overwrite && g_getenv (name) != NULL) {
     27@@ -379,7 +383,6 @@
     28         */
     29        string = g_strconcat (name, "=", value, NULL);
     30        return putenv (string);
     31-#endif
     32 }
     33 #endif
     34 
     35@@ -397,10 +400,6 @@
     36 void
     37 ve_unsetenv (const char *name)
     38 {
     39-#if defined (HAVE_SETENV)
     40-       unsetenv (name);
     41-#else
     42-       extern char **environ;
     43        int i, len;
     44 
     45        if (environ == NULL)
     46@@ -421,7 +420,6 @@
     47                environ[i] = environ[i + 1];
     48                i++;
     49        }
     50-#endif
     51 }
     52 #endif
     53 
     54@@ -437,13 +435,8 @@
    455 void
    556 ve_clearenv (void)
     
    960-#else
    1061-       extern char **environ;
    11 -       environ[0] = NULL;
     62        if (environ != NULL)
     63                environ[0] = NULL;
    1264-#endif
    13 +       unsetenv (NULL);
    1465 }
    1566 
Note: See TracChangeset for help on using the changeset viewer.