aboutsummaryrefslogtreecommitdiff
path: root/editors/linux-sublime
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2015-12-29 14:51:58 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2015-12-29 14:51:58 +0000
commit3de45debd105b018f45174919a5c64a9c73a7609 (patch)
treecf37c5d489095059b15eee6910b02110fb58fbdd /editors/linux-sublime
parentbe16d939315e24c73ebf38229d0fe7175514254d (diff)
downloadports-3de45debd105b018f45174919a5c64a9c73a7609.tar.gz
ports-3de45debd105b018f45174919a5c64a9c73a7609.zip
Notes
Diffstat (limited to 'editors/linux-sublime')
-rw-r--r--editors/linux-sublime/Makefile47
-rw-r--r--editors/linux-sublime/distinfo2
-rw-r--r--editors/linux-sublime/files/patch-PackageSetup.py10
-rw-r--r--editors/linux-sublime/files/sublime.in2
-rw-r--r--editors/linux-sublime/pkg-descr3
-rw-r--r--editors/linux-sublime/pkg-plist58
6 files changed, 122 insertions, 0 deletions
diff --git a/editors/linux-sublime/Makefile b/editors/linux-sublime/Makefile
new file mode 100644
index 000000000000..1db31eda3d88
--- /dev/null
+++ b/editors/linux-sublime/Makefile
@@ -0,0 +1,47 @@
+# Created by: Johannes Meixner <xmj@chaot.net>
+# $FreeBSD$
+
+PORTNAME= sublime
+PORTVERSION= 2.0.2
+PORTREVISION= 3
+CATEGORIES= editors linux
+MASTER_SITES= http://c758482.r82.cf2.rackcdn.com/
+DISTNAME= Sublime%20Text%202.0.2
+PKGNAMEPREFIX= linux-
+
+MAINTAINER= xmj@chaot.net
+COMMENT= Sublime Text is a sophisticated text editor for code, markup and prose
+
+USES= tar:bzip2
+INSTALLS_ICONS= yes
+WRKSRC= ${WRKDIR}/"Sublime Text 2"
+
+NO_BUILD=
+STRIP= # don't strip linux binaries.
+SUB_FILES= sublime
+
+USE_LINUX= c6
+USE_LINUX_APPS= xorglibs gtk2
+
+post-patch:
+ ${BRANDELF} -t Linux ${WRKSRC}/sublime_text
+
+do-install:
+ @${MKDIR} ${STAGEDIR}${DATADIR}
+ @${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/16x16/apps/
+ @${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/32x32/apps/
+ @${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/48x48/apps/
+ @${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/128x128/apps/
+ @${MKDIR} ${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/
+ @${RM} -rf ${WRKSRC}/Icon/
+ @cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}
+ @${CHMOD} +x ${STAGEDIR}${DATADIR}/sublime_text
+ @${INSTALL} ${WRKDIR}/sublime ${STAGEDIR}${PREFIX}/bin/sublime
+
+.include <bsd.port.mk>
diff --git a/editors/linux-sublime/distinfo b/editors/linux-sublime/distinfo
new file mode 100644
index 000000000000..2bbe2c4dfb74
--- /dev/null
+++ b/editors/linux-sublime/distinfo
@@ -0,0 +1,2 @@
+SHA256 (Sublime%20Text%202.0.2.tar.bz2) = 07338e041cfb348938fa8069f0aad3b5b43c319b7ec564ffff1489796f2dcf08
+SIZE (Sublime%20Text%202.0.2.tar.bz2) = 5584673
diff --git a/editors/linux-sublime/files/patch-PackageSetup.py b/editors/linux-sublime/files/patch-PackageSetup.py
new file mode 100644
index 000000000000..5f636708ecc6
--- /dev/null
+++ b/editors/linux-sublime/files/patch-PackageSetup.py
@@ -0,0 +1,10 @@
+--- PackageSetup.py.orig 2013-07-08 01:21:09 UTC
++++ PackageSetup.py
+@@ -1,6 +1,5 @@
+-#!python
++#!/usr/bin/env python
+
+-from __future__ import with_statement
+ import glob
+ import os.path
+ import shutil
diff --git a/editors/linux-sublime/files/sublime.in b/editors/linux-sublime/files/sublime.in
new file mode 100644
index 000000000000..4687cded1cf1
--- /dev/null
+++ b/editors/linux-sublime/files/sublime.in
@@ -0,0 +1,2 @@
+#!/compat/linux/bin/sh
+%%DATADIR%%/sublime_text $*
diff --git a/editors/linux-sublime/pkg-descr b/editors/linux-sublime/pkg-descr
new file mode 100644
index 000000000000..b4d307909ed4
--- /dev/null
+++ b/editors/linux-sublime/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-sublime/pkg-plist b/editors/linux-sublime/pkg-plist
new file mode 100644
index 000000000000..43b307edd076
--- /dev/null
+++ b/editors/linux-sublime/pkg-plist
@@ -0,0 +1,58 @@
+bin/sublime
+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%%/PackageSetup.py
+%%DATADIR%%/Pristine Packages/ASP.sublime-package
+%%DATADIR%%/Pristine Packages/ActionScript.sublime-package
+%%DATADIR%%/Pristine Packages/AppleScript.sublime-package
+%%DATADIR%%/Pristine Packages/Batch File.sublime-package
+%%DATADIR%%/Pristine Packages/C#.sublime-package
+%%DATADIR%%/Pristine Packages/C++.sublime-package
+%%DATADIR%%/Pristine Packages/CSS.sublime-package
+%%DATADIR%%/Pristine Packages/Clojure.sublime-package
+%%DATADIR%%/Pristine Packages/Color Scheme - Default.sublime-package
+%%DATADIR%%/Pristine Packages/D.sublime-package
+%%DATADIR%%/Pristine Packages/Default.sublime-package
+%%DATADIR%%/Pristine Packages/Diff.sublime-package
+%%DATADIR%%/Pristine Packages/Erlang.sublime-package
+%%DATADIR%%/Pristine Packages/Go.sublime-package
+%%DATADIR%%/Pristine Packages/Graphviz.sublime-package
+%%DATADIR%%/Pristine Packages/Groovy.sublime-package
+%%DATADIR%%/Pristine Packages/HTML.sublime-package
+%%DATADIR%%/Pristine Packages/Haskell.sublime-package
+%%DATADIR%%/Pristine Packages/Java.sublime-package
+%%DATADIR%%/Pristine Packages/JavaScript.sublime-package
+%%DATADIR%%/Pristine Packages/LaTeX.sublime-package
+%%DATADIR%%/Pristine Packages/Language - English.sublime-package
+%%DATADIR%%/Pristine Packages/Lisp.sublime-package
+%%DATADIR%%/Pristine Packages/Lua.sublime-package
+%%DATADIR%%/Pristine Packages/Makefile.sublime-package
+%%DATADIR%%/Pristine Packages/Markdown.sublime-package
+%%DATADIR%%/Pristine Packages/Matlab.sublime-package
+%%DATADIR%%/Pristine Packages/OCaml.sublime-package
+%%DATADIR%%/Pristine Packages/Objective-C.sublime-package
+%%DATADIR%%/Pristine Packages/PHP.sublime-package
+%%DATADIR%%/Pristine Packages/Perl.sublime-package
+%%DATADIR%%/Pristine Packages/Python.sublime-package
+%%DATADIR%%/Pristine Packages/R.sublime-package
+%%DATADIR%%/Pristine Packages/Rails.sublime-package
+%%DATADIR%%/Pristine Packages/Regular Expressions.sublime-package
+%%DATADIR%%/Pristine Packages/RestructuredText.sublime-package
+%%DATADIR%%/Pristine Packages/Ruby.sublime-package
+%%DATADIR%%/Pristine Packages/SQL.sublime-package
+%%DATADIR%%/Pristine Packages/Scala.sublime-package
+%%DATADIR%%/Pristine Packages/ShellScript.sublime-package
+%%DATADIR%%/Pristine Packages/TCL.sublime-package
+%%DATADIR%%/Pristine Packages/Text.sublime-package
+%%DATADIR%%/Pristine Packages/Textile.sublime-package
+%%DATADIR%%/Pristine Packages/Theme - Default.sublime-package
+%%DATADIR%%/Pristine Packages/User.sublime-package
+%%DATADIR%%/Pristine Packages/Vintage.sublime-package
+%%DATADIR%%/Pristine Packages/XML.sublime-package
+%%DATADIR%%/Pristine Packages/YAML.sublime-package
+%%DATADIR%%/sublime_plugin.py
+%%DATADIR%%/sublime_text
+%%DATADIR%%/lib/python26.zip