Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Apr 2012 09:40:16 GMT
From:      Ivan Klymenko <fidaj@ukr.net>
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/165925: [patch] deskutils/cairo-dock fix many bugs
Message-ID:  <201204090940.q399eGKL055883@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/165925; it has been noted by GNATS.

From: Ivan Klymenko <fidaj@ukr.net>
To: bug-followup@FreeBSD.org, fidaj@ukr.net
Cc:  
Subject: Re: ports/165925: [patch] deskutils/cairo-dock fix many bugs
Date: Mon, 9 Apr 2012 12:32:19 +0300

 --MP_/dGusigWNgBq8/5a8QGI7pjf
 Content-Type: text/plain; charset=US-ASCII
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline
 
 Updated and corrected several errors listed in the following PR:
 http://www.freebsd.org/cgi/query-pr.cgi?pr=166606
 http://www.freebsd.org/cgi/query-pr.cgi?pr=166748
 
       Builgroup:     10-CURRENT/i386
       Log:
       https://redports.org//~fidaj/20120408095044-44073-19208/cairo-dock-2.3.0.3_1.log
 
       Builgroup:     10-CURRENT/amd64
       Log:
       https://redports.org//~fidaj/20120408095049-43262-19209/cairo-dock-2.3.0.3_1.log
 
       Builgroup:     9.0-RELEASE/amd64
       Log:
       https://redports.org//~fidaj/20120408095038-54354-19207/cairo-dock-2.3.0.3_1.log
 
       Builgroup:     9.0-RELEASE/i386
       Log:
       https://redports.org//~fidaj/20120408095033-10313-19206/cairo-dock-2.3.0.3_1.log
 
       Builgroup:     8.2-RELEASE/amd64
       Log:
       https://redports.org//~fidaj/20120408095027-54646-19205/cairo-dock-2.3.0.3_1.log
 
       Builgroup:     8.2-RELEASE/i386
       Log:
       https://redports.org//~fidaj/20120408095019-91237-19204/cairo-dock-2.3.0.3_1.log
 
       Builgroup:     7.4-RELEASE/amd64
       Log:
       https://redports.org//~fidaj/20120408095012-73086-19203/cairo-dock-2.3.0.3_1.log
 
       Builgroup:     7.4-RELEASE/i386
       Log:
       https://redports.org//~fidaj/20120408094958-27430-19202/cairo-dock-2.3.0.3_1.log
 
 --MP_/dGusigWNgBq8/5a8QGI7pjf
 Content-Type: text/plain
 Content-Transfer-Encoding: 7bit
 Content-Disposition: attachment; filename=patch-cairo-dock-update1.txt
 
 diff --git a/cairo-dock/Makefile b/cairo-dock/Makefile
 index 0793f15..61a9264 100644
 --- a/cairo-dock/Makefile
 +++ b/cairo-dock/Makefile
 @@ -7,6 +7,7 @@
  
  PORTNAME=	cairo-dock
  DISTVERSION=	2.3.0~3
 +PORTREVISION=	1
  CATEGORIES=	deskutils
  MASTER_SITES=	http://launchpadlibrarian.net/73753213/
  
 @@ -17,6 +18,7 @@ LIB_DEPENDS=	cairo:${PORTSDIR}/graphics/cairo \
  		curl.6:${PORTSDIR}/ftp/curl \
  		dbus-glib-1.2:${PORTSDIR}/devel/dbus-glib \
  		gtkglext-x11-1.0.0:${PORTSDIR}/x11-toolkits/gtkglext
 +RUN_DEPENDS=	bash:${PORTSDIR}/shells/bash
  
  GNU_CONFIGURE=	yes
  USE_GETTEXT=	yes
 @@ -32,17 +34,5 @@ MANCOMPRESSED=	yes
  post-patch:
  	@${REINPLACE_CMD} -e 's|libdir}/pkgconfig|prefix}/libdata/pkgconfig| ; s|datadir}/man|prefix}/man|' \
  		${WRKSRC}/CMakeLists.txt ${WRKSRC}/src/gldit/CMakeLists.txt
 -	${REINPLACE_CMD} -e 's,/usr,${PREFIX},g'	\
 -		${WRKSRC}/src/gldit/cairo-dock-gui-factory.c
  
 -.include <bsd.port.pre.mk>
 -
 -.if exists(${LOCALBASE}/include/cairo/cairo-glitz.h)
 -# Glitz support can only be enabled if cairo is built with glitz support
 -CONFIGURE_ARGS+=--enable-glitz
 -LIB_DEPENDS+=	glitz:${PORTSDIR}/graphics/glitz
 -.else
 -CONFIGURE_ARGS+=--disable-glitz
 -.endif
 -
 -.include <bsd.port.post.mk>
 +.include <bsd.port.mk>
 diff --git a/cairo-dock/files/patch-cairo-dock b/cairo-dock/files/patch-cairo-dock
 new file mode 100644
 index 0000000..6dffcd6
 --- /dev/null
 +++ b/cairo-dock/files/patch-cairo-dock
 @@ -0,0 +1,19 @@
 +--- data/cairo-dock.orig	2012-03-10 14:08:41.784016085 +0200
 ++++ data/cairo-dock	2012-03-10 14:09:03.014030514 +0200
 +@@ -2,12 +2,12 @@
 + 	section="Applications/System" \
 + 	hints="dock" \
 + 	title="Cairo-Dock (no OpenGL)" \
 +-	icon="/usr/share/pixmaps/cairo-dock.svg" \
 +-	command="/usr/bin/cairo-dock -c"
 ++	icon="/usr/local/share/pixmaps/cairo-dock.svg" \
 ++	command="/usr/local/bin/cairo-dock -c"
 + 
 + ?package(cairo-dock):needs="X11" \
 + 	section="Applications/System" \
 + 	hints="dock" \
 + 	title="GLX-Dock (Cairo-Dock with OpenGL)" \
 +-	icon="/usr/share/pixmaps/cairo-dock.svg" \
 +-	command="/usr/bin/cairo-dock -o"
 ++	icon="/usr/local/share/pixmaps/cairo-dock.svg" \
 ++	command="/usr/local/bin/cairo-dock -o"
 diff --git a/cairo-dock/files/patch-cairo-dock-applet-facility.c b/cairo-dock/files/patch-cairo-dock-applet-facility.c
 new file mode 100644
 index 0000000..35643d0
 --- /dev/null
 +++ b/cairo-dock/files/patch-cairo-dock-applet-facility.c
 @@ -0,0 +1,18 @@
 +--- src/gldit/cairo-dock-applet-facility.c.orig	2012-04-08 11:31:10.000000000 +0300
 ++++ src/gldit/cairo-dock-applet-facility.c	2012-04-08 11:32:21.000000000 +0300
 +@@ -350,13 +350,13 @@
 + 	
 + 	GError *erreur = NULL;
 + 	gchar *cSoundCommand = NULL;
 +-	if (g_file_test ("/usr/bin/paplay", G_FILE_TEST_EXISTS))
 ++	if (g_file_test ("/usr/local/bin/paplay", G_FILE_TEST_EXISTS))
 + 		cSoundCommand = g_strdup_printf("paplay --client-name=cairo-dock \"%s\"", cSoundPath);
 + 
 + 	else if (g_file_test ("/usr/bin/aplay", G_FILE_TEST_EXISTS))
 + 		cSoundCommand = g_strdup_printf("aplay \"%s\"", cSoundPath);
 + 
 +-	else if (g_file_test ("/usr/bin/play", G_FILE_TEST_EXISTS))
 ++	else if (g_file_test ("/usr/local/bin/play", G_FILE_TEST_EXISTS))
 + 		cSoundCommand = g_strdup_printf("play \"%s\"", cSoundPath);
 + 	
 + 	
 diff --git a/cairo-dock/files/patch-cairo-dock-class-manager.c b/cairo-dock/files/patch-cairo-dock-class-manager.c
 new file mode 100644
 index 0000000..4d0d661
 --- /dev/null
 +++ b/cairo-dock/files/patch-cairo-dock-class-manager.c
 @@ -0,0 +1,19 @@
 +--- src/gldit/cairo-dock-class-manager.c.orig	2012-03-10 14:05:52.663999155 +0200
 ++++ src/gldit/cairo-dock-class-manager.c	2012-03-10 14:06:17.963989866 +0200
 +@@ -1189,13 +1189,13 @@
 + {
 + 	gboolean bFound = TRUE;
 + 	GString *sDesktopFilePath = g_string_new ("");
 +-	g_string_printf (sDesktopFilePath, "/usr/share/applications/%s.desktop", cClass);
 ++	g_string_printf (sDesktopFilePath, "/usr/local/share/applications/%s.desktop", cClass);
 + 	if (! g_file_test (sDesktopFilePath->str, G_FILE_TEST_EXISTS))
 + 	{
 +-		g_string_printf (sDesktopFilePath, "/usr/share/applications/xfce4/%s.desktop", cClass);
 ++		g_string_printf (sDesktopFilePath, "/usr/local/share/applications/xfce4/%s.desktop", cClass);
 + 		if (! g_file_test (sDesktopFilePath->str, G_FILE_TEST_EXISTS))
 + 		{
 +-			g_string_printf (sDesktopFilePath, "/usr/share/applications/kde4/%s.desktop", cClass);
 ++			g_string_printf (sDesktopFilePath, "/usr/local/share/applications/kde4/%s.desktop", cClass);
 + 			if (! g_file_test (sDesktopFilePath->str, G_FILE_TEST_EXISTS))
 + 			{
 + 				bFound = FALSE;
 diff --git a/cairo-dock/files/patch-cairo-dock-gui-factory.c b/cairo-dock/files/patch-cairo-dock-gui-factory.c
 new file mode 100644
 index 0000000..1b084f8
 --- /dev/null
 +++ b/cairo-dock/files/patch-cairo-dock-gui-factory.c
 @@ -0,0 +1,11 @@
 +--- src/gldit/cairo-dock-gui-factory.c.orig	2011-06-19 02:27:14.000000000 +0300
 ++++ src/gldit/cairo-dock-gui-factory.c	2012-03-10 14:01:45.373972001 +0200
 +@@ -2429,7 +2429,7 @@
 + 				gchar *cUserPath = g_strdup_printf ("%s/.icons", g_getenv ("HOME"));
 + 				const gchar *path[3];
 + 				path[0] = (const gchar *)cUserPath;
 +-				path[1] = "/usr/share/icons";
 ++				path[1] = "/usr/local/share/icons";
 + 				path[2] = NULL;
 + 				
 + 				GHashTable *pHashTable = _cairo_dock_build_icon_themes_list (path);
 diff --git a/cairo-dock/files/patch-cairo-dock-menu.c b/cairo-dock/files/patch-cairo-dock-menu.c
 new file mode 100644
 index 0000000..ac4a480
 --- /dev/null
 +++ b/cairo-dock/files/patch-cairo-dock-menu.c
 @@ -0,0 +1,25 @@
 +--- src/cairo-dock-menu.c.orig	2012-03-10 14:07:34.504001097 +0200
 ++++ src/cairo-dock-menu.c	2012-03-10 14:07:43.434017412 +0200
 +@@ -293,7 +293,7 @@
 + 			return ;
 + 		}
 + 	}
 +-	gchar *cCommand = g_strdup_printf ("cp '/usr/share/applications/cairo-dock%s.desktop' '%s'", (g_bForceCairo ? "-cairo" : ""), cCairoAutoStartDirPath);
 ++	gchar *cCommand = g_strdup_printf ("cp '/usr/local/share/applications/cairo-dock%s.desktop' '%s'", (g_bForceCairo ? "-cairo" : ""), cCairoAutoStartDirPath);
 + 	int r = system (cCommand);
 + 	g_free (cCommand);
 + 	g_free (cCairoAutoStartDirPath);
 +@@ -861,11 +861,11 @@
 + 	
 + 	// on trouve le .desktop du programme.
 + 	cd_debug ("%s (%s)\n", __func__, icon->cClass);
 +-	gchar *cDesktopFilePath = g_strdup_printf ("/usr/share/applications/%s.desktop", icon->cClass);
 ++	gchar *cDesktopFilePath = g_strdup_printf ("/usr/local/share/applications/%s.desktop", icon->cClass);
 + 	if (! g_file_test (cDesktopFilePath, G_FILE_TEST_EXISTS))  // on n'a pas trouve la, on cherche chez KDE.
 + 	{
 + 		g_free (cDesktopFilePath);
 +-		cDesktopFilePath = g_strdup_printf ("/usr/share/applications/kde4/%s.desktop", icon->cClass);
 ++		cDesktopFilePath = g_strdup_printf ("/usr/local/share/applications/kde4/%s.desktop", icon->cClass);
 + 		if (! g_file_test (cDesktopFilePath, G_FILE_TEST_EXISTS))  // toujours rien, on utilise locate.
 + 		{
 + 			g_free (cDesktopFilePath);
 diff --git a/cairo-dock/files/patch-cairo-dock-package-theme b/cairo-dock/files/patch-cairo-dock-package-theme
 new file mode 100644
 index 0000000..66fe4f7
 --- /dev/null
 +++ b/cairo-dock/files/patch-cairo-dock-package-theme
 @@ -0,0 +1,17 @@
 +--- cairo-dock-package-theme.orig	2011-06-19 02:27:14.000000000 +0300
 ++++ cairo-dock-package-theme	2012-03-10 13:56:42.504012481 +0200
 +@@ -1,4 +1,4 @@
 +-#!/bin/bash
 ++#!/usr/local/bin/bash
 + 
 + # Packager for Cairo-Dock
 + #
 +@@ -125,7 +125,7 @@
 + 	if test "x${theme}" != "x"; then
 + 		#\__________ On cherche si ce theme est un theme officiel ou non.
 + 		echo "un theme est present ($theme)"
 +-		wget "$THEME_SERVER/$3/list.conf" -O "liste.tmp" -t 3 -T 30
 ++		fetch -o "liste.tmp" -T 30 "$THEME_SERVER/$3/list.conf"
 + 		if test -f "liste.tmp" ; then
 + 			grep "^\[${theme}\]" "liste.tmp"
 + 			if test "$?" != "0" -a  "$theme" != "Classic" -a "$theme" != "default"; then  # pas un theme officiel
 diff --git a/cairo-dock/files/patch-cairo-dock_theme-creator.sh b/cairo-dock/files/patch-cairo-dock_theme-creator.sh
 new file mode 100644
 index 0000000..a30d5ff
 --- /dev/null
 +++ b/cairo-dock/files/patch-cairo-dock_theme-creator.sh
 @@ -0,0 +1,8 @@
 +--- cairo-dock_theme-creator.sh.orig	2012-03-10 13:56:15.674011880 +0200
 ++++ cairo-dock_theme-creator.sh	2012-03-10 13:56:23.814030235 +0200
 +@@ -1,4 +1,4 @@
 +-#!/bin/bash
 ++#!/usr/local/bin/bash
 + 
 + # Theme creator for Cairo-Dock
 + #
 diff --git a/cairo-dock/files/patch-fetch b/home/my_src/ports/cairo-dock-2.3.0~3/cairo-dock/files/patch-fetch
 deleted file mode 100644
 index 8702308..0000000
 --- a/cairo-dock/files/patch-fetch
 +++ /dev/null
 @@ -1,11 +0,0 @@
 ---- cairo-dock-package-theme.orig	2010-12-11 01:37:14.000000000 +0200
 -+++ cairo-dock-package-theme	2010-12-11 01:37:33.000000000 +0200
 -@@ -125,7 +125,7 @@
 - 	if test "x${theme}" != "x"; then
 - 		#\__________ On cherche si ce theme est un theme officiel ou non.
 - 		echo "un theme est present ($theme)"
 --		wget "$THEME_SERVER/$3/list.conf" -O "liste.tmp" -t 3 -T 30
 -+		fetch -o "liste.tmp" -T 30 "$THEME_SERVER/$3/list.conf"
 - 		if test -f "liste.tmp" ; then
 - 			grep "^\[${theme}\]" "liste.tmp"
 - 			if test "$?" != "0" -a  "$theme" != "Classic" -a "$theme" != "default"; then  # pas un theme officiel
 
 --MP_/dGusigWNgBq8/5a8QGI7pjf--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201204090940.q399eGKL055883>