ports/165925: [patch] deskutils/cairo-dock fix many bugs
Ivan Klymenko
fidaj at ukr.net
Sun Mar 11 11:10:10 UTC 2012
>Number: 165925
>Category: ports
>Synopsis: [patch] deskutils/cairo-dock fix many bugs
>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 Mar 11 11:10:10 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: Ivan Klymenko
>Release: FreeBSD 10.0-CURRENT amd64
>Organization:
individual
>Environment:
>Description:
log files:
8.2-RELEASE/amd64
https://redports.org/~fidaj/20120311082937-20770-15314/cairo-dock-2.3.0.3_1.log
8.2-RELEASE/i386
https://redports.org/~fidaj/20120311082937-20770-15315/cairo-dock-2.3.0.3_1.log
9.0-RELEASE/amd64
https://redports.org/~fidaj/20120311075035-06154-15310/cairo-dock-2.3.0.3_1.log
9.0-RELEASE/i386
https://redports.org/~fidaj/20120311075035-06154-15311/cairo-dock-2.3.0.3_1.log
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
diff --git a/cairo-dock/Makefile b/cairo-dock/Makefile
index 0793f15..65a8905 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,8 +34,6 @@ 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>
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-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/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
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list