Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Mar 2018 04:39:20 +0000 (UTC)
From:      Tobias Kortkamp <tobik@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r463863 - in head/editors/linux-sublime: . files
Message-ID:  <201803080439.w284dK9I075005@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tobik
Date: Thu Mar  8 04:39:20 2018
New Revision: 463863
URL: https://svnweb.freebsd.org/changeset/ports/463863

Log:
  editors/linux-sublime: Add missing desktop file
  
  Adapted from the one in editors/linux-sublime3
  
  PR:		226442
  Reported by:	sblachmann@gmail.com
  Submitted by:	w.schwarzenfeld@utanet.at

Added:
  head/editors/linux-sublime/files/sublime_text.desktop   (contents, props changed)
Modified:
  head/editors/linux-sublime/Makefile
  head/editors/linux-sublime/pkg-plist

Modified: head/editors/linux-sublime/Makefile
==============================================================================
--- head/editors/linux-sublime/Makefile	Thu Mar  8 03:55:16 2018	(r463862)
+++ head/editors/linux-sublime/Makefile	Thu Mar  8 04:39:20 2018	(r463863)
@@ -3,7 +3,7 @@
 
 PORTNAME=	sublime
 PORTVERSION=	2.0.2
-PORTREVISION=	5
+PORTREVISION=	6
 CATEGORIES=	editors linux
 MASTER_SITES=	http://c758482.r82.cf2.rackcdn.com/
 DISTNAME=	Sublime%20Text%202.0.2
@@ -13,7 +13,7 @@ MAINTAINER=	ports@FreeBSD.org
 COMMENT=	Sublime Text is a sophisticated text editor for code, markup and prose
 
 INSTALLS_ICONS=	yes
-USES=		linux tar:bzip2
+USES=		desktop-file-utils linux tar:bzip2
 USE_LINUX=	xorglibs gtk2
 WRKSRC=		${WRKDIR}/"Sublime Text 2"
 
@@ -29,7 +29,8 @@ do-install:
 	@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/48x48/apps/
 	@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/128x128/apps/
 	@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/256x256/apps/
-
+	@${MKDIR} ${STAGEDIR}${PREFIX}/share/applications
+	@${INSTALL_DATA} ${FILESDIR}/sublime_text.desktop ${STAGEDIR}${PREFIX}/share/applications
 	@${INSTALL_DATA} ${WRKSRC}/Icon/16x16/sublime_text.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/16x16/apps/
 	@${INSTALL_DATA} ${WRKSRC}/Icon/32x32/sublime_text.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/32x32/apps/
 	@${INSTALL_DATA} ${WRKSRC}/Icon/48x48/sublime_text.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/48x48/apps/

Added: head/editors/linux-sublime/files/sublime_text.desktop
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/editors/linux-sublime/files/sublime_text.desktop	Thu Mar  8 04:39:20 2018	(r463863)
@@ -0,0 +1,12 @@
+[Desktop Entry]
+Version=1.0
+Type=Application
+Name=Sublime Text
+GenericName=Text Editor
+Comment=Sophisticated text editor for code, markup and prose
+Exec=sublime %F
+Terminal=false
+MimeType=text/plain;
+Icon=sublime_text
+Categories=TextEditor;Development;
+StartupNotify=true

Modified: head/editors/linux-sublime/pkg-plist
==============================================================================
--- head/editors/linux-sublime/pkg-plist	Thu Mar  8 03:55:16 2018	(r463862)
+++ head/editors/linux-sublime/pkg-plist	Thu Mar  8 04:39:20 2018	(r463863)
@@ -1,4 +1,5 @@
 bin/sublime
+share/applications/sublime_text.desktop
 share/icons/hicolor/128x128/apps/sublime_text.png
 share/icons/hicolor/16x16/apps/sublime_text.png
 share/icons/hicolor/256x256/apps/sublime_text.png



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201803080439.w284dK9I075005>