1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00

editors/sublime3: patch .desktop file and add check for /dev/shm link

PR:		197381
Submitted by:	miguelmclara@gmail.com (maintainer)
This commit is contained in:
Kurt Jaeger 2015-02-08 18:52:47 +00:00
parent 4ffdccc062
commit fd7d0fae4e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=378670
3 changed files with 40 additions and 3 deletions

View File

@ -3,7 +3,7 @@
PORTNAME= sublime
PORTVERSION= 3.0.65
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= editors linux
MASTER_SITES= http://c758482.r82.cf2.rackcdn.com/
PKGNAMEPREFIX= linux-
@ -13,7 +13,7 @@ MAINTAINER= miguelmclara@gmail.com
COMMENT= Sublime Text is a sophisticated text editor for code, markup and prose
USES= tar:bzip2 desktop-file-utils
INSTALLS_ICONS= yes
INSTALLS_ICONS= yes
WRKSRC= ${WRKDIR}/sublime_text_3
CONFLICTS= linux-sublime-[0-24-9]*

View File

@ -0,0 +1,24 @@
--- sublime_text.desktop.orig 2014-08-27
+++ sublime_text.desktop
@@ -4,20 +4,9 @@
Name=Sublime Text
GenericName=Text Editor
Comment=Sophisticated text editor for code, markup and prose
-Exec=/opt/sublime_text/sublime_text %F
+Exec=/usr/local/bin/sublime %F
Terminal=false
MimeType=text/plain;
Icon=sublime-text
Categories=TextEditor;Development;
StartupNotify=true
-Actions=Window;Document;
-
-[Desktop Action Window]
-Name=New Window
-Exec=/opt/sublime_text/sublime_text -n
-OnlyShowIn=Unity;
-
-[Desktop Action Document]
-Name=New File
-Exec=/opt/sublime_text/sublime_text --command new_file
-OnlyShowIn=Unity;

View File

@ -1,2 +1,15 @@
#!/compat/linux/bin/sh
%%DATADIR%%/sublime_text $*
if [ -L "/dev/shm" ];then
%%DATADIR%%/sublime_text $*
else
echo "Some Linux applications use shared memory.
Sublime Text 3 can not function without it, you need to set up a link
from /dev/shm to a suitable place, e.g. by adding the following line
to /etc/devfs.conf (takes effect on each boot - restart devfs to apply
then change now):
link /tmp shm
"
exit 1;
fi