Date: Thu, 10 Mar 2011 00:49:06 +0300 (MSK) From: Boris Samorodov <bsam@FreeBSD.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/155423: [patch] x11/xterm: add a desktop entry Message-ID: <201103092149.p29Ln6mx085038@bb.ipt.ru> Resent-Message-ID: <201103092150.p29Lo9F2027684@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 155423 >Category: ports >Synopsis: [patch] x11/xterm: add a desktop entry >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Wed Mar 09 21:50:09 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Boris Samorodov >Release: FreeBSD 9.0-CURRENT i386 >Organization: InPharmTech, Co. >Environment: System: FreeBSD bb.ipt.ru 9.0-CURRENT FreeBSD 9.0-CURRENT #18 r219408: Wed Mar 9 01:32:00 MSK 2011 bsam@bb.ipt.ru:/usr/obj/usr/src/sys/BB i386 >Description: A desktop entry exists at the distribution but the port currently does not install a desktop entry. >How-To-Repeat: >Fix: --- xterm.diff begins here --- 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 --- xterm.diff ends here --- -- WBR, bsam >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201103092149.p29Ln6mx085038>