On Sun, 1 May 2011, Ian Darwin wrote:

> This makes rxvt show up in menus in kde and gnome et al.
> 
> Cc to ports as I haven't seen the maintainer around in ages.
> 
> OK?

You are missing the dependency on desktop-file-utils and you should 
regen PLIST.

> Index: Makefile
> ===================================================================
> RCS file: /cvs/ports/x11/rxvt/Makefile,v
> retrieving revision 1.45
> diff -u -p -r1.45 Makefile
> --- Makefile  22 Nov 2010 08:37:04 -0000      1.45
> +++ Makefile  1 May 2011 17:58:33 -0000
> @@ -6,7 +6,7 @@ COMMENT-clock=        analog clock for X11 w/ap
>  VER=         2.7.10
>  DISTNAME=    rxvt-${VER}
>  PKGNAME-main=        rxvt-${VER}
> -REVISION-main=       5
> +REVISION-main=       6
>  PKGNAME-clock=       rclock-${VER}
>  REVISION-clock=      1
>  CATEGORIES=  x11
> @@ -50,5 +50,9 @@ CONFIGURE_ARGS=             --enable-utmp \
>                       --with-encoding=noenc
>  
>  NO_REGRESS=          Yes
> +
> +post-install:
> +     ${INSTALL_DATA_DIR} ${PREFIX}/share/applications
> +     ${INSTALL_DATA} ${FILESDIR}/rxvt.desktop ${PREFIX}/share/applications
>  
>  .include <bsd.port.mk>
> Index: files/rxvt.desktop
> ===================================================================
> RCS file: files/rxvt.desktop
> diff -N files/rxvt.desktop
> --- /dev/null 1 Jan 1970 00:00:00 -0000
> +++ files/rxvt.desktop        1 May 2011 17:58:33 -0000
> @@ -0,0 +1,14 @@
> +[Desktop Entry]
> +Version=1.0
> +Encoding=UTF-8
> +Name=Rxvt: ouR X Virtual Termainal
> +GenericName=Terminal
> +Comment=Command-line terminal
> +Categories=System;Terminal;
> +Exec=rxvt
> +Icon=terminal
> +Path=
> +Type=Application
> +Terminal=false
> +X-KDE-StartupNotify=true
> +X-KDE-AuthorizeAction=shell_access
> Index: pkg/PLIST-main
> ===================================================================
> RCS file: /cvs/ports/x11/rxvt/pkg/PLIST-main,v
> retrieving revision 1.2
> diff -u -p -r1.2 PLIST-main
> --- pkg/PLIST-main    26 Aug 2010 10:36:53 -0000      1.2
> +++ pkg/PLIST-main    1 May 2011 17:58:33 -0000
> @@ -4,3 +4,7 @@
>  @bin bin/rxvt
>  @mode
>  @man man/man1/rxvt.1
> +share/applications/rxvt.desktop
> +@exec %D/bin/update-desktop-database
> +@unexec-delete %D/bin/update-desktop-database
> +
> 
> 

-- 
Antoine

Reply via email to