summaryrefslogtreecommitdiffstats
path: root/devel/gnome-vfs
diff options
context:
space:
mode:
authorade <ade@FreeBSD.org>2001-01-30 04:39:20 +0000
committerade <ade@FreeBSD.org>2001-01-30 04:39:20 +0000
commita05b6760e4141d95fc2d543d47baba1fe97a8b9b (patch)
tree6ef884f294969263c75370a4a40f571e9341c6ec /devel/gnome-vfs
parenta8a7b5e2c50148152b5937a0d1999c85ccf6d856 (diff)
downloadFreeBSD-ports-a05b6760e4141d95fc2d543d47baba1fe97a8b9b.zip
FreeBSD-ports-a05b6760e4141d95fc2d543d47baba1fe97a8b9b.tar.gz
Update to 0.5
Diffstat (limited to 'devel/gnome-vfs')
-rw-r--r--devel/gnome-vfs/Makefile7
-rw-r--r--devel/gnome-vfs/distinfo2
-rw-r--r--devel/gnome-vfs/files/patch-ah139
-rw-r--r--devel/gnome-vfs/pkg-plist2
4 files changed, 145 insertions, 5 deletions
diff --git a/devel/gnome-vfs/Makefile b/devel/gnome-vfs/Makefile
index 1b89518..52a64d5 100644
--- a/devel/gnome-vfs/Makefile
+++ b/devel/gnome-vfs/Makefile
@@ -6,8 +6,7 @@
#
PORTNAME= gnomevfs
-PORTVERSION= 0.4.2
-PORTREVISION= 1
+PORTVERSION= 0.5
CATEGORIES= devel gnome
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= unstable/sources/gnome-vfs
@@ -24,7 +23,7 @@ USE_X_PREFIX= yes
USE_GNOME= yes
USE_LIBTOOL= yes
INSTALL_SHLIBS= yes
-CONFIGURE_ARGS= --disable-gconf
+#CONFIGURE_ARGS= --disable-gconf
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LIBS="-L${LOCALBASE}/lib"
@@ -36,5 +35,7 @@ pre-patch:
@find ${WRKSRC} -name "Makefile.in" | xargs ${PERL} -pi -e \
's|\$\(datadir\)/gnome/|\$\(datadir\)/|g ; \
s|\$\(datadir\)/locale|\$\(prefix\)/share/locale|g'
+ @find ${WRKSRC} -name 'xml-i18n-*' | xargs ${PERL} -pi -e \
+ 's|/usr/local/bin/perl|${PERL}|g'
.include <bsd.port.mk>
diff --git a/devel/gnome-vfs/distinfo b/devel/gnome-vfs/distinfo
index 397dc52..fe36b7b 100644
--- a/devel/gnome-vfs/distinfo
+++ b/devel/gnome-vfs/distinfo
@@ -1 +1 @@
-MD5 (gnome-vfs-0.4.2.tar.gz) = ecb37aeca042c846322fc7cc894be6ae
+MD5 (gnome-vfs-0.5.tar.gz) = 7cdadc7943349bd36cb8370654937774
diff --git a/devel/gnome-vfs/files/patch-ah b/devel/gnome-vfs/files/patch-ah
new file mode 100644
index 0000000..66ce9c7
--- /dev/null
+++ b/devel/gnome-vfs/files/patch-ah
@@ -0,0 +1,139 @@
+--- libgnomevfs-pthread/gnome-vfs-thread-pool.c.orig Tue Jan 16 15:46:59 2001
++++ libgnomevfs-pthread/gnome-vfs-thread-pool.c Mon Jan 29 11:04:11 2001
+@@ -45,3 +45,7 @@
+
++#ifdef __FreeBSD__
++static pthread_mutex_t thread_list_lock;
++#else
+ static pthread_mutex_t thread_list_lock = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
++#endif
+
+@@ -176,2 +180,19 @@
+ GnomeVFSThreadState *available_thread;
++
++#ifdef __FreeBSD__
++ static int init = 0;
++
++ if (init == 0) {
++ pthread_mutexattr_t attr;
++
++ if (pthread_mutexattr_init(&attr) < 0)
++ return -1;
++ if (pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE) < 0)
++ return -1;
++ if (pthread_mutex_init(&thread_list_lock, &attr) < 0)
++ return -1;
++
++ init = 1;
++ }
++#endif
+
+--- libgnomevfs-pthread/gnome-vfs-async-job-map.c.orig Fri Jan 19 12:10:09 2001
++++ libgnomevfs-pthread/gnome-vfs-async-job-map.c Mon Jan 29 11:19:10 2001
+@@ -33,3 +33,7 @@
+ static guint async_job_map_next_id;
++#ifdef __FreeBSD__
++static pthread_mutex_t async_job_map_lock;
++#else
+ static pthread_mutex_t async_job_map_lock = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
++#endif
+ gboolean async_job_map_locked;
+@@ -148,2 +152,28 @@
+
++#ifdef __FreeBSD__
++static void lock_and_load(pthread_mutex_t *mtx)
++{
++ static int init = 0;
++ int rc;
++
++ if (init == 0) {
++ pthread_mutexattr_t attr;
++
++ rc = pthread_mutexattr_init(&attr);
++ g_assert(rc == 0);
++
++ rc = pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
++ g_assert(rc == 0);
++
++ rc = pthread_mutex_init(mtx, &attr);
++ g_assert(rc == 0);
++
++ init = 1;
++ }
++
++ rc = pthread_mutex_lock(mtx);
++ g_assert(rc == 0);
++}
++#endif
++
+ void
+@@ -151,3 +181,7 @@
+ {
++#ifdef __FreeBSD__
++ lock_and_load (&async_job_map_lock);
++#else
+ pthread_mutex_lock (&async_job_map_lock);
++#endif
+ async_job_map_locked = TRUE;
+@@ -180,3 +214,7 @@
+
++#ifdef __FreeBSD__
++ lock_and_load (&async_job_callback_map_lock);
++#else
+ pthread_mutex_lock (&async_job_callback_map_lock);
++#endif
+
+@@ -209,3 +247,7 @@
+
++#ifdef __FreeBSD__
++ lock_and_load (&async_job_callback_map_lock);
++#else
+ pthread_mutex_lock (&async_job_callback_map_lock);
++#endif
+ g_hash_table_insert (async_job_callback_map, GUINT_TO_POINTER (notify_result->callback_id),
+@@ -221,3 +263,7 @@
+ JOB_DEBUG (("removing callback %d ", callback_id));
++#ifdef __FreeBSD__
++ lock_and_load (&async_job_callback_map_lock);
++#else
+ pthread_mutex_lock (&async_job_callback_map_lock);
++#endif
+ g_hash_table_remove (async_job_callback_map, GUINT_TO_POINTER (callback_id));
+@@ -250,3 +296,7 @@
+
++#ifdef __FreeBSD__
++ lock_and_load (&async_job_callback_map_lock);
++#else
+ pthread_mutex_lock (&async_job_callback_map_lock);
++#endif
+ g_hash_table_foreach (async_job_callback_map,
+@@ -261,3 +311,7 @@
+
++#ifdef __FreeBSD__
++ lock_and_load (&async_job_callback_map_lock);
++#else
+ pthread_mutex_lock (&async_job_callback_map_lock);
++#endif
+ g_hash_table_destroy (async_job_callback_map);
+--- modules/ftp-method.c.orig Tue Jan 9 13:54:02 2001
++++ modules/ftp-method.c Mon Jan 29 11:42:30 2001
+@@ -39,2 +39,3 @@
+
++#include <sys/types.h>
+ #include <ctype.h> /* for isspace */
+--- modules/nfs-method.c.orig Sat Dec 30 09:50:36 2000
++++ modules/nfs-method.c Mon Jan 29 11:44:59 2001
+@@ -127,2 +127,3 @@
+ break;
++#ifndef __FreeBSD__
+ } else if (*success == ECOMM) {
+@@ -136,2 +137,3 @@
+ */
++#endif
+ } else if ((rv == RPC_CANTSEND) || /* can't send */
+@@ -140,3 +142,5 @@
+ (rv == RPC_SYSTEMERROR) || /* generic other problem at server */
++#ifndef __FreeBSD__
+ (rv == RPC_RPCBFAILURE) || /* portmapper failed in its call */
++#endif
+ (rv == RPC_CANTDECODEARGS) || /* can't decode arguments */
diff --git a/devel/gnome-vfs/pkg-plist b/devel/gnome-vfs/pkg-plist
index 3e6b095..5210efe 100644
--- a/devel/gnome-vfs/pkg-plist
+++ b/devel/gnome-vfs/pkg-plist
@@ -1,5 +1,4 @@
bin/gnome-vfs-config
-bin/gnome-vfs-gen-mimedb
bin/gnome-vfs-slave
bin/nautilus-mime-type-capplet
etc/gnome-vfs-mime-magic
@@ -31,6 +30,7 @@ include/libgnomevfs/gnome-vfs-method.h
include/libgnomevfs/gnome-vfs-mime-handlers.h
include/libgnomevfs/gnome-vfs-mime-info.h
include/libgnomevfs/gnome-vfs-mime-magic.h
+include/libgnomevfs/gnome-vfs-mime-monitor.h
include/libgnomevfs/gnome-vfs-mime-sniff-buffer-private.h
include/libgnomevfs/gnome-vfs-mime-sniff-buffer.h
include/libgnomevfs/gnome-vfs-mime.h
OpenPOWER on IntegriCloud