Bug 180091 - [patch] deskutils/cairo-dock 3.2.1 fixes playback of sounds
Summary: [patch] deskutils/cairo-dock 3.2.1 fixes playback of sounds
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Lars Engels
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-29 15:30 UTC by Ivan Klymenko
Modified: 2013-07-02 21:20 UTC (History)
0 users

See Also:


Attachments
file.diff (2.33 KB, patch)
2013-06-29 15:30 UTC, Ivan Klymenko
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Klymenko 2013-06-29 15:30:01 UTC

Fix: Patch attached with submission follows:
Comment 1 Ivan Klymenko 2013-06-29 15:41:21 UTC
It fixes to the problem
http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/176615
Comment 2 Ivan Klymenko 2013-06-29 15:43:26 UTC
oops? sorry
it fixes to the problem
http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/180084
Comment 3 Lars Engels freebsd_committer 2013-07-02 18:19:06 UTC
Responsible Changed
From-To: freebsd-ports-bugs->lme

I'll take it.
Comment 4 dfilter service freebsd_committer 2013-07-02 21:10:45 UTC
Author: lme
Date: Tue Jul  2 20:10:38 2013
New Revision: 322200
URL: http://svnweb.freebsd.org/changeset/ports/322200

Log:
  - Fix sound playback
  - Bump PORTREVISION
  - Whitespace fixes
  
  PR:		ports/180091
  Submitted by:	maintainer

Added:
  head/deskutils/cairo-dock/files/patch-cairo-dock-applet-facility.c   (contents, props changed)
Modified:
  head/deskutils/cairo-dock/Makefile

Modified: head/deskutils/cairo-dock/Makefile
==============================================================================
--- head/deskutils/cairo-dock/Makefile	Tue Jul  2 20:06:01 2013	(r322199)
+++ head/deskutils/cairo-dock/Makefile	Tue Jul  2 20:10:38 2013	(r322200)
@@ -2,6 +2,7 @@
 
 PORTNAME=	cairo-dock
 DISTVERSION=	3.2.1
+PORTREVISION=	1
 CATEGORIES=	deskutils
 MASTER_SITES=	https://launchpadlibrarian.net/137290048/ \
 		http://pazzle.otdux.com.ua/
@@ -13,7 +14,8 @@ LIB_DEPENDS=	cairo:${PORTSDIR}/graphics/
 		curl:${PORTSDIR}/ftp/curl \
 		dbus-glib-1:${PORTSDIR}/devel/dbus-glib \
 		gtkglext-x11-1:${PORTSDIR}/x11-toolkits/gtkglext
-RUN_DEPENDS=	bash:${PORTSDIR}/shells/bash
+RUN_DEPENDS=	bash:${PORTSDIR}/shells/bash \
+		sox:${PORTSDIR}/audio/sox
 
 WRKSRC=		${WRKDIR}/${PORTNAME}-3.2.1
 
@@ -24,18 +26,18 @@ USE_XORG=	xrender xtst
 USES=		cmake gettext pkgconfig
 MAKE_JOBS_SAFE=	yes
 LDFLAGS+=	-L${LOCALBASE}/lib
-CMAKE_ARGS+=    -Dinstall-pc-path:STRING="${LOCALBASE}/libdata/pkgconfig"
+CMAKE_ARGS+=	-Dinstall-pc-path:STRING="${LOCALBASE}/libdata/pkgconfig"
 
 MAN1=		cairo-dock.1
 MANCOMPRESSED=	yes
 
 post-patch:
-	@${FIND} ${WRKSRC} -type f -name "*" | ${XARGS} ${REINPLACE_CMD} -i.orig -e \
+	@${FIND} ${WRKSRC} -type f -name "*" | ${XARGS} ${REINPLACE_CMD} -e \
 	    's|/usr/share/pixmaps/|${LOCALBASE}/share/pixmaps/|g; \
 	     s|/usr/bin/cairo-dock|${LOCALBASE}/bin/cairo-dock|g; \
 	     s|/bin/bash|${LOCALBASE}/bin/bash|g; \
-	     s|/usr/bin/*lay|${LOCALBASE}/bin/*lay|g; \
 	     s|/usr/share/applications|${LOCALBASE}/share/applications|g; \
-	     s|/usr/share/icons|${LOCALBASE}/share/icons|g'
+	     s|/usr/share/icons|${LOCALBASE}/share/icons|g; \
+	     s|%%LOCALBASE%%|${LOCALBASE}|g;'
 
 .include <bsd.port.mk>

Added: head/deskutils/cairo-dock/files/patch-cairo-dock-applet-facility.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/deskutils/cairo-dock/files/patch-cairo-dock-applet-facility.c	Tue Jul  2 20:10:38 2013	(r322200)
@@ -0,0 +1,23 @@
+--- ./src/gldit/cairo-dock-applet-facility.c.orig	2013-06-29 16:54:06.000000000 +0300
++++ ./src/gldit/cairo-dock-applet-facility.c	2013-06-29 16:55:44.000000000 +0300
+@@ -225,14 +225,14 @@
+ 	}
+ 	
+ 	gchar *cSoundCommand = NULL;
+-	if (g_file_test ("/usr/bin/paplay", G_FILE_TEST_EXISTS))
+-		cSoundCommand = g_strdup_printf("paplay --client-name=cairo-dock \"%s\"", cSoundPath);
++	if (g_file_test ("%%LOCALBASE%%/bin/play", G_FILE_TEST_EXISTS))
++		cSoundCommand = g_strdup_printf("play \"%s\"", cSoundPath);
+ 
+-	else if (g_file_test ("/usr/bin/aplay", G_FILE_TEST_EXISTS))
++	else if (g_file_test ("%%LOCALBASE%%/bin/paplay", G_FILE_TEST_EXISTS))
++		cSoundCommand = g_strdup_printf("paplay --client-name=cairo-dock \"%s\"", cSoundPath);
++	
++	else if (g_file_test ("%%LOCALBASE%%/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))
+-		cSoundCommand = g_strdup_printf("play \"%s\"", cSoundPath);
+ 	
+ 	
+ 	cairo_dock_launch_command (cSoundCommand);
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 5 Lars Engels freebsd_committer 2013-07-02 21:10:53 UTC
State Changed
From-To: open->closed

Committed, with minor changes. Thanks!