Date: Sun, 8 Feb 2015 18:52:48 +0000 (UTC) From: Kurt Jaeger <pi@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r378670 - in head/editors/sublime3: . files Message-ID: <201502081852.t18IqmeC039674@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pi Date: Sun Feb 8 18:52:47 2015 New Revision: 378670 URL: https://svnweb.freebsd.org/changeset/ports/378670 QAT: https://qat.redports.org/buildarchive/r378670/ Log: editors/sublime3: patch .desktop file and add check for /dev/shm link PR: 197381 Submitted by: miguelmclara@gmail.com (maintainer) Added: head/editors/sublime3/files/patch-sublime_text.desktop (contents, props changed) Modified: head/editors/sublime3/Makefile head/editors/sublime3/files/sublime.in Modified: head/editors/sublime3/Makefile ============================================================================== --- head/editors/sublime3/Makefile Sun Feb 8 18:48:04 2015 (r378669) +++ head/editors/sublime3/Makefile Sun Feb 8 18:52:47 2015 (r378670) @@ -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]* Added: head/editors/sublime3/files/patch-sublime_text.desktop ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/editors/sublime3/files/patch-sublime_text.desktop Sun Feb 8 18:52:47 2015 (r378670) @@ -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; Modified: head/editors/sublime3/files/sublime.in ============================================================================== --- head/editors/sublime3/files/sublime.in Sun Feb 8 18:48:04 2015 (r378669) +++ head/editors/sublime3/files/sublime.in Sun Feb 8 18:52:47 2015 (r378670) @@ -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 +
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201502081852.t18IqmeC039674>