diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2015-12-30 01:48:19 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2015-12-30 01:48:19 +0800 |
commit | 48bf14266b0c060e03ece35edb80870c70ee3b99 (patch) | |
tree | 471a9245f701d9f16584b09376b18dc99f85e072 /editors/linux-sublime3 | |
parent | fc2b0d0d07782dfeed837764464f7018c6c3bc95 (diff) | |
download | freebsd-ports-gnome-48bf14266b0c060e03ece35edb80870c70ee3b99.tar.gz freebsd-ports-gnome-48bf14266b0c060e03ece35edb80870c70ee3b99.tar.zst freebsd-ports-gnome-48bf14266b0c060e03ece35edb80870c70ee3b99.zip |
- Rename editors/sublime3 to editors/linux-sublime3 and add PKGNAMESUFFIX
- Bring port directory and package names in sync
- Resolve PKGBASE conflict with editors/linux-sublime
PR: 205694
Approved by: portmgr blanket (due to PKGBASE conflict)
Diffstat (limited to 'editors/linux-sublime3')
-rw-r--r-- | editors/linux-sublime3/Makefile | 51 | ||||
-rw-r--r-- | editors/linux-sublime3/distinfo | 2 | ||||
-rw-r--r-- | editors/linux-sublime3/files/patch-sublime_text.desktop | 24 | ||||
-rw-r--r-- | editors/linux-sublime3/files/sublime.in | 15 | ||||
-rw-r--r-- | editors/linux-sublime3/pkg-descr | 3 | ||||
-rw-r--r-- | editors/linux-sublime3/pkg-plist | 68 |
6 files changed, 163 insertions, 0 deletions
diff --git a/editors/linux-sublime3/Makefile b/editors/linux-sublime3/Makefile new file mode 100644 index 000000000000..42f650ed304a --- /dev/null +++ b/editors/linux-sublime3/Makefile @@ -0,0 +1,51 @@ +# Created by: Miguel Clara <miguelmclara@gmail.com> +# $FreeBSD$ + +PORTNAME= sublime +PORTVERSION= 3.0.83 +PORTREVISION= 1 +CATEGORIES= editors linux +MASTER_SITES= http://c758482.r82.cf2.rackcdn.com/ +PKGNAMEPREFIX= linux- +PKGNAMESUFFIX= 3 +DISTNAME= sublime_text_3_build_3083_x32 + +MAINTAINER= miguelmclara@gmail.com +COMMENT= Sophisticated text editor for code, markup and prose + +USES= desktop-file-utils tar:bzip2 +USE_LINUX= c6 +USE_LINUX_APPS= xorglibs gtk2 + +INSTALLS_ICONS= yes +WRKSRC= ${WRKDIR}/sublime_text_3 + +CONFLICTS= linux-sublime-[0-24-9]* + +NO_BUILD= +SUB_FILES= sublime + +post-patch: + ${BRANDELF} -t Linux ${WRKSRC}/sublime_text + ${BRANDELF} -t Linux ${WRKSRC}/plugin_host + +do-install: + @${MKDIR} ${STAGEDIR}${DATADIR} \ + ${STAGEDIR}${PREFIX}/share/icons/hicolor/16x16/apps/ \ + ${STAGEDIR}${PREFIX}/share/icons/hicolor/32x32/apps/ \ + ${STAGEDIR}${PREFIX}/share/icons/hicolor/48x48/apps/ \ + ${STAGEDIR}${PREFIX}/share/icons/hicolor/128x128/apps/ \ + ${STAGEDIR}${PREFIX}/share/icons/hicolor/256x256/apps/ + + ${INSTALL_DATA} ${WRKSRC}/Icon/16x16/sublime-text.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/16x16/apps/ + ${INSTALL_DATA} ${WRKSRC}/Icon/32x32/sublime-text.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/32x32/apps/ + ${INSTALL_DATA} ${WRKSRC}/Icon/48x48/sublime-text.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/48x48/apps/ + ${INSTALL_DATA} ${WRKSRC}/Icon/128x128/sublime-text.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/128x128/apps/ + ${INSTALL_DATA} ${WRKSRC}/Icon/256x256/sublime-text.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/256x256/apps/ + ${INSTALL_DATA} ${WRKSRC}/sublime_text.desktop ${STAGEDIR}${PREFIX}/share/applications/ + cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR} + ${CHMOD} +x ${STAGEDIR}${DATADIR}/sublime_text + ${CHMOD} +x ${STAGEDIR}${DATADIR}/plugin_host + ${INSTALL} ${WRKDIR}/sublime ${STAGEDIR}${PREFIX}/bin/sublime + +.include <bsd.port.mk> diff --git a/editors/linux-sublime3/distinfo b/editors/linux-sublime3/distinfo new file mode 100644 index 000000000000..a2a9b93e9859 --- /dev/null +++ b/editors/linux-sublime3/distinfo @@ -0,0 +1,2 @@ +SHA256 (sublime_text_3_build_3083_x32.tar.bz2) = 89e8e2bafa041c263d2c5ffd1b8ea3c36d9727c95a3f7a6603bdf1f6c4cc3165 +SIZE (sublime_text_3_build_3083_x32.tar.bz2) = 7572911 diff --git a/editors/linux-sublime3/files/patch-sublime_text.desktop b/editors/linux-sublime3/files/patch-sublime_text.desktop new file mode 100644 index 000000000000..0814f17c9381 --- /dev/null +++ b/editors/linux-sublime3/files/patch-sublime_text.desktop @@ -0,0 +1,24 @@ +--- 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 +-Exec=/opt/sublime_text/sublime_text %F ++Exec=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; diff --git a/editors/linux-sublime3/files/sublime.in b/editors/linux-sublime3/files/sublime.in new file mode 100644 index 000000000000..75390fe6ffc9 --- /dev/null +++ b/editors/linux-sublime3/files/sublime.in @@ -0,0 +1,15 @@ +#!/compat/linux/bin/sh +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 + diff --git a/editors/linux-sublime3/pkg-descr b/editors/linux-sublime3/pkg-descr new file mode 100644 index 000000000000..b4d307909ed4 --- /dev/null +++ b/editors/linux-sublime3/pkg-descr @@ -0,0 +1,3 @@ +Sublime Text is a sophisticated text editor for code, markup and prose. + +WWW: http://www.sublimetext.com diff --git a/editors/linux-sublime3/pkg-plist b/editors/linux-sublime3/pkg-plist new file mode 100644 index 000000000000..ab75997cb0db --- /dev/null +++ b/editors/linux-sublime3/pkg-plist @@ -0,0 +1,68 @@ +bin/sublime +share/applications/sublime_text.desktop +share/icons/hicolor/128x128/apps/sublime-text.png +share/icons/hicolor/16x16/apps/sublime-text.png +share/icons/hicolor/256x256/apps/sublime-text.png +share/icons/hicolor/32x32/apps/sublime-text.png +share/icons/hicolor/48x48/apps/sublime-text.png +%%DATADIR%%/Icon/128x128/sublime-text.png +%%DATADIR%%/Icon/16x16/sublime-text.png +%%DATADIR%%/Icon/256x256/sublime-text.png +%%DATADIR%%/Icon/32x32/sublime-text.png +%%DATADIR%%/Icon/48x48/sublime-text.png +%%DATADIR%%/Packages/ASP.sublime-package +%%DATADIR%%/Packages/ActionScript.sublime-package +%%DATADIR%%/Packages/AppleScript.sublime-package +%%DATADIR%%/Packages/Batch File.sublime-package +%%DATADIR%%/Packages/C#.sublime-package +%%DATADIR%%/Packages/C++.sublime-package +%%DATADIR%%/Packages/CSS.sublime-package +%%DATADIR%%/Packages/Clojure.sublime-package +%%DATADIR%%/Packages/Color Scheme - Default.sublime-package +%%DATADIR%%/Packages/D.sublime-package +%%DATADIR%%/Packages/Default.sublime-package +%%DATADIR%%/Packages/Diff.sublime-package +%%DATADIR%%/Packages/Erlang.sublime-package +%%DATADIR%%/Packages/Go.sublime-package +%%DATADIR%%/Packages/Graphviz.sublime-package +%%DATADIR%%/Packages/Groovy.sublime-package +%%DATADIR%%/Packages/HTML.sublime-package +%%DATADIR%%/Packages/Haskell.sublime-package +%%DATADIR%%/Packages/Java.sublime-package +%%DATADIR%%/Packages/JavaScript.sublime-package +%%DATADIR%%/Packages/LaTeX.sublime-package +%%DATADIR%%/Packages/Language - English.sublime-package +%%DATADIR%%/Packages/Lisp.sublime-package +%%DATADIR%%/Packages/Lua.sublime-package +%%DATADIR%%/Packages/Makefile.sublime-package +%%DATADIR%%/Packages/Markdown.sublime-package +%%DATADIR%%/Packages/Matlab.sublime-package +%%DATADIR%%/Packages/OCaml.sublime-package +%%DATADIR%%/Packages/Objective-C.sublime-package +%%DATADIR%%/Packages/PHP.sublime-package +%%DATADIR%%/Packages/Pascal.sublime-package +%%DATADIR%%/Packages/Perl.sublime-package +%%DATADIR%%/Packages/Python.sublime-package +%%DATADIR%%/Packages/R.sublime-package +%%DATADIR%%/Packages/Rails.sublime-package +%%DATADIR%%/Packages/Regular Expressions.sublime-package +%%DATADIR%%/Packages/RestructuredText.sublime-package +%%DATADIR%%/Packages/Ruby.sublime-package +%%DATADIR%%/Packages/SQL.sublime-package +%%DATADIR%%/Packages/Scala.sublime-package +%%DATADIR%%/Packages/ShellScript.sublime-package +%%DATADIR%%/Packages/TCL.sublime-package +%%DATADIR%%/Packages/Text.sublime-package +%%DATADIR%%/Packages/Textile.sublime-package +%%DATADIR%%/Packages/Theme - Default.sublime-package +%%DATADIR%%/Packages/Vintage.sublime-package +%%DATADIR%%/Packages/XML.sublime-package +%%DATADIR%%/Packages/YAML.sublime-package +%%DATADIR%%/changelog.txt +%%DATADIR%%/crash_reporter +%%DATADIR%%/plugin_host +%%DATADIR%%/python3.3.zip +%%DATADIR%%/sublime.py +%%DATADIR%%/sublime_plugin.py +%%DATADIR%%/sublime_text +%%DATADIR%%/sublime_text.desktop |