ports/76386: Update port: audio/lindele to 0.1.1

Jean-Yves Lefort jylefort at brutele.be
Tue Jan 18 01:50:28 UTC 2005


>Number:         76386
>Category:       ports
>Synopsis:       Update port: audio/lindele to 0.1.1
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jan 18 01:50:26 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Jean-Yves Lefort
>Release:        FreeBSD 5.3-RELEASE i386
>Organization:
>Environment:
System: FreeBSD jsite.lefort.net 5.3-RELEASE FreeBSD 5.3-RELEASE #0: Thu Dec 2 15:08:28 CET 2004 jylefort at jsite.lefort.net:/usr/obj/usr/src/sys/JSITE i386
>Description:
>How-To-Repeat:
>Fix:
diff -ruN /usr/ports/audio/lindele/Makefile lindele/Makefile
--- /usr/ports/audio/lindele/Makefile	Mon Nov  8 05:30:27 2004
+++ lindele/Makefile	Tue Jan 18 02:45:41 2005
@@ -6,8 +6,7 @@
 #
 
 PORTNAME=		lindele
-PORTVERSION=		0.1.0
-PORTREVISION=		3
+PORTVERSION=		0.1.1
 CATEGORIES=		audio
 MASTER_SITES=		http://download.gna.org/${PORTNAME}/
 
@@ -19,15 +18,17 @@
 			tag:${PORTSDIR}/audio/taglib
 
 USE_X_PREFIX=		yes
+USE_REINPLACE=		yes
 USE_GNOME=		gnomehack gnomeprefix libgnomeui gstreamerplugins
 GNU_CONFIGURE=		yes
 CONFIGURE_ENV=		CPPFLAGS="-I${LOCALBASE}/include" \
 			LDFLAGS="-L${LOCALBASE}/lib"
 
-.include <bsd.port.pre.mk>
+post-patch:
+	@${REINPLACE_CMD} -e 's|musicbox|musicbox-tag-editor|g' \
+		${WRKSRC}/src/gui.c \
+		${WRKSRC}/src/lindele.c
+	@${REINPLACE_CMD} -e 's|@prefix@/share|@datadir@|' \
+		${WRKSRC}/data/lindele.glade.in
 
-.if ${OSVERSION} >= 502126
-BROKEN=			"Does not compile on FreeBSD >= 5.x"
-.endif
-
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff -ruN /usr/ports/audio/lindele/distinfo lindele/distinfo
--- /usr/ports/audio/lindele/distinfo	Wed Jul 28 19:03:20 2004
+++ lindele/distinfo	Tue Jan 18 02:21:02 2005
@@ -1,2 +1,2 @@
-MD5 (lindele-0.1.0.tar.gz) = f86c1b6b846357f6fa5778286a9ab869
-SIZE (lindele-0.1.0.tar.gz) = 168128
+MD5 (lindele-0.1.1.tar.gz) = 6d5387fd607fe0516bcc3ddd84dc4a77
+SIZE (lindele-0.1.1.tar.gz) = 168572
diff -ruN /usr/ports/audio/lindele/files/patch-src::gui.c lindele/files/patch-src::gui.c
--- /usr/ports/audio/lindele/files/patch-src::gui.c	Wed Jul 28 19:03:20 2004
+++ lindele/files/patch-src::gui.c	Tue Jan 18 02:32:19 2005
@@ -1,56 +1,10 @@
---- src/gui.c.orig	Mon Jul 26 22:14:52 2004
-+++ src/gui.c	Tue Jul 27 00:47:21 2004
-@@ -26,6 +26,7 @@
+--- src/gui.c.orig	Tue Jan 18 02:32:02 2005
++++ src/gui.c	Tue Jan 18 02:32:04 2005
+@@ -303,7 +303,6 @@
  
- void on_about_activate(GtkMenuItem *menu, Lindele *l)
+ gboolean on_tree_popup_menu (GtkWidget *widget)
  {
-+    l->about = do_about();
-     gtk_widget_show (GTK_WIDGET(l->about));
+-    g_printf("got popup-menu signal\n");
+     popup_context_menu(widget,NULL);
+     return TRUE;
  }
- 
-@@ -130,14 +131,14 @@
- 
- void on_properties_activate (GtkWidget *menu, Lindele *l)
- {
--    if(g_file_test(g_find_program_in_path("musicbox"),G_FILE_TEST_IS_EXECUTABLE))
-+    if(g_file_test(g_find_program_in_path("musicbox-tag-editor"),G_FILE_TEST_IS_EXECUTABLE))
-     {
--        g_printf("EXECUTE: %s\n",g_strconcat("musicbox \"",playlist_get_current_filepath(l),"\"",NULL));
--        gnome_execute_shell(NULL,g_strconcat("musicbox \"",playlist_get_current_filepath(l),"\"",NULL));
-+        g_printf("EXECUTE: %s\n",g_strconcat("musicbox-tag-editor \"",playlist_get_current_filepath(l),"\"",NULL));
-+        gnome_execute_shell(NULL,g_strconcat("musicbox-tag-editor \"",playlist_get_current_filepath(l),"\"",NULL));
-     }
-     else
-     {
--        g_printf("musicbox is not installed on your system\n.");
-+        g_printf("musicbox-tag-editor is not installed on your system\n.");
-     }
- }
- 
-@@ -385,13 +386,15 @@
- {
-     GtkTreeViewColumn *column;
-     GtkCellRenderer *cellrenderer;
-+    gchar* gladepath;
-     
-     l->mmkeys = mmkeys_new();
-     l->player = init_player();
--    l->about = do_about();
-     l->playlist_num = 0;
-+    l->random = FALSE;
-+    l->repeat = FALSE;
- 
--    gchar* gladepath = g_strconcat(DATADIR,"/lindele/lindele.glade",NULL);
-+    gladepath = g_strconcat(DATADIR,"/lindele/lindele.glade",NULL);
- 	//gchar* gladepath = g_strconcat("/home/link/Hacking/lindele/lindele-work/data/lindele.glade",NULL);
- 	
- 	l->xml = glade_xml_new (gladepath, NULL, NULL);
-@@ -468,7 +471,7 @@
- 	
- 	/* Disable the preferences, since its not implemented. */
- 	gtk_widget_set_sensitive(GTK_WIDGET(glade_xml_get_widget(l->xml,"m_preferences")),FALSE);
--	if(! g_file_test(g_find_program_in_path("musicbox"),G_FILE_TEST_IS_EXECUTABLE))
-+	if(! g_file_test(g_find_program_in_path("musicbox-tag-editor"),G_FILE_TEST_IS_EXECUTABLE))
- 	    gtk_widget_set_sensitive(GTK_WIDGET(glade_xml_get_widget(l->xml,"m_properties")),FALSE);
- 	
- 	update_buttons(l);
diff -ruN /usr/ports/audio/lindele/files/patch-src::lindele.c lindele/files/patch-src::lindele.c
--- /usr/ports/audio/lindele/files/patch-src::lindele.c	Thu Jan  1 01:00:00 1970
+++ lindele/files/patch-src::lindele.c	Tue Jan 18 02:30:42 2005
@@ -0,0 +1,19 @@
+--- src/lindele.c.orig	Tue Jan 18 02:30:18 2005
++++ src/lindele.c	Tue Jan 18 02:30:28 2005
+@@ -82,6 +82,7 @@
+     const gchar *documenters[] = {NULL};
+     const gchar *translator_credits = NULL;
+     GdkPixbuf *logo_pixbuf = gdk_pixbuf_new_from_file(LINDELE_PNG,NULL);
++    gchar *gladepath;
+     
+     object->mmkeys = mmkeys_new();
+     object->player = init_player();
+@@ -90,7 +91,7 @@
+     object->random = FALSE;
+     object->repeat = FALSE;
+ 
+-    gchar* gladepath = g_strconcat(DATADIR,"/lindele/lindele.glade",NULL);
++    gladepath = g_strconcat(DATADIR,"/lindele/lindele.glade",NULL);
+ 	//gchar* gladepath = g_strconcat("/home/link/Hacking/lindele/lindele-head/data/lindele.glade",NULL);
+ 	
+ 	object->xml = glade_xml_new (gladepath, NULL, NULL);
diff -ruN /usr/ports/audio/lindele/files/patch-src::main.c lindele/files/patch-src::main.c
--- /usr/ports/audio/lindele/files/patch-src::main.c	Wed Jul 28 19:03:20 2004
+++ lindele/files/patch-src::main.c	Tue Jan 18 02:25:08 2005
@@ -1,19 +1,20 @@
---- src/main.c.orig	Mon Jul 26 22:14:22 2004
-+++ src/main.c	Mon Jul 26 22:14:39 2004
+--- src/main.c.orig	Tue Jan 18 02:24:29 2005
++++ src/main.c	Tue Jan 18 02:24:53 2005
 @@ -21,6 +21,8 @@
  int
  main (int argc, char *argv[])
  {
-+    Lindele lindele;
++    Lindele *lindele;
 +
      gst_init(&argc, &argv);
      glade_init();
      gnome_program_init ("lindele", VERSION,
-@@ -28,7 +30,6 @@
+@@ -28,7 +30,7 @@
  		    argc, argv,
  		    GNOME_PARAM_APP_DATADIR, DATADIR, NULL);
      
--    Lindele lindele;
-     init_lindele(&lindele);
+-    Lindele *lindele = lindele_new();
++    lindele = lindele_new();
      
      gtk_main();
+     
diff -ruN /usr/ports/audio/lindele/files/patch-src::playlist.c lindele/files/patch-src::playlist.c
--- /usr/ports/audio/lindele/files/patch-src::playlist.c	Wed Jul 28 19:03:20 2004
+++ lindele/files/patch-src::playlist.c	Tue Jan 18 02:26:10 2005
@@ -1,14 +1,10 @@
---- src/playlist.c.orig	Mon Jul 26 22:15:56 2004
-+++ src/playlist.c	Mon Jul 26 22:16:13 2004
-@@ -458,10 +458,10 @@
+--- src/playlist.c.orig	Tue Jan 18 02:25:55 2005
++++ src/playlist.c	Tue Jan 18 02:25:57 2005
+@@ -458,7 +458,6 @@
  void
  popup_context_menu(GtkWidget *widget, GdkEventButton *event)
  {
 -    g_printf("entry into popup_context_menu\n");
      GtkWidget *menu,*menuitem;
      int button, event_time;
-     
-+    g_printf("entry into popup_context_menu\n");
-     menu = gtk_menu_new ();
-     g_signal_connect (menu,"deactivate",G_CALLBACK(gtk_widget_destroy),NULL);
      
diff -ruN /usr/ports/audio/lindele/pkg-plist lindele/pkg-plist
--- /usr/ports/audio/lindele/pkg-plist	Wed Jul 28 19:03:20 2004
+++ lindele/pkg-plist	Tue Jan 18 02:38:33 2005
@@ -1,7 +1,6 @@
 bin/lindele
 share/gnome/applications/lindele.desktop
 share/gnome/lindele/lindele.glade
-share/gnome/lindele/lindele.png
 share/gnome/lindele/load.png
 share/gnome/lindele/next.png
 share/gnome/lindele/pause.png
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list