diff options
author | koobs <koobs@FreeBSD.org> | 2015-10-20 12:25:45 +0800 |
---|---|---|
committer | koobs <koobs@FreeBSD.org> | 2015-10-20 12:25:45 +0800 |
commit | 861469f7e65569a790de3975029a60313ae97c87 (patch) | |
tree | 0b05ba0303b93572ecbe8313a2be360b915a57f0 /editors | |
parent | 93a1da7fe22e5c79805132233b9ecf17d971d9d7 (diff) | |
download | freebsd-ports-gnome-861469f7e65569a790de3975029a60313ae97c87.tar.gz freebsd-ports-gnome-861469f7e65569a790de3975029a60313ae97c87.tar.zst freebsd-ports-gnome-861469f7e65569a790de3975029a60313ae97c87.zip |
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
Diffstat (limited to 'editors')
-rw-r--r-- | editors/sublime3/Makefile | 9 | ||||
-rw-r--r-- | editors/sublime3/files/patch-sublime_text.desktop | 6 | ||||
-rw-r--r-- | editors/sublime3/files/sublime.in | 2 |
3 files changed, 9 insertions, 8 deletions
diff --git a/editors/sublime3/Makefile b/editors/sublime3/Makefile index 28f42b7cdfa1..5327fec66408 100644 --- a/editors/sublime3/Makefile +++ b/editors/sublime3/Makefile @@ -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 diff --git a/editors/sublime3/files/patch-sublime_text.desktop b/editors/sublime3/files/patch-sublime_text.desktop index d97afcd7e10f..0814f17c9381 100644 --- a/editors/sublime3/files/patch-sublime_text.desktop +++ b/editors/sublime3/files/patch-sublime_text.desktop @@ -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 diff --git a/editors/sublime3/files/sublime.in b/editors/sublime3/files/sublime.in index aede3704b63a..75390fe6ffc9 100644 --- a/editors/sublime3/files/sublime.in +++ b/editors/sublime3/files/sublime.in @@ -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. |