From owner-svn-ports-head@FreeBSD.ORG Sun Feb 8 18:52:48 2015 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CDD7CC61; Sun, 8 Feb 2015 18:52:48 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B0121C0D; Sun, 8 Feb 2015 18:52:48 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t18IqmZC039677; Sun, 8 Feb 2015 18:52:48 GMT (envelope-from pi@FreeBSD.org) Received: (from pi@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t18IqmeC039674; Sun, 8 Feb 2015 18:52:48 GMT (envelope-from pi@FreeBSD.org) Message-Id: <201502081852.t18IqmeC039674@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: pi set sender to pi@FreeBSD.org using -f From: Kurt Jaeger Date: Sun, 8 Feb 2015 18:52:48 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r378670 - in head/editors/sublime3: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Feb 2015 18:52:49 -0000 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 +