svn commit: r399886 - in branches/2015Q4/editors/sublime3: . files
Kubilay Kocak
koobs at FreeBSD.org
Wed Oct 21 03:54:35 UTC 2015
Author: koobs
Date: Wed Oct 21 03:54:33 2015
New Revision: 399886
URL: https://svnweb.freebsd.org/changeset/ports/399886
Log:
MFH: r399802
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)
Approved by: portmgr (bdrewery)
Modified:
branches/2015Q4/editors/sublime3/Makefile
branches/2015Q4/editors/sublime3/files/patch-sublime_text.desktop
branches/2015Q4/editors/sublime3/files/sublime.in
Directory Properties:
branches/2015Q4/ (props changed)
Modified: branches/2015Q4/editors/sublime3/Makefile
==============================================================================
--- branches/2015Q4/editors/sublime3/Makefile Wed Oct 21 03:37:01 2015 (r399885)
+++ branches/2015Q4/editors/sublime3/Makefile Wed Oct 21 03:54:33 2015 (r399886)
@@ -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 at 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: branches/2015Q4/editors/sublime3/files/patch-sublime_text.desktop
==============================================================================
--- branches/2015Q4/editors/sublime3/files/patch-sublime_text.desktop Wed Oct 21 03:37:01 2015 (r399885)
+++ branches/2015Q4/editors/sublime3/files/patch-sublime_text.desktop Wed Oct 21 03:54:33 2015 (r399886)
@@ -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: branches/2015Q4/editors/sublime3/files/sublime.in
==============================================================================
--- branches/2015Q4/editors/sublime3/files/sublime.in Wed Oct 21 03:37:01 2015 (r399885)
+++ branches/2015Q4/editors/sublime3/files/sublime.in Wed Oct 21 03:54:33 2015 (r399886)
@@ -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.
More information about the svn-ports-branches
mailing list