pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/x11/ftmenu Fluxbox Tray Menu



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e9d4e4e79f9a
branches:  trunk
changeset: 542364:e9d4e4e79f9a
user:      sborrill <sborrill%pkgsrc.org@localhost>
date:      Tue May 13 21:36:14 2008 +0000

description:
Fluxbox Tray Menu

If you want a fast way to reach your Fluxbox menus when you're using all
your screen, your problems are over.

Now you can use the Fluxbox Tray Menu to put a icon on your toolbar, and
when clicking with the left button, your Fluxbox menus will appear!

diffstat:

 x11/ftmenu/DESCR            |   7 +++++++
 x11/ftmenu/MESSAGE          |  14 ++++++++++++++
 x11/ftmenu/Makefile         |  25 +++++++++++++++++++++++++
 x11/ftmenu/PLIST            |   4 ++++
 x11/ftmenu/distinfo         |   6 ++++++
 x11/ftmenu/patches/patch-aa |  31 +++++++++++++++++++++++++++++++
 6 files changed, 87 insertions(+), 0 deletions(-)

diffs (111 lines):

diff -r 7ff6cc3027af -r e9d4e4e79f9a x11/ftmenu/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/ftmenu/DESCR  Tue May 13 21:36:14 2008 +0000
@@ -0,0 +1,7 @@
+Fluxbox Tray Menu
+
+If you want a fast way to reach your Fluxbox menus when you're using all
+your screen, your problems are over.
+
+Now you can use the Fluxbox Tray Menu to put a icon on your toolbar, and
+when clicking with the left button, your Fluxbox menus will appear!
diff -r 7ff6cc3027af -r e9d4e4e79f9a x11/ftmenu/MESSAGE
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/ftmenu/MESSAGE        Tue May 13 21:36:14 2008 +0000
@@ -0,0 +1,14 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1.1.1 2008/05/13 21:36:14 sborrill Exp $
+
+To use ftmenu, first define an icon image in the same way you use in the
+.fluxbox/menu file to handle icons (i.e. a <full icon path here> string).
+Define the icon image after the [begin] string, at the start of the menu file.
+
+For example:
+
+[begin] (fluxbox) <${PREFIX}/share/ftmenu/fb.xpm>
+
+You can then start ftmenu.
+
+===========================================================================
diff -r 7ff6cc3027af -r e9d4e4e79f9a x11/ftmenu/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/ftmenu/Makefile       Tue May 13 21:36:14 2008 +0000
@@ -0,0 +1,25 @@
+# $NetBSD: Makefile,v 1.1.1.1 2008/05/13 21:36:14 sborrill Exp $
+#
+
+DISTNAME=      ftmenu-0.3
+
+CATEGORIES=    x11
+MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=ftmenu/}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      http://ftmenu.sourceforge.net/
+COMMENT=       Fluxbox Tray Menu
+
+GNU_CONFIGURE=         YES
+
+USE_LANGUAGES+=        c c++
+
+.include "../../mk/bsd.prefs.mk"
+
+do-install:
+       ${INSTALL_PROGRAM} ${WRKSRC}/src/ftmenu ${PREFIX}/bin
+       ${INSTALL_DATA_DIR} ${PREFIX}/share/ftmenu
+       ${INSTALL_DATA} ${WRKSRC}/img/fb.xpm ${PREFIX}/share/ftmenu/fb.xpm
+
+.include "../../x11/gtk2/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 7ff6cc3027af -r e9d4e4e79f9a x11/ftmenu/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/ftmenu/PLIST  Tue May 13 21:36:14 2008 +0000
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2008/05/13 21:36:14 sborrill Exp $
+bin/ftmenu
+share/ftmenu/fb.xpm
+@dirrm share/ftmenu
diff -r 7ff6cc3027af -r e9d4e4e79f9a x11/ftmenu/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/ftmenu/distinfo       Tue May 13 21:36:14 2008 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2008/05/13 21:36:14 sborrill Exp $
+
+SHA1 (ftmenu-0.3.tar.gz) = fa115f85996fbd3b22e7f2d5ba259dab9f1d7877
+RMD160 (ftmenu-0.3.tar.gz) = 4f2cba2ba572c064f2735d0b6f9c9c773caedcef
+Size (ftmenu-0.3.tar.gz) = 83706 bytes
+SHA1 (patch-aa) = 7edc7e5972b4b093871e61541cca1404de072f8c
diff -r 7ff6cc3027af -r e9d4e4e79f9a x11/ftmenu/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/ftmenu/patches/patch-aa       Tue May 13 21:36:14 2008 +0000
@@ -0,0 +1,31 @@
+$NetBSD: patch-aa,v 1.1.1.1 2008/05/13 21:36:14 sborrill Exp $
+
+--- src/ftmenu.c.orig  2008-05-13 21:49:29.000000000 +0100
++++ src/ftmenu.c       2008-05-13 22:24:01.000000000 +0100
+@@ -178,7 +178,7 @@
+       regcomp(&reg_command ,"{.*}"           ,0);
+ 
+       // find the menu file   
+-      while((nchars=getline(&line,&line_len,file))>0){
++      while(fgets(line, MAX_LINE_LENGTH, file) != NULL) {
+               if(regexec(&reg_file,line,0,NULL,0)==0){
+                       g_strstrip(line);
+                       line = strchr(line,':');                // break into tokens
+@@ -195,7 +195,7 @@
+ 
+       // read the menu file
+       file = fopen(menufile,"r");
+-      while((nchars=getline(&line,&line_len,file))>0){
++      while(fgets(line, MAX_LINE_LENGTH, file) != NULL) {
+               // finds the menu title
+               if(regexec(&reg_begin,line,0,NULL,0)==0){
+                       if(regexec(&reg_paren,line,(size_t) 1,exp_match,0)==0){
+@@ -226,7 +226,7 @@
+                       menu_depth--;           
+       }
+       fclose(file);
+-      g_free(&line);
++      g_free(line);
+ 
+       regfree(&reg_file);
+       regfree(&reg_begin);



Home | Main Index | Thread Index | Old Index