1 |
commit: 4f90be61f21ab87daafa51a38dbffef0d423480a |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jul 1 22:07:59 2017 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jul 1 22:09:45 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4f90be61 |
7 |
|
8 |
app-editors/sublime-text: Initial addition |
9 |
|
10 |
* Ebuilds taken from https://github.com/DamnWidget/sublime-text |
11 |
and simplified (no eselect module) and updated to EAPI 6. |
12 |
|
13 |
Bug: https://bugs.gentoo.org/show_bug.cgi?id=405461 |
14 |
Package-Manager: Portage-2.3.6, Repoman-2.3.2 |
15 |
|
16 |
app-editors/sublime-text/Manifest | 4 ++ |
17 |
app-editors/sublime-text/metadata.xml | 7 +++ |
18 |
app-editors/sublime-text/sublime-text-2.0.2.ebuild | 52 +++++++++++++++++++++ |
19 |
.../sublime-text/sublime-text-3_pre3126.ebuild | 53 ++++++++++++++++++++++ |
20 |
licenses/Sublime | 42 +++++++++++++++++ |
21 |
5 files changed, 158 insertions(+) |
22 |
|
23 |
diff --git a/app-editors/sublime-text/Manifest b/app-editors/sublime-text/Manifest |
24 |
new file mode 100644 |
25 |
index 00000000000..522b4750750 |
26 |
--- /dev/null |
27 |
+++ b/app-editors/sublime-text/Manifest |
28 |
@@ -0,0 +1,4 @@ |
29 |
+DIST sublime-text-2.0.2_x32.tar.bz2 5584673 SHA256 07338e041cfb348938fa8069f0aad3b5b43c319b7ec564ffff1489796f2dcf08 SHA512 08d99183a102b376109a140f2c58cac2ecd49179e639a80da9860ae03a223229df217c9316b7571b10b59983ad49d8145b86c6e20175f3cd87021aca1d7527bc WHIRLPOOL 725c0ce10bc439f04157ea9050277f37a4807c847ab8dd38ca1db205c1228037b8678eeb5b19ba5a79c4711b2101d630b5bfc82e50ddb6ccba1b9d011808a1d5 |
30 |
+DIST sublime-text-2.0.2_x64.tar.bz2 5662968 SHA256 01baed30d66432e30002a309ff0393967be1daba5cce653e43bba6bd6c38ab84 SHA512 330dc9c4141d0e01f19605b397126b9ca0703377d565cbc552f4bc622ba54b38dbf2485aca71d6f24e3160e71ea40b2057ce66a3907ff6766916fb39438e9113 WHIRLPOOL 167a60f851ee14c1879b422987ef9c496c64d924b2fc94ce8dd19d95847d31c184bb24cbb50293044f37e60336b9349ec7f7a689f7f2d0f076db432dfdf5d713 |
31 |
+DIST sublime_text_3_build_3126_x32.tar.bz2 9258647 SHA256 92ffefa470f0777897ed0dfb7c1635426105271da9b5affbe8c1e82039718e29 SHA512 f8377adbad072577995918c7c8311ae63c7290581b00200e698ded18722893edf0baa7227480c8fc6143be30d695fae1e7312f7a9ac6728b8a397ea814a829fa WHIRLPOOL 7f45a898aa036cc56ea931bc6b0ae48499d60e5b640700724874bc22414d44f0b04e4df939a5a9c968b65fdd71c2be060daf57bf269fbfdc4ef463ba6e6b058d |
32 |
+DIST sublime_text_3_build_3126_x64.tar.bz2 9313954 SHA256 18db132e9a305fa3129014b608628e06f9442f48d09cfe933b3b1a84dd18727a SHA512 a0a683b3cef45fba2a294cb044e5dc24ed3ea8d8a669321ee15844a48b88fbd345d50f499a9feb865735b15b44ff99d6b5f8aaee453245b9fd61e9e3d1c69f26 WHIRLPOOL f41520ed96db71de1fca374ba36645016f72801ea17a983c865eaeb7835cda75ee9dbd9cebca247b961dd6db29ca9f9d2c6babb076dba49b3660ef56c9c97d43 |
33 |
|
34 |
diff --git a/app-editors/sublime-text/metadata.xml b/app-editors/sublime-text/metadata.xml |
35 |
new file mode 100644 |
36 |
index 00000000000..3c5abf825ae |
37 |
--- /dev/null |
38 |
+++ b/app-editors/sublime-text/metadata.xml |
39 |
@@ -0,0 +1,7 @@ |
40 |
+<?xml version="1.0" encoding="UTF-8"?> |
41 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
42 |
+<pkgmetadata> |
43 |
+ <maintainer type="person"> |
44 |
+ <email>soap@g.o</email> |
45 |
+ </maintainer> |
46 |
+</pkgmetadata> |
47 |
|
48 |
diff --git a/app-editors/sublime-text/sublime-text-2.0.2.ebuild b/app-editors/sublime-text/sublime-text-2.0.2.ebuild |
49 |
new file mode 100644 |
50 |
index 00000000000..68b9fdd7e90 |
51 |
--- /dev/null |
52 |
+++ b/app-editors/sublime-text/sublime-text-2.0.2.ebuild |
53 |
@@ -0,0 +1,52 @@ |
54 |
+# Copyright 1999-2017 Gentoo Foundation |
55 |
+# Distributed under the terms of the GNU General Public License v2 |
56 |
+ |
57 |
+EAPI=6 |
58 |
+ |
59 |
+inherit eutils gnome2-utils |
60 |
+ |
61 |
+# get the major version from PV |
62 |
+MV=${PV:0:1} |
63 |
+ |
64 |
+DESCRIPTION="Sophisticated text editor for code, markup and prose" |
65 |
+HOMEPAGE="http://www.sublimetext.com" |
66 |
+SRC_URI=" |
67 |
+ amd64? ( https://download.sublimetext.com/Sublime%20Text%20${PV}%20x64.tar.bz2 -> ${P}_x64.tar.bz2 ) |
68 |
+ x86? ( https://download.sublimetext.com/Sublime%20Text%20${PV}.tar.bz2 -> ${P}_x32.tar.bz2 )" |
69 |
+ |
70 |
+LICENSE="Sublime" |
71 |
+SLOT="0" |
72 |
+KEYWORDS="~amd64 ~x86" |
73 |
+IUSE="dbus" |
74 |
+RESTRICT="bindist mirror strip" |
75 |
+ |
76 |
+RDEPEND=" |
77 |
+ dev-libs/glib:2 |
78 |
+ x11-libs/gtk+:2 |
79 |
+ x11-libs/libX11 |
80 |
+ dbus? ( sys-apps/dbus )" |
81 |
+ |
82 |
+QA_PREBUILT="*" |
83 |
+S="${WORKDIR}/Sublime Text ${MV}" |
84 |
+ |
85 |
+# Sublime bundles the kitchen sink, which includes python and other assorted |
86 |
+# modules. Do not try to unbundle these because you are guaranteed to fail. |
87 |
+ |
88 |
+src_install() { |
89 |
+ insinto /opt/${PN}${MV} |
90 |
+ doins -r "Pristine Packages" lib |
91 |
+ doins sublime_plugin.py PackageSetup.py |
92 |
+ |
93 |
+ exeinto /opt/${PN}${MV} |
94 |
+ doexe sublime_text |
95 |
+ dosym ../../opt/${PN}${MV}/sublime_text /usr/bin/sublime_text |
96 |
+ |
97 |
+ local size |
98 |
+ for size in 16 32 48 128 256; do |
99 |
+ newicon -s ${size} Icon/${size}x${size}/sublime_text.png sublime-text.png |
100 |
+ done |
101 |
+ |
102 |
+ make_desktop_entry "sublime_text" "Sublime Text ${MV}" \ |
103 |
+ /usr/share/icons/hicolor/48x48/apps/sublime-text.png \ |
104 |
+ "TextEditor;IDE;Development" "StartupNotify=true" |
105 |
+} |
106 |
|
107 |
diff --git a/app-editors/sublime-text/sublime-text-3_pre3126.ebuild b/app-editors/sublime-text/sublime-text-3_pre3126.ebuild |
108 |
new file mode 100644 |
109 |
index 00000000000..0bb29dc9143 |
110 |
--- /dev/null |
111 |
+++ b/app-editors/sublime-text/sublime-text-3_pre3126.ebuild |
112 |
@@ -0,0 +1,53 @@ |
113 |
+# Copyright 1999-2017 Gentoo Foundation |
114 |
+# Distributed under the terms of the GNU General Public License v2 |
115 |
+ |
116 |
+EAPI=6 |
117 |
+ |
118 |
+inherit eutils gnome2-utils |
119 |
+ |
120 |
+# get the major version from PV |
121 |
+MV=${PV:0:1} |
122 |
+MY_PV=${PV#*_pre} |
123 |
+ |
124 |
+DESCRIPTION="Sophisticated text editor for code, markup and prose" |
125 |
+HOMEPAGE="http://www.sublimetext.com" |
126 |
+SRC_URI=" |
127 |
+ amd64? ( https://download.sublimetext.com/sublime_text_${MV}_build_${MY_PV}_x64.tar.bz2 ) |
128 |
+ x86? ( https://download.sublimetext.com/sublime_text_${MV}_build_${MY_PV}_x32.tar.bz2 )" |
129 |
+ |
130 |
+LICENSE="Sublime" |
131 |
+SLOT="0" |
132 |
+KEYWORDS="~amd64 ~x86" |
133 |
+IUSE="dbus" |
134 |
+RESTRICT="bindist mirror strip" |
135 |
+ |
136 |
+RDEPEND=" |
137 |
+ dev-libs/glib:2 |
138 |
+ x11-libs/gtk+:2 |
139 |
+ x11-libs/libX11 |
140 |
+ dbus? ( sys-apps/dbus )" |
141 |
+ |
142 |
+QA_PREBUILT="*" |
143 |
+S="${WORKDIR}/sublime_text_${MV}" |
144 |
+ |
145 |
+# Sublime bundles the kitchen sink, which includes python and other assorted |
146 |
+# modules. Do not try to unbundle these because you are guaranteed to fail. |
147 |
+ |
148 |
+src_install() { |
149 |
+ insinto /opt/${PN}${MV} |
150 |
+ doins -r Packages |
151 |
+ doins changelog.txt sublime_plugin.py sublime.py python3.3.zip |
152 |
+ |
153 |
+ exeinto /opt/${PN}${MV} |
154 |
+ doexe crash_reporter plugin_host sublime_text |
155 |
+ dosym ../../opt/${PN}${MV}/sublime_text /usr/bin/sublime_text |
156 |
+ |
157 |
+ local size |
158 |
+ for size in 32 48 128 256; do |
159 |
+ newicon -s ${size} Icon/${size}x${size}/sublime-text.png sublime-text.png |
160 |
+ done |
161 |
+ |
162 |
+ make_desktop_entry "sublime_text" "Sublime Text ${MV}" \ |
163 |
+ /usr/share/icons/hicolor/48x48/apps/sublime-text.png \ |
164 |
+ "TextEditor;IDE;Development" "StartupNotify=true" |
165 |
+} |
166 |
|
167 |
diff --git a/licenses/Sublime b/licenses/Sublime |
168 |
new file mode 100644 |
169 |
index 00000000000..5fb2be34966 |
170 |
--- /dev/null |
171 |
+++ b/licenses/Sublime |
172 |
@@ -0,0 +1,42 @@ |
173 |
+The SOFTWARE PRODUCT (SUBLIME TEXT) is protected by copyright laws and |
174 |
+international copyright treaties, as well as other intellectual property laws and |
175 |
+treaties. The SOFTWARE PRODUCT is licensed, not sold. |
176 |
+ |
177 |
+1. LICENSES |
178 |
+ SUBLIME TEXT is licensed as follows: |
179 |
+ a. Installation and Usage. |
180 |
+ Licenses are per user and valid for use on all supported operating |
181 |
+ systems. License keys may be used on multiple computers and operating |
182 |
+ systems, provided the license key holder is the primary user. Businesses |
183 |
+ must purchase at least as many licenses as the number of people using |
184 |
+ SUBLIME TEXT. |
185 |
+ b. Backup Copies. |
186 |
+ You may make copies of the license key and or SUBLIME TEXT for |
187 |
+ backup and archival purposes. |
188 |
+2. DESCRIPTION OF OTHER RIGHTS AND LIMITATIONS |
189 |
+ a. Maintenance of Copyright Notices. |
190 |
+ You must not remove or alter any copyright notices on any copy of |
191 |
+ SUBLIME TEXT. |
192 |
+ b. Distribution. |
193 |
+ You may not distribute or sell license keys or SUBLIME TEXT to third |
194 |
+ parties. Licenses will be revoked if distributed or sold to third parties. |
195 |
+ c. Rental. |
196 |
+ You may not rent, lease, or lend the license key or SUBLIME TEXT. |
197 |
+3. COPYRIGHT |
198 |
+ All title, including but not limited to copyrights, in and to SUBLIME TEXT and |
199 |
+ any copies thereof are owned by SUBLIME HQ PTY LTD. |
200 |
+4. NO WARRANTIES |
201 |
+ SUBLIME HQ PTY LTD expressly disclaims any warranty for SUBLIME TEXT, |
202 |
+ which is provided 'as is' without any express or implied warranty of any kind, |
203 |
+ including but not limited to any warranties of merchantability, non- |
204 |
+ infringement, or fitness of a particular purpose. |
205 |
+5. LIMITATION OF LIABILITY |
206 |
+ In no event shall SUBLIME HQ PTY LTD be liable for any damages due to use |
207 |
+ of SUBLIME TEXT, to the maximum extent permitted by law. This includes |
208 |
+ without limitation, lost profits, business interruption, or lost information. In no |
209 |
+ event will SUBLIME HQ PTY LTD be liable for loss of data or for indirect, |
210 |
+ special, incidental, consequential (including lost profit), or other damages. |
211 |
+ SUBLIME HQ PTY LTD shall have no liability with respect to the content of |
212 |
+ SUBLIME TEXT or any part thereof, including but not limited to errors or |
213 |
+ omissions contained therein, libel, trademark rights, business interruption, |
214 |
+ loss of privacy or the disclosure of confidential information. |