diff options
author | sobomax <sobomax@FreeBSD.org> | 2001-10-30 16:12:36 +0800 |
---|---|---|
committer | sobomax <sobomax@FreeBSD.org> | 2001-10-30 16:12:36 +0800 |
commit | 07e3aa0edeb2b11d17e1f564896146222726ee6c (patch) | |
tree | b8329e617f2f912d591ed0816b103f089db33919 /x11-fm/nautilus2/files | |
parent | c41282fd966cadce75d35cd7e14967419d77975f (diff) | |
download | freebsd-ports-gnome-07e3aa0edeb2b11d17e1f564896146222726ee6c.tar.gz freebsd-ports-gnome-07e3aa0edeb2b11d17e1f564896146222726ee6c.tar.zst freebsd-ports-gnome-07e3aa0edeb2b11d17e1f564896146222726ee6c.zip |
Update to 1.0.5. With an updated ORBit it works in 5-CURRENT and 4-STABLE
systems. Some functionality is still missed, though (e.g. Mozilla component
doesn't work), but it is a good start.
Diffstat (limited to 'x11-fm/nautilus2/files')
-rw-r--r-- | x11-fm/nautilus2/files/patch-aa | 24 | ||||
-rw-r--r-- | x11-fm/nautilus2/files/patch-ab | 46 | ||||
-rw-r--r-- | x11-fm/nautilus2/files/patch-al | 21 | ||||
-rw-r--r-- | x11-fm/nautilus2/files/patch-libnautilus-private::nautilus-desktop-file-loader.c | 62 | ||||
-rw-r--r-- | x11-fm/nautilus2/files/patch-libnautilus-private::nautilus-volume-monitor.c | 190 | ||||
-rw-r--r-- | x11-fm/nautilus2/files/patch-ltmain.sh | 18 |
6 files changed, 313 insertions, 48 deletions
diff --git a/x11-fm/nautilus2/files/patch-aa b/x11-fm/nautilus2/files/patch-aa index 81828dcd4400..e5ec45d581c1 100644 --- a/x11-fm/nautilus2/files/patch-aa +++ b/x11-fm/nautilus2/files/patch-aa @@ -1,36 +1,36 @@ $FreeBSD$ ---- configure.orig Tue May 22 15:47:27 2001 -+++ configure Tue May 22 15:55:11 2001 -@@ -3433,7 +3433,7 @@ +--- configure.orig Thu Oct 25 18:17:31 2001 ++++ configure Thu Oct 25 18:18:56 2001 +@@ -7003,7 +7003,7 @@ CC="$_save_cc" -LDFLAGS="$_save_ldflags -L$_mozilla_lib_place $_mozilla_all_nspr_flags -lgtksuperwin" +LDFLAGS="$_save_ldflags -L$_mozilla_lib_place $_mozilla_all_nspr_flags -lstdc++ -lgtksuperwin" + _mozilla_gtk_super_win_libs= echo $ac_n "checking for gdk_superwin_get_type in -lgtksuperwin""... $ac_c" 1>&6 - echo "configure:3439: checking for gdk_superwin_get_type in -lgtksuperwin" >&5 - ac_lib_var=`echo gtksuperwin'_'gdk_superwin_get_type | sed 'y%./+-%__p_%'` -@@ -3475,7 +3475,7 @@ + echo "configure:7010: checking for gdk_superwin_get_type in -lgtksuperwin" >&5 +@@ -7046,7 +7046,7 @@ fi -LDFLAGS="$_save_ldflags -L$_mozilla_lib_place $_mozilla_all_nspr_flags -lgtkembedmoz $_mozilla_xpcom_libs" -+LDFLAGS="$_save_ldflags -L$_mozilla_lib_place $_mozilla_all_nspr_flags -lgtkembedmoz -lgtksuperwin $_mozilla_xpcom_libs" ++LDFLAGS="$_save_ldflags -L$_mozilla_lib_place $_mozilla_all_nspr_flags -lstdc++ -lgtkembedmoz $_mozilla_xpcom_libs" + _mozilla_gtk_moz_embed_libs= echo $ac_n "checking for gtk_moz_embed_get_type in -lgtkembedmoz""... $ac_c" 1>&6 - echo "configure:3481: checking for gtk_moz_embed_get_type in -lgtkembedmoz" >&5 - ac_lib_var=`echo gtkembedmoz'_'gtk_moz_embed_get_type | sed 'y%./+-%__p_%'` -@@ -3483,7 +3483,7 @@ + echo "configure:7053: checking for gtk_moz_embed_get_type in -lgtkembedmoz" >&5 +@@ -7055,7 +7055,7 @@ echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" -LIBS="-lgtkembedmoz $LIBS" +LIBS="-lgtkembedmoz -lgtksuperwin $LIBS" cat > conftest.$ac_ext <<EOF - #line 3489 "configure" + #line 7061 "configure" #include "confdefs.h" -@@ -5472,7 +5472,7 @@ +@@ -9018,7 +9018,7 @@ fi if test x$SCROLLKEEPER_CONFIG = xno; then diff --git a/x11-fm/nautilus2/files/patch-ab b/x11-fm/nautilus2/files/patch-ab index 97f5bd09e83e..2592dcf58891 100644 --- a/x11-fm/nautilus2/files/patch-ab +++ b/x11-fm/nautilus2/files/patch-ab @@ -1,37 +1,25 @@ $FreeBSD$ ---- Makefile.in.orig Mon May 14 16:45:52 2001 -+++ Makefile.in Mon May 14 16:45:53 2001 -@@ -675,8 +675,8 @@ - $(mkinstalldirs) $(DESTDIR)/$(prefix)/bin +--- Makefile.in.orig Mon Oct 29 11:36:40 2001 ++++ Makefile.in Mon Oct 29 12:16:14 2001 +@@ -243,7 +243,7 @@ + + bin_SCRIPTS = $(top_builddir)/nautilus-config + +-confexecdir = $(libdir) ++confexecdir = $(sysconfdir) + confexec_DATA = nautilusConf.sh $(NULL) + + ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +@@ -684,8 +684,8 @@ + $(mkinstalldirs) $(DESTDIR)$(prefix)/bin @list='nautilus-clean.sh'; for p in $$list; do\ if test -f $(srcdir)/$$p; then \ -- echo " $(INSTALL_PROGRAM) $(srcdir)/$$p $(DESTDIR)/$(prefix)/bin/$$p"; \ -- $(INSTALL_PROGRAM) $(srcdir)/$$p $(DESTDIR)/$(prefix)/bin/$$p; \ -+ echo " $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)/$(prefix)/bin/$$p"; \ -+ $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)/$(prefix)/bin/$$p; \ +- echo " $(INSTALL_PROGRAM) $(srcdir)/$$p $(DESTDIR)$(prefix)/bin/$$p"; \ +- $(INSTALL_PROGRAM) $(srcdir)/$$p $(DESTDIR)$(prefix)/bin/$$p; \ ++ echo " $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(prefix)/bin/$$p"; \ ++ $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(prefix)/bin/$$p; \ else :; fi; \ done -@@ -688,16 +688,16 @@ - @list='$(EAZEL_LOGOS_ICONS)'; \ - for i in $$list; \ - do \ -- echo $(INSTALL_PROGRAM) $$i $(icondir)/`basename $$i`; \ -- $(INSTALL_PROGRAM) $$i $(icondir)/`basename $$i`; \ -+ echo $(INSTALL_DATA) $$i $(icondir)/`basename $$i`; \ -+ $(INSTALL_DATA) $$i $(icondir)/`basename $$i`; \ - done - - $(mkinstalldirs) $(throbberdir) - @list='$(EAZEL_LOGOS_THROBBER)'; \ - for i in $$list; \ - do \ -- echo $(INSTALL_PROGRAM) $$i $(throbberdir)/`basename $$i`; \ -- $(INSTALL_PROGRAM) $$i $(throbberdir)/`basename $$i`; \ -+ echo $(INSTALL_DATA) $$i $(throbberdir)/`basename $$i`; \ -+ $(INSTALL_DATA) $$i $(throbberdir)/`basename $$i`; \ - done - - # Tell versions [3.59,3.63) of GNU make to not export all variables. diff --git a/x11-fm/nautilus2/files/patch-al b/x11-fm/nautilus2/files/patch-al index 6134eb8abee3..f1c8b076a299 100644 --- a/x11-fm/nautilus2/files/patch-al +++ b/x11-fm/nautilus2/files/patch-al @@ -1,9 +1,16 @@ ---- helper-scripts/Makefile.in.orig Fri Jan 12 12:04:47 2001 -+++ helper-scripts/Makefile.in Fri Jan 12 12:24:05 2001 -@@ -267,4 +267,4 @@ + +$FreeBSD$ + +--- helper-scripts/Makefile.in.orig Thu Oct 25 18:21:43 2001 ++++ helper-scripts/Makefile.in Thu Oct 25 18:22:45 2001 +@@ -328,8 +328,8 @@ + $(mkinstalldirs) $(DESTDIR)$(prefix)/bin + @list='nautilus-verify-rpm.sh nautilus-restore-settings-to-default.sh'; for p in $$list; do\ if test -f $(srcdir)/$$p; then \ -- echo " $(INSTALL_PROGRAM) $(srcdir)/$$p $(DESTDIR)/$(prefix)/bin/$$p"; \ -- $(INSTALL_PROGRAM) $(srcdir)/$$p $(DESTDIR)/$(prefix)/bin/$$p; \ -+ echo " $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)/$(prefix)/bin/$$p"; \ -+ $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)/$(prefix)/bin/$$p; \ +- echo " $(INSTALL_PROGRAM) $(srcdir)/$$p $(DESTDIR)$(prefix)/bin/$$p"; \ +- $(INSTALL_PROGRAM) $(srcdir)/$$p $(DESTDIR)$(prefix)/bin/$$p; \ ++ echo " $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(prefix)/bin/$$p"; \ ++ $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(prefix)/bin/$$p; \ else :; fi; \ + done + diff --git a/x11-fm/nautilus2/files/patch-libnautilus-private::nautilus-desktop-file-loader.c b/x11-fm/nautilus2/files/patch-libnautilus-private::nautilus-desktop-file-loader.c new file mode 100644 index 000000000000..96681a3d1fe9 --- /dev/null +++ b/x11-fm/nautilus2/files/patch-libnautilus-private::nautilus-desktop-file-loader.c @@ -0,0 +1,62 @@ + +$FreeBSD$ + +--- libnautilus-private/nautilus-desktop-file-loader.c.orig Wed Sep 26 16:37:15 2001 ++++ libnautilus-private/nautilus-desktop-file-loader.c Tue Oct 30 09:33:26 2001 +@@ -38,8 +38,10 @@ + #include <errno.h> + #include <ctype.h> + #include <locale.h> +-#include <iconv.h> ++#include <giconv.h> ++#if (defined __FreeBSD__) && (__FreeBSD_version > 500000) + #include <langinfo.h> ++#endif + + typedef struct NautilusDesktopFileSection NautilusDesktopFileSection; + typedef struct NautilusDesktopFileAddition NautilusDesktopFileAddition; +@@ -117,6 +119,44 @@ + const char *value); + static void addition_free (NautilusDesktopFileAddition *addition); + ++#if (defined __FreeBSD__) && (__FreeBSD_version < 500000) ++/* Quick and dirty implementation of nl_langinfo(CODESET) */ ++static char * ++nl_langinfo(void) { ++ char *ret, *s, *cs; ++ static char *cset = NULL; ++ ++ ret = ""; ++ if ((s = setlocale(LC_CTYPE, NULL)) != NULL) { ++ if ((cs = strchr(s, '.')) != NULL) { ++ ret = cs + 1; ++ if (strncmp(ret, "ISO_", 4) == 0) { ++ int slen = strlen(ret); ++ ++ if ((cset = reallocf(cset, slen)) != NULL) { ++ strcpy(cset, "ISO"); ++ strcat(cset, ret + 4); ++ ret = cset; ++ } else ++ ret = ""; ++ } else if (strcmp(ret, "EUC") == 0) { ++ if (strncmp(s, "ja_JP", 5) == 0) ++ ret = "eucJP"; ++ else if (strncmp(s, "ko_KR", 5) == 0) ++ ret = "eucKR"; ++ else if (strncmp(s, "zh_CN", 5) == 0) ++ ret = "eucCN"; ++ } else if (strcmp(ret, "ASCII") == 0) ++ ret = "US-ASCII"; ++ } else if (strcmp(s, "C") == 0 || ++ strcmp(s, "POSIX") == 0 ++ || strstr(s, "ASCII") != NULL) ++ ret = "US-ASCII"; ++ } ++ return ret; ++} ++#define nl_langinfo(x) nl_langinfo() ++#endif + + static NautilusDesktopFile* + nautilus_desktop_file_new (void) diff --git a/x11-fm/nautilus2/files/patch-libnautilus-private::nautilus-volume-monitor.c b/x11-fm/nautilus2/files/patch-libnautilus-private::nautilus-volume-monitor.c new file mode 100644 index 000000000000..0ae5844f5f55 --- /dev/null +++ b/x11-fm/nautilus2/files/patch-libnautilus-private::nautilus-volume-monitor.c @@ -0,0 +1,190 @@ + +$FreeBSD$ + +--- libnautilus-private/nautilus-volume-monitor.c 2001/10/26 06:06:21 1.1 ++++ libnautilus-private/nautilus-volume-monitor.c 2001/10/26 07:39:01 +@@ -60,6 +60,18 @@ + #include <sys/types.h> + #include <unistd.h> + ++#ifdef __FreeBSD__ ++#include <sys/param.h> ++#include <sys/ucred.h> ++#include <sys/mount.h> ++ ++#define HAVE_GETMNTINFO ++#define HAVE_SETFSENT ++#define HAVE_FSTAB_H ++#define FREEBSD_MNT ++#define setmntent(f,m) setfsent() ++#endif ++ + #ifdef HAVE_SYS_VFSTAB_H + #include <sys/vfstab.h> + #else +@@ -104,7 +116,7 @@ + #define MNTOPT_RO "ro" + #endif + +-#ifndef HAVE_SETMNTENT ++#if !defined(HAVE_SETMNTENT) && !defined(HAVE_SETFSENT) + #define setmntent(f,m) fopen(f,m) + #endif + +@@ -495,6 +507,11 @@ + return TRUE; + } + #endif ++#ifdef __FreeBSD__ ++ if (eel_str_has_prefix (ent->f_mntonname, "/.amd_mnt/")) { ++ return TRUE; ++ } ++#endif + + return FALSE; + } +@@ -510,16 +527,18 @@ + static GList * + get_removable_volumes (NautilusVolumeMonitor *monitor) + { ++#ifndef HAVE_SETFSENT + FILE *file; +- GList *volumes; +- MountTableEntry *ent; +- NautilusVolume *volume; ++#else ++ int file; ++ struct fstab *fsent; ++#endif ++ GList *volumes = NULL; ++ MountTableEntry *ent = NULL; ++ NautilusVolume *volume = NULL; + #ifdef HAVE_SYS_MNTTAB_H + MountTableEntry ent_storage; + #endif +- ent = NULL; +- volume = NULL; +- volumes = NULL; + + #ifdef HAVE_GETMNTINFO + int count, index; +@@ -529,16 +548,20 @@ + for (index = 0; index < count; index++) { + if (has_removable_mntent_options (ent + 1)) { + volume = create_volume (ent[index].f_mntfromname, +- ent[index].f_mntoname); ++ ent[index].f_mntonname); + volume->is_removable = TRUE; + volumes = finish_creating_volume_and_prepend +- (monitor, volume, ent[index].f_fstyename, volumes); ++ (monitor, volume, ent[index].f_fstypename, volumes); + } + } + #endif + + file = setmntent (MOUNT_TABLE_PATH, "r"); ++#ifndef HAVE_SETFSENT + if (file == NULL) { ++#else ++ if (file == 0) { ++#endif + return NULL; + } + +@@ -560,9 +583,21 @@ + (monitor, volume, ent->mnt_type, volumes); + } + } ++#elif defined (HAVE_SETFSENT) ++ while ((fsent = getfsent ()) != NULL) { ++ if (strstr (fsent->fs_mntops, "noauto") == 0) { ++ volume = create_volume (fsent->fs_spec, fsent->fs_file); ++ volumes = finish_creating_volume_and_prepend ++ (monitor, volume, fsent->fs_vfstype, volumes); ++ } ++ } + #endif + ++#ifndef HAVE_SETFSENT + fclose (file); ++#else ++ endfsent(); ++#endif + + #ifdef HAVE_CDDA + volume = create_volume (CD_AUDIO_PATH, CD_AUDIO_PATH); +@@ -575,7 +610,7 @@ + return g_list_sort (g_list_reverse (volumes), (GCompareFunc) floppy_sort); + } + +-#ifndef SOLARIS_MNT ++#if !defined(SOLARIS_MNT) && !defined(FREEBSD_MNT) + + static gboolean + volume_is_removable (const NautilusVolume *volume) +@@ -907,23 +942,33 @@ + + + +-#ifdef SOLARIS_MNT ++#if defined(SOLARIS_MNT) || defined(FREEBSD_MNT) + + static GList * + get_mount_list (NautilusVolumeMonitor *monitor) + { +- FILE *fh; + GList *volumes; ++#ifndef HAVE_SETFSENT ++ FILE *fh; + MountTableEntry ent; ++#else ++ int fh; ++ struct fstab *ent; ++#endif + NautilusVolume *volume; + + volumes = NULL; + + fh = setmntent (MOUNT_TABLE_PATH, "r"); ++#ifndef HAVE_SETFSENT + if (fh == NULL) { ++#else ++ if (fh == 0) { ++#endif + return NULL; + } + ++#ifndef HAVE_SETFSENT + while (! getmntent(fh, &ent)) { + volume = create_volume (ent.mnt_special, ent.mnt_mountp); + volume->is_removable = has_removable_mntent_options (&ent); +@@ -932,6 +977,20 @@ + } + + fclose (fh); ++#else ++ while ((ent = getfsent ()) != NULL) { ++ volume = create_volume (ent->fs_spec, ent->fs_file); ++ if (strstr (ent->fs_mntops, "noauto") == 0) ++ volume->is_removable = TRUE; ++ else ++ volume->is_removable = FALSE; ++ volumes = finish_creating_volume_and_prepend ++ (monitor, volume, ent->fs_vfstype, volumes); ++ } ++ ++ endfsent(); ++#endif ++ + + return volumes; + } +@@ -1668,7 +1727,7 @@ + for (node = volume_list; node != NULL; node = node->next) { + volume = node->data; + +-#ifndef SOLARIS_MNT ++#if !defined(SOLARIS_MNT) && !defined(FREEBSD_MNT) + /* These are set up by get_current_mount_list for Solaris. */ + volume->is_removable = volume_is_removable (volume); + #endif diff --git a/x11-fm/nautilus2/files/patch-ltmain.sh b/x11-fm/nautilus2/files/patch-ltmain.sh new file mode 100644 index 000000000000..33bc7983f107 --- /dev/null +++ b/x11-fm/nautilus2/files/patch-ltmain.sh @@ -0,0 +1,18 @@ + +$FreeBSD$ + +--- ltmain.sh 2001/08/27 09:51:26 1.1 ++++ ltmain.sh 2001/08/27 09:51:42 +@@ -4175,10 +4175,12 @@ + fi + + # Install the pseudo-library for information purposes. ++ if /usr/bin/false; then + name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` + instname="$dir/$name"i + $show "$install_prog $instname $destdir/$name" + $run eval "$install_prog $instname $destdir/$name" || exit $? ++ fi + + # Maybe install the static library, too. + test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library" |