diff options
author | wg <wg@FreeBSD.org> | 2013-06-21 00:36:11 +0800 |
---|---|---|
committer | wg <wg@FreeBSD.org> | 2013-06-21 00:36:11 +0800 |
commit | f2fc098c3e5c6b9bbaf0083817c98e40827c3256 (patch) | |
tree | f04d9523dad9401e83fd15e8aa81c5dd18a59dcc /x11/menu-cache | |
parent | b24fba4fde15b4ba301ff8425d125e983e0e33c9 (diff) | |
download | freebsd-ports-gnome-f2fc098c3e5c6b9bbaf0083817c98e40827c3256.tar.gz freebsd-ports-gnome-f2fc098c3e5c6b9bbaf0083817c98e40827c3256.tar.zst freebsd-ports-gnome-f2fc098c3e5c6b9bbaf0083817c98e40827c3256.zip |
x11/menu-cache: update to 0.4.1
- Update to 0.4.1 [1]
- Trim Makefile header [1]
- Pass maintainership to submitter [1]
- Bump PORTREVISION of dependent ports
PR: ports/179711 [1]
Submitted by: nemysis <nemysis@gmx.ch>
Diffstat (limited to 'x11/menu-cache')
-rw-r--r-- | x11/menu-cache/Makefile | 16 | ||||
-rw-r--r-- | x11/menu-cache/distinfo | 4 | ||||
-rw-r--r-- | x11/menu-cache/files/patch-libmenu-cache__menu-cache.c | 20 | ||||
-rw-r--r-- | x11/menu-cache/files/patch-menu-cached.c | 32 | ||||
-rw-r--r-- | x11/menu-cache/pkg-plist | 11 |
5 files changed, 14 insertions, 69 deletions
diff --git a/x11/menu-cache/Makefile b/x11/menu-cache/Makefile index d03a33e360b8..75025f31cfef 100644 --- a/x11/menu-cache/Makefile +++ b/x11/menu-cache/Makefile @@ -1,23 +1,21 @@ -# New ports collection makefile for: x11/menu-cache -# Date created: 23 Sept 2010 -# Whom: Kris Moore <kmoore@freebsd.org> -# +# Created by: Kris Moore <kmoore@freebsd.org> # $FreeBSD$ -# PORTNAME= menu-cache -PORTVERSION= 0.3.3 +PORTVERSION= 0.4.1 CATEGORIES= x11 MASTER_SITES= SF/lxde/menu-cache/menu-cache%20${PORTVERSION}/ -MAINTAINER= ports@FreeBSD.org +MAINTAINER= nemysis@gmx.ch COMMENT= The menu-cache portion of LXDE -USE_GNOME= gnomehack gtk20 pkgconfig +USES= pkgconfig +USE_GNOME= gnomehack gtk20 USE_AUTOTOOLS= libtool -USE_LDCONFIG= yes USE_GMAKE= yes +USE_LDCONFIG= yes USE_FAM= yes + CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib diff --git a/x11/menu-cache/distinfo b/x11/menu-cache/distinfo index e9fe117eaf9e..ba0e660a7bd0 100644 --- a/x11/menu-cache/distinfo +++ b/x11/menu-cache/distinfo @@ -1,2 +1,2 @@ -SHA256 (menu-cache-0.3.3.tar.gz) = 07241c1f5f371b426d3b0a6e571a86184ec6256bdd7ead7a4da866cd10f25955 -SIZE (menu-cache-0.3.3.tar.gz) = 392291 +SHA256 (menu-cache-0.4.1.tar.gz) = 4fa9408e353fedba5b7314cbf6b6cd06d873a1424e281aa050d88bb9c0a0191e +SIZE (menu-cache-0.4.1.tar.gz) = 412859 diff --git a/x11/menu-cache/files/patch-libmenu-cache__menu-cache.c b/x11/menu-cache/files/patch-libmenu-cache__menu-cache.c deleted file mode 100644 index eba3d912f996..000000000000 --- a/x11/menu-cache/files/patch-libmenu-cache__menu-cache.c +++ /dev/null @@ -1,20 +0,0 @@ ---- ./libmenu-cache/menu-cache.c.orig 2012-03-18 14:12:13.000000000 +1030 -+++ ./libmenu-cache/menu-cache.c 2012-03-18 14:13:02.000000000 +1030 -@@ -226,7 +226,7 @@ - - /* file name */ - if( G_UNLIKELY( ! fgets( line, G_N_ELEMENTS(line) - 1, f ) )) -- return; -+ return NULL; - len = strlen( line ); - if( G_LIKELY(len > 1) ) - item->file_name = g_strndup( line, len - 1 ); -@@ -240,7 +240,7 @@ - - /* desktop file dir */ - if( G_UNLIKELY( ! fgets( line, G_N_ELEMENTS(line) - 1, f ) )) -- return; -+ return NULL; - idx = atoi( line ); - if( G_LIKELY( idx >=0 && idx < cache->n_all_used_files ) ) - item->file_dir = cache->all_used_files[ idx ] + 1; diff --git a/x11/menu-cache/files/patch-menu-cached.c b/x11/menu-cache/files/patch-menu-cached.c deleted file mode 100644 index 0c191f996116..000000000000 --- a/x11/menu-cache/files/patch-menu-cached.c +++ /dev/null @@ -1,32 +0,0 @@ ---- menu-cache-daemon/menu-cached.c.o 2011-03-17 10:58:03.876822788 -0400 -+++ menu-cache-daemon/menu-cached.c 2011-03-17 10:58:49.355824755 -0400 -@@ -341,6 +341,29 @@ - GFileMonitorEvent evt, Cache* cache ) - { - /* DEBUG("file %s is changed (%d).", g_file_get_path(gf), evt); */ -+ -+ if ( evt == G_FILE_MONITOR_EVENT_DELETED ) -+ { -+ int idx; -+ /* dirty hack: get index of the monitor in array */ -+ for(idx = 0; idx < cache->n_files; ++idx) -+ { -+ if(mon == cache->mons[idx]) -+ break; -+ } -+ -+ /* Check if this file or directory was already removed from the cache */ -+ char* changed_file = g_file_get_path(gf); -+ char* dir_path = cache->files[idx]+1; -+ int len = strlen(dir_path); -+ char* base_name = changed_file + len + 1; -+ gboolean in_cache = is_desktop_file_in_cache(cache, idx, g_file_get_path(gf)); -+ if( ! in_cache ) { /* Means this file was already deleted, no need to refresh cache */ -+ DEBUG("files are changed, but no re-generation is needed."); -+ return; -+ } -+ } -+ - /* if( mon != cache->cache_mon ) */ - { - /* Optimization: Some files in the dir are changed, but it diff --git a/x11/menu-cache/pkg-plist b/x11/menu-cache/pkg-plist index fc4278c0de6d..876c8c45bdcf 100644 --- a/x11/menu-cache/pkg-plist +++ b/x11/menu-cache/pkg-plist @@ -1,10 +1,9 @@ -lib/libmenu-cache.so -lib/libmenu-cache.so.1 -lib/libmenu-cache.la +include/menu-cache/menu-cache.h lib/libmenu-cache.a +lib/libmenu-cache.la +lib/libmenu-cache.so +lib/libmenu-cache.so.2 libdata/pkgconfig/libmenu-cache.pc -libexec/menu-cached libexec/menu-cache-gen -include/menu-cache/menu-cache.h +libexec/menu-cached @dirrm include/menu-cache -@dirrmtry libdata/pkgconfig |