ports/180710: [MAINTAINER] x11/menu-cache: update to 0.5.0

nemysis nemysis at gmx.ch
Sun Jul 21 01:00:00 UTC 2013


>Number:         180710
>Category:       ports
>Synopsis:       [MAINTAINER] x11/menu-cache: update to 0.5.0
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jul 21 01:00:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     nemysis
>Release:        FreeBSD 9.1-RELEASE-p10 amd64
>Organization:
>Environment:
System: FreeBSD FreeBSD_Ports 9.1-RELEASE-p10 FreeBSD 9.1-RELEASE-p10 #0: Fri Jun 28 19:52:22 UTC 2013
>Description:

- Update to 0.5.0
- Upstream have fixed in Sources LXDE menu bug,
  removed not more needed patch files/patch-menu-cache-daemon-menu-cached.c
- Trim pkg-plist

Generated and tested manually, tested with port test and with RedPorts, sent with FreeBSD Port Tools 0.99_8 (mode: update, diff: ports)
>How-To-Repeat:

Build log

https://redports.org/buildarchive/20130721003901-26260/

>Fix:

--- menu-cache-0.5.0.patch begins here ---
diff -ruN /usr/ports/x11/menu-cache/Makefile ./Makefile
--- /usr/ports/x11/menu-cache/Makefile	2013-07-03 15:42:03.000000000 +0200
+++ ./Makefile	2013-07-21 02:43:03.000000000 +0200
@@ -2,10 +2,9 @@
 # $FreeBSD: head/x11/menu-cache/Makefile 322225 2013-07-03 12:38:31Z wg $
 
 PORTNAME=	menu-cache
-PORTVERSION=	0.4.1
-PORTREVISION=	1
+PORTVERSION=	0.5.0
 CATEGORIES=	x11
-MASTER_SITES=	SF/lxde/menu-cache/menu-cache%20${PORTVERSION}/
+MASTER_SITES=	SF/lxde/menu-cache/menu-cache%20${PORTVERSION:S/.0/.x/}/
 
 MAINTAINER=	nemysis at gmx.ch
 COMMENT=	The menu-cache portion of LXDE
diff -ruN /usr/ports/x11/menu-cache/distinfo ./distinfo
--- /usr/ports/x11/menu-cache/distinfo	2013-06-20 21:56:58.000000000 +0200
+++ ./distinfo	2013-07-21 02:16:23.000000000 +0200
@@ -1,2 +1,2 @@
-SHA256 (menu-cache-0.4.1.tar.gz) = 4fa9408e353fedba5b7314cbf6b6cd06d873a1424e281aa050d88bb9c0a0191e
-SIZE (menu-cache-0.4.1.tar.gz) = 412859
+SHA256 (menu-cache-0.5.0.tar.gz) = 875a7441b34bb24debc1c8017d74d59987d7a704c4c023e81a0b4ebcc2d7904a
+SIZE (menu-cache-0.5.0.tar.gz) = 406105
diff -ruN /usr/ports/x11/menu-cache/files/patch-menu-cache-daemon-menu-cached.c ./files/patch-menu-cache-daemon-menu-cached.c
--- /usr/ports/x11/menu-cache/files/patch-menu-cache-daemon-menu-cached.c	2013-07-03 15:42:03.000000000 +0200
+++ ./files/patch-menu-cache-daemon-menu-cached.c	1970-01-01 01:00:00.000000000 +0100
@@ -1,46 +0,0 @@
---- menu-cache-daemon/menu-cached.c.orig	2012-11-14 09:07:36.000000000 +0100
-+++ menu-cache-daemon/menu-cached.c	2013-07-01 00:02:26.000000000 +0200
-@@ -121,7 +121,7 @@
- static gboolean read_all_used_files( FILE* f, int* n_files, char*** used_files )
- {
-     char line[ 4096 ];
--    int i, n;
-+    int i, n, x;
-     char** files;
-     int ver_maj, ver_min;
- 
-@@ -141,20 +141,31 @@
-     if( ! fgets( line, G_N_ELEMENTS(line), f ) )
-         return FALSE;
- 
--    *n_files = n = atoi( line );
-+    n = atoi( line );
-     files = g_new0( char*, n + 1 );
- 
--    for( i = 0; i < n; ++i )
-+    for( i = 0, x = 0; i < n; ++i )
-     {
-         int len;
-+        GFile *gfile;
-         if( ! fgets( line, G_N_ELEMENTS(line), f ) )
-             return FALSE;
- 
-         len = strlen( line );
-         if( len <= 1 )
-             return FALSE;
--        files[ i ] = g_strndup( line, len - 1 ); /* don't include \n */
-+        files[ x ] = g_strndup( line, len - 1 ); /* don't include \n */
-+        gfile = g_file_new_for_path(files[x]+1);
-+        if (g_file_query_exists(gfile, NULL))
-+            x++;
-+        else
-+        {
-+            DEBUG("ignoring not existant file from menu-cache-gen: %s", files[x]);
-+            g_free(files[x]);
-+        }
-+        g_object_unref(gfile);
-     }
-+    *n_files = x;
-     *used_files = files;
-     return TRUE;
- }
diff -ruN /usr/ports/x11/menu-cache/pkg-plist ./pkg-plist
--- /usr/ports/x11/menu-cache/pkg-plist	2013-06-20 21:56:58.000000000 +0200
+++ ./pkg-plist	2013-07-21 02:20:14.000000000 +0200
@@ -2,8 +2,9 @@
 lib/libmenu-cache.a
 lib/libmenu-cache.la
 lib/libmenu-cache.so
-lib/libmenu-cache.so.2
+lib/libmenu-cache.so.3
 libdata/pkgconfig/libmenu-cache.pc
-libexec/menu-cache-gen
-libexec/menu-cached
+libexec/menu-cache/menu-cache-gen
+libexec/menu-cache/menu-cached
+ at dirrm libexec/menu-cache
 @dirrm include/menu-cache
--- menu-cache-0.5.0.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-ports-bugs mailing list