ports/167212: [maintainer-update] Patch to add desktop icon for games/crossfire-client
Kevin Zheng
kevinz5000 at gmail.com
Sun Apr 22 19:40:06 UTC 2012
>Number: 167212
>Category: ports
>Synopsis: [maintainer-update] Patch to add desktop icon for games/crossfire-client
>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 Apr 22 19:40:05 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: Kevin Zheng
>Release: FreeBSD 9.0-RELEASE
>Organization:
>Environment:
FreeBSD omega.local 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 3 07:15:25 UTC 2012 root at obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
>Description:
Most users like having a desktop icon created in the Applications menu after a graphical program (especially a game) is installed. This patch allows games/crossfire-client to install (and uninstall) a desktop icon in the applications folder.
A small change to whitespace was made, and pkg-plist now tries to remove share/applications and share/pixmap if empty.
The committer of this port should decide whether a bump to PORTREVISION is necessary. This patch only adds a desktop icon and doesn't otherwise change the functionality of the port.
>How-To-Repeat:
Simply install crossfire-client from ports and you'll quickly realize that there is no desktop icon.
>Fix:
Apply the attached patch.
Patch attached with submission follows:
diff -ruN /usr/ports/games/crossfire-client/Makefile crossfire-client/Makefile
--- /usr/ports/games/crossfire-client/Makefile 2012-04-15 10:43:10.000000000 -0500
+++ crossfire-client/Makefile 2012-04-22 14:32:28.000000000 -0500
@@ -1,6 +1,6 @@
# New ports collection makefile for: crossfire-client
-# Date created: 1996-10-27
-# Whom: Andreas Klemm <andreas at klemm.gtn.com>
+# Date created: 1996-10-27
+# Whom: Andreas Klemm <andreas at klemm.gtn.com>
#
# $FreeBSD: ports/games/crossfire-client/Makefile,v 1.77 2012/04/15 15:43:10 pawel Exp $
#
@@ -28,4 +28,11 @@
${REINPLACE_CMD} -e "/mandir='${datarootdir}\/man'/d" \
${WRKSRC}/configure
+post-install:
+ ${CP} ${WRKSRC}/pixmaps/48x48.png ${WRKSRC}/pixmaps/crossfire-client.png
+ ${INSTALL_DATA} ${WRKSRC}/gtk-v2/crossfire-client.desktop \
+ ${LOCALBASE}/share/applications
+ ${INSTALL_DATA} ${WRKSRC}/pixmaps/crossfire-client.png \
+ ${LOCALBASE}/share/pixmaps
+
.include <bsd.port.mk>
diff -ruN /usr/ports/games/crossfire-client/pkg-plist crossfire-client/pkg-plist
--- /usr/ports/games/crossfire-client/pkg-plist 2012-04-15 10:43:10.000000000 -0500
+++ crossfire-client/pkg-plist 2012-04-22 14:13:18.000000000 -0500
@@ -1,5 +1,7 @@
bin/cfsndserv
bin/crossfire-client-gtk2
+share/applications/crossfire-client.desktop
+share/pixmaps/crossfire-client.png
%%DATADIR%%/glade-gtk2/caelestis.glade
%%DATADIR%%/glade-gtk2/chthonic.glade
%%DATADIR%%/glade-gtk2/dialogs.glade
@@ -17,3 +19,5 @@
@dirrm %%DATADIR%%/glade-gtk2
@dirrm %%DATADIR%%/themes
@dirrm %%DATADIR%%
+ at dirrmtry share/applications
+ at dirrmtry share/pixmaps
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list