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
This commit is contained in:
parent
351da57423
commit
fb1045c022
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=399802
3 changed files with 9 additions and 8 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in a new issue