ports/127368: audio/last.fm: add a .desktop file for Xfce/GNOME/KDE

Carlos A. M. dos Santos unixmania at gmail.com
Sun Sep 14 02:50:02 UTC 2008


>Number:         127368
>Category:       ports
>Synopsis:       audio/last.fm: add a .desktop file for Xfce/GNOME/KDE
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Sep 14 02:50:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Carlos A. M. dos Santos
>Release:        7-STABLE
>Organization:
N.A.
>Environment:
FreeBSD casantos.casantos.org 7.0-STABLE FreeBSD 7.0-STABLE #4: Thu Jul 17 21:07:23 BRT 2008     root at casantos.casantos.org:/local/FreeBSD/src-stable/sys/amd64/compile/HP_NX6320_70_AMD64  amd64

>Description:
The last.fm port does not install a menu entry for Xfce, GNNOME and KDE.
>How-To-Repeat:
Install the package. :-)
>Fix:
Apply the attached patch.

Patch attached with submission follows:

diff -durP last.fm.orig/Makefile last.fm/Makefile
--- last.fm.orig/Makefile	2008-09-13 10:33:46.000000000 -0300
+++ last.fm/Makefile	2008-09-13 22:34:56.000000000 -0300
@@ -7,6 +7,7 @@
 
 PORTNAME=	last.fm
 PORTVERSION=	1.3.2.14
+PORTREVISION=	1
 CATEGORIES=	audio net
 MASTER_SITES=	http://cdn.last.fm/client/src/
 DISTNAME=	${PORTNAME}-${PORTVERSION}.src
@@ -47,7 +48,8 @@
 
 do-install:
 	${INSTALL_SCRIPT} ${WRKSRC}/bin/last.fm ${PREFIX}/bin/last.fm
-	${MKDIR} ${PREFIX}/share/services
+	${MKDIR} ${PREFIX}/share/applications ${PREFIX}/share/services
+	${INSTALL_DATA} ${FILESDIR}/last.fm.desktop ${PREFIX}/share/applications
 	${INSTALL_DATA} ${FILESDIR}/lastfm.protocol ${PREFIX}/share/services
 	${MKDIR} ${DATADIR}
 	${CP} -Rp ${WRKSRC}/bin/* ${DATADIR}/
diff -durP last.fm.orig/files/last.fm.desktop last.fm/files/last.fm.desktop
--- last.fm.orig/files/last.fm.desktop	1969-12-31 21:00:00.000000000 -0300
+++ last.fm/files/last.fm.desktop	2008-09-13 18:25:51.000000000 -0300
@@ -0,0 +1,20 @@
+[Desktop Entry]
+Name=Client for the Last.fm network
+Name[de]=Client für das Last.fm-netzwerk
+Name[es]=Cliente para la red Last.fm
+Name[it]=Cliente per la rete di Last.fm
+Name[pt_BR]=Cliente para a rede Last.fm
+Name[pt_PT]=Cliente para a rede Last.fm
+Comment=Client for the Last.fm Network
+Comment[de]=Client für das Last.fm-Netzwerk
+Comment[es]=Cliente para la red Last.fm
+Comment[it]=Cliente per la rete di Last.fm
+Comment[pt_BR]=Cliente para a Rede Last.fm
+Comment[pt_PT]=Cliente para a Rede Last.fm
+Exec=last.fm
+Terminal=false
+Type=Application
+Encoding=UTF-8
+Icon=/usr/local/share/last.fm/data/icons/as.png
+Categories=AudioVideo;Player;Qt;
+StartupNotify=true
diff -durP last.fm.orig/pkg-plist last.fm/pkg-plist
--- last.fm.orig/pkg-plist	2007-09-14 16:02:22.000000000 -0300
+++ last.fm/pkg-plist	2008-09-13 22:38:43.000000000 -0300
@@ -108,6 +108,7 @@
 %%DATADIR%%/services/libsrv_itunesdevice.so
 %%DATADIR%%/services/libsrv_mp3transcode.so
 %%DATADIR%%/services/libsrv_rtaudioplayback.so
+share/applications/last.fm.desktop
 share/services/lastfm.protocol
 @dirrmtry share/services
 @dirrm %%DATADIR%%/services


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list