Bug 155423 - [patch] x11/xterm: add a desktop entry
Summary: [patch] x11/xterm: add a desktop entry
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: Emanuel Haupt
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-09 21:50 UTC by Boris Samorodov
Modified: 2011-03-10 09:50 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Boris Samorodov freebsd_committer freebsd_triage 2011-03-09 21:50:09 UTC
	A desktop entry exists at the distribution but
	the port currently does not install a desktop entry.

Fix: 

-- 
WBR, bsam--fDnHvwkQJJYfCI3m05VSskl3cijOLMxNQmja647CPN382RLJ
Content-Type: text/plain; name="xterm.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="xterm.diff"

Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/x11/xterm/Makefile,v
retrieving revision 1.81
diff -u -r1.81 Makefile
--- Makefile	24 Feb 2011 15:39:09 -0000	1.81
+++ Makefile	9 Mar 2011 21:44:53 -0000
@@ -7,7 +7,7 @@
 
 PORTNAME=	xterm
 PORTVERSION=	269
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	x11
 MASTER_SITES=	ftp://invisible-island.net/xterm/ \
 		CRITICAL
@@ -19,6 +19,7 @@
 BUILD_DEPENDS=	luit:${PORTSDIR}/x11/luit
 
 USE_XORG=	xaw xft
+USE_GNOME=	desktopfileutils
 GNU_CONFIGURE=	yes
 CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
 		LIBS="-L${LOCALBASE}/lib"
@@ -54,6 +55,9 @@
 .for f in koi8rxterm resize uxterm xterm
 	@${CHMOD} ${BINMODE} ${PREFIX}/bin/${f}
 .endfor
+	@${MKDIR} ${PREFIX}/share/applications/
+	@${INSTALL_DATA} ${WRKSRC}/xterm.desktop ${PREFIX}/share/applications/
+	@-update-desktop-database
 
 .if defined(WITH_WIDE_CHARS)
 	@${CAT} ${PKGMESSAGE}
Index: pkg-plist
===================================================================
RCS file: /home/pcvs/ports/x11/xterm/pkg-plist,v
retrieving revision 1.7
diff -u -r1.7 pkg-plist
--- pkg-plist	4 May 2010 17:54:21 -0000	1.7
+++ pkg-plist	9 Mar 2011 21:44:53 -0000
@@ -8,7 +8,11 @@
 lib/X11/app-defaults/UXTerm-color
 lib/X11/app-defaults/XTerm
 lib/X11/app-defaults/XTerm-color
+share/applications/xterm.desktop
 share/pixmaps/xterm-color_32x32.xpm
 share/pixmaps/xterm-color_48x48.xpm
 share/pixmaps/xterm_32x32.xpm
 share/pixmaps/xterm_48x48.xpm
+@dirrmtry share/applications
+@exec %%LOCALBASE%%/bin/update-desktop-database > /dev/null || /usr/bin/true
+@unexec %%LOCALBASE%%/bin/update-desktop-database > /dev/null || /usr/bin/true
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2011-03-09 21:50:19 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ehaupt

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2011-03-10 09:49:38 UTC
ehaupt      2011-03-10 09:49:24 UTC

  FreeBSD ports repository

  Modified files:
    x11/xterm            Makefile pkg-plist 
  Log:
  Install a desktop entry.
  
  PR:             155423
  Submitted by:   bsam
  
  Revision  Changes    Path
  1.82      +5 -1      ports/x11/xterm/Makefile
  1.8       +4 -0      ports/x11/xterm/pkg-plist
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 Emanuel Haupt freebsd_committer freebsd_triage 2011-03-10 09:49:43 UTC
State Changed
From-To: open->closed

Committed, thanks!