Changeset 7531 for trunk/dports
- Timestamp:
- Jun 16, 2004, 12:49:52 PM (20 years ago)
- 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:06olegb Exp $1 # $Id: Portfile,v 1.3 2004/06/16 12:49:51 olegb Exp $ 2 2 PortSystem 1.0 3 3 name genius 4 version 0.6. 04 version 0.6.1 5 5 description Genius is a calculator program. 6 6 long_description Genius is a calculator program similiar in some aspects to \ … … 12 12 categories gnome math 13 13 platforms darwin 14 homepage http://www. 5z.com/jirka/genius.html14 homepage http://www.jirka.org/genius.html 15 15 master_sites http://ftp.5z.com/pub/genius/ \ 16 16 gnome:sources/genius/0.6 17 checksums md5 84a20037c91c48ed8ceea2d6a5097ea217 checksums md5 f6bb8357593f8a51aac1e7eae4f8ad91 18 18 patchfiles patch_calc.c patch_ve-misc.c 19 19 depends_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 @@ 4 55 void 5 56 ve_clearenv (void) … … 9 60 -#else 10 61 - extern char **environ; 11 - environ[0] = NULL; 62 if (environ != NULL) 63 environ[0] = NULL; 12 64 -#endif 13 + unsetenv (NULL);14 65 } 15 66
Note: See TracChangeset
for help on using the changeset viewer.