Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Oct 2015 04:25:45 +0000 (UTC)
From:      Kubilay Kocak <koobs@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r399802 - in head/editors/sublime3: . files
Message-ID:  <201510200425.t9K4Pjr7075941@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: koobs
Date: Tue Oct 20 04:25:45 2015
New Revision: 399802
URL: https://svnweb.freebsd.org/changeset/ports/399802

Log:
  editors/sublime3: Fix opening filepaths with spaces
  
  Sublime 3 contains a wrapper script at /usr/local/bin/sublime to ensure that
  /dev/shm is set up correctly, and it's currently passing arguments to the
  real binary incorrectly.
  
  It currently causes sublime to incorrectly open any file where the path
  contains a space.
  
   - Modify sublime.in to open filepaths with spaces correctly
   - Bump PORTREVISION
  
  While I'm here:
  
   - Sort USES
   - Group USE{S} lines
   - Pet portlint (make patch `makepatch` compliant)
  
  PR:		203783
  Submitted by:	Miguel <miguelmclara gmail com> (maintainer)
  MFH:		2015Q4

Modified:
  head/editors/sublime3/Makefile
  head/editors/sublime3/files/patch-sublime_text.desktop
  head/editors/sublime3/files/sublime.in

Modified: head/editors/sublime3/Makefile
==============================================================================
--- head/editors/sublime3/Makefile	Tue Oct 20 03:54:05 2015	(r399801)
+++ head/editors/sublime3/Makefile	Tue Oct 20 04:25:45 2015	(r399802)
@@ -3,6 +3,7 @@
 
 PORTNAME=	sublime
 PORTVERSION=	3.0.83
+PORTREVISION=	1
 CATEGORIES=	editors linux
 MASTER_SITES=	http://c758482.r82.cf2.rackcdn.com/
 PKGNAMEPREFIX=	linux-
@@ -11,7 +12,10 @@ DISTNAME=	sublime_text_3_build_3083_x32
 MAINTAINER=	miguelmclara@gmail.com
 COMMENT=	Sophisticated text editor for code, markup and prose
 
-USES=		tar:bzip2 desktop-file-utils
+USES=		desktop-file-utils tar:bzip2
+USE_LINUX=	c6
+USE_LINUX_APPS=	xorglibs gtk2
+
 INSTALLS_ICONS=	yes
 WRKSRC=		${WRKDIR}/sublime_text_3
 
@@ -20,9 +24,6 @@ CONFLICTS=	linux-sublime-[0-24-9]*
 NO_BUILD=
 SUB_FILES=	sublime
 
-USE_LINUX=	c6
-USE_LINUX_APPS=	xorglibs gtk2
-
 post-patch:
 	${BRANDELF} -t Linux ${WRKSRC}/sublime_text
 	${BRANDELF} -t Linux ${WRKSRC}/plugin_host

Modified: head/editors/sublime3/files/patch-sublime_text.desktop
==============================================================================
--- head/editors/sublime3/files/patch-sublime_text.desktop	Tue Oct 20 03:54:05 2015	(r399801)
+++ head/editors/sublime3/files/patch-sublime_text.desktop	Tue Oct 20 04:25:45 2015	(r399802)
@@ -1,6 +1,6 @@
---- sublime_text.desktop.orig	2014-08-27 
-+++ sublime_text.desktop	
-@@ -4,20 +4,9 @@
+--- sublime_text.desktop.orig	2015-03-26 07:23:04 UTC
++++ sublime_text.desktop
+@@ -4,20 +4,9 @@ Type=Application
  Name=Sublime Text
  GenericName=Text Editor
  Comment=Sophisticated text editor for code, markup and prose

Modified: head/editors/sublime3/files/sublime.in
==============================================================================
--- head/editors/sublime3/files/sublime.in	Tue Oct 20 03:54:05 2015	(r399801)
+++ head/editors/sublime3/files/sublime.in	Tue Oct 20 04:25:45 2015	(r399802)
@@ -1,6 +1,6 @@
 #!/compat/linux/bin/sh
 if [ -L "/dev/shm" ];then
-	%%DATADIR%%/sublime_text $*
+	%%DATADIR%%/sublime_text "$@"
 else
         echo    "Some Linux applications use shared memory.
 



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