1 |
commit: 2a517e340063ae7ce4f8f2aeb47b2a363c037eb5 |
2 |
Author: Max Grinberg <codeswhite <AT> protonmail <DOT> com> |
3 |
AuthorDate: Sun Sep 12 18:20:40 2021 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Sep 14 07:38:12 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2a517e34 |
7 |
|
8 |
app-editors/micro: Version bump to 2.0.10 |
9 |
|
10 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
11 |
Signed-off-by: Max Grinberg <codeswhite <AT> protonmail.com> |
12 |
Closes: https://github.com/gentoo/gentoo/pull/22277 |
13 |
Closes: https://bugs.gentoo.org/812800 |
14 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
15 |
|
16 |
app-editors/micro/Manifest | 3 + |
17 |
app-editors/micro/micro-2.0.10.ebuild | 133 ++++++++++++++++++++++++++++++++++ |
18 |
2 files changed, 136 insertions(+) |
19 |
|
20 |
diff --git a/app-editors/micro/Manifest b/app-editors/micro/Manifest |
21 |
index b28298589ad..138eb4d8bb4 100644 |
22 |
--- a/app-editors/micro/Manifest |
23 |
+++ b/app-editors/micro/Manifest |
24 |
@@ -56,6 +56,8 @@ DIST github.com%2Fzyedidia%2Fjson5%2F@v%2Fv0.0.0-20200102012142-2da050b1a98d.mod |
25 |
DIST github.com%2Fzyedidia%2Fjson5%2F@v%2Fv0.0.0-20200102012142-2da050b1a98d.zip 81515 BLAKE2B 17abd39f209386757e5d8e3edb912b6f71f5ecce3f1cee31f1cac2b46f254d14f07dd262f54fa6f0c6ded359c8d30798a99a2964e4d2ed0cf6372495d3512c66 SHA512 fa1b78d2b42eaa619bf950fa01973c8c5a21b6b647d73f2ee74f9687f473927f6bc0cf7c2a272d10b80a90cfd0d2b82a5f01aa639471b584d13cbfa13a899ea4 |
26 |
DIST github.com%2Fzyedidia%2Fpoller%2F@v%2Fv1.0.1.mod 34 BLAKE2B 22d6340dbabd18dd078d1ceba0ec6f17b15680007822b628a0bad52ac9388745cbb253661aef08d58c63850fa5a478a46b635a8e314a37286de505daf7c4eb35 SHA512 daf83940cc17a02565aa383103449e60cb06ad55c8e7bb42ea4374cf9d4783a8c1b4be8da2d38933c528bf4a558a75e6b96d9e09171c87128c3e650d68c74286 |
27 |
DIST github.com%2Fzyedidia%2Fpoller%2F@v%2Fv1.0.1.zip 25272 BLAKE2B 50eee92c460dfff99f8261c1b5bd45d8ddd029396fff85acb67afe0eb25e0120a683c575d8f331daeb2c9b74e829d418700cc937655fdd8545153e947b3034e8 SHA512 0234099663b08401480685679a73e322bd506791e058423516d0cd6670c6c1ac0999d613a442fa7b1f7846086df0f92d83659e116b713c17709f804003097fd1 |
28 |
+DIST github.com%2Fzyedidia%2Fpty%2F@v%2Fv1.1.15.mod 40 BLAKE2B aff997dcc39cacc15c2c70f9c55b59423e04a0d674c16f69650844da8eaef71d07407db21acbc90e4ca223007572a6d0cdafa8027f3392da97b682c040302eb3 SHA512 ac31a74f5618ad145697ab02ce101f6fab35ae2518ed3ba1f160024b370f9741ebf3fa2831527fe0fcf08b54d81b9793ef096b39a33992c8412ef514bdb0ced5 |
29 |
+DIST github.com%2Fzyedidia%2Fpty%2F@v%2Fv1.1.15.zip 24480 BLAKE2B c12522ff9844ba6cd151074d938f2be36d19c4e5cac4906ee0373116c7b8c3241dac349282c11c3c021c9f4416e3c36a8cd91418eeff29f8406bd8b4a8cb3ba9 SHA512 cd4a9dfd077afeda2c1c501c8d010ff7b51dad6c79354db10be3e869e665ae90f60992132f91d91a8754b8124cb902d91ecfdb5a9fc1aaf7df2d036c720c6023 |
30 |
DIST github.com%2Fzyedidia%2Fpty%2F@v%2Fv2.0.0+incompatible.mod 31 BLAKE2B 0d0decd07c2ebd17e899f2c4032a6dab06ea54a764b90997442d29d5b7464bb993cbeb9a842b547424e8b187717895ad811e589784a213e4d00fabf0b8e28db8 SHA512 919c519a4fb1d1f3d13f1217f59f82aaaa202a65ac201c64ef0ebde46a4e5f6c977282b5afcd11778ad38d35b4591c1190bb94be66010a346a47253d1ee32db2 |
31 |
DIST github.com%2Fzyedidia%2Fpty%2F@v%2Fv2.0.0+incompatible.zip 15796 BLAKE2B d4cb2490b6b8d1914f802e7e767e0d29be06b6946012c4d84f9e7a898a4a2d20d64b9cd84eb5ab729ff8c1d1925a8f3ccab78f56f249d56a7cc5feacadd82ea7 SHA512 a51787e01adcedd20ddbba543351904bdde3c25f44f9621cfe0ffa73ed28d0b21327aadbe529a73374ffbd315b91b4d0d0d7f2c9fcc033d67f21158ce486e2f1 |
32 |
DIST github.com%2Fzyedidia%2Ftcell%2Fv2%2F@v%2Fv2.0.6.mod 348 BLAKE2B ea7eb55e01e85f76b88f072b02e36bbeb800eaec4ce39404f4acc409ac05af51e78c3e26d317cfdade2a3adb28bfddbd5233db60c300bc5f3a8e5eeb7f09eeac SHA512 b3db94f2a7c44d7350d89acb9a118c6f8d3c39530a1af23c5e1aa9f9fa842a06ec5e7f5af4e87901cb08c841e7f953b3f83a3ae6488f9f3d14d4ee063b53ffcb |
33 |
@@ -85,4 +87,5 @@ DIST gopkg.in%2Fyaml.v2%2F@v%2Fv2.2.7.mod 95 BLAKE2B adb3684980f1d8e6c23444e9102 |
34 |
DIST gopkg.in%2Fyaml.v2%2F@v%2Fv2.2.7.zip 80579 BLAKE2B d5de9f0dbf72902ec2244971ef1d62790008d5686ec66b67ca5ded08503168e507d7afdbc38fbfe3b431432e32d2c79540e407a2916ea93de24d45040262366a SHA512 c4a38c485edfd1773be4d3b3dd97c475b1894603526f5d95b40a3ba34b148f3979f0983444009d716e106fea0a2362836a5277f49ea21f764a55279f343a3920 |
35 |
DIST layeh.com%2Fgopher-luar%2F@v%2Fv1.0.7.mod 109 BLAKE2B 08629b072202d338d461af7142fd4049b4db1c2df5997c995edfa9b12b2db2df0da8160db7032bc84215c742ad67021910b2fa3ec87c33c14fec309a137cb174 SHA512 b2ec68ffa8d8e747ebfc1f6103ec980c0e02d372a50d44c1ca289688cceb41006443c02c937975bf5847460a6a071d17f1f0c8ee7549fa1cf4eccdf848020ac2 |
36 |
DIST layeh.com%2Fgopher-luar%2F@v%2Fv1.0.7.zip 36857 BLAKE2B c4ff2a1bbc2dc984fc24065f71b560cbdda220b78d88cff9ed5a91654984cd56c9e85b64a416c140e4b01bfda75734f7c77f882e3fb45a0227b3f47cc02781c8 SHA512 94b70a83a31acde7232223ca82d6588716b39d6463baf5f15d921a5bc24a7d9b98307b8d44d3bbc9a5a82f6e4111b2b9ba1c15ee313a3784a30d63fe5d198bd3 |
37 |
+DIST micro-2.0.10.tar.gz 814030 BLAKE2B 8becaf7caa167747443e1aa3af32e96588af275d2b921fa88fe9d55b4eec22622cf7a68d85d47834159042100414855c5bb3f8b9f7c8d934f762ec63f4d40435 SHA512 06796270a6d99578ac36f3313dffb6ba56c5e8963c6b59562b4ef9e65036ae2ed21ce602b39ee08d2f3c54c501089166fdecc5719a1ca535d84960b3b4b67f72 |
38 |
DIST micro-2.0.9.tar.gz 811560 BLAKE2B 2e461593e71fda69a6f75e5adfaedd7bcf052b8bda9899f03a1e25e3db3bb8071bec80716d14a0ff7a381728871f0705076ef69e4de58f40499a7501343b4063 SHA512 5dbf81deb734618ec0a8ccaffc65f972d8da1d28b761c31bf3f5433c02ad6daa2360b1ea825c0a2cfce2f8d31d6481d468bbe29b42e1c96083c7a941fe42bc3a |
39 |
|
40 |
diff --git a/app-editors/micro/micro-2.0.10.ebuild b/app-editors/micro/micro-2.0.10.ebuild |
41 |
new file mode 100644 |
42 |
index 00000000000..d86140de7e6 |
43 |
--- /dev/null |
44 |
+++ b/app-editors/micro/micro-2.0.10.ebuild |
45 |
@@ -0,0 +1,133 @@ |
46 |
+# Copyright 1999-2021 Gentoo Authors |
47 |
+# Distributed under the terms of the GNU General Public License v2 |
48 |
+ |
49 |
+EAPI=8 |
50 |
+ |
51 |
+inherit go-module optfeature desktop xdg |
52 |
+ |
53 |
+# Building this list can be done by: |
54 |
+# cd $(mktemp -d) |
55 |
+# PV="2.0.10" |
56 |
+# wget "https://github.com/zyedidia/micro/archive/v${PV}.tar.gz" |
57 |
+# tar -xvzf "v${PV}.tar.gz" |
58 |
+# sed -Ee 's/^(.+) h1:.+$/\t"\1"/g' "micro-${PV}/go.sum" > go.sum.out |
59 |
+EGO_SUM=( |
60 |
+ "github.com/blang/semver v3.5.1+incompatible" |
61 |
+ "github.com/blang/semver v3.5.1+incompatible/go.mod" |
62 |
+ "github.com/chzyer/logex v1.1.10/go.mod" |
63 |
+ "github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod" |
64 |
+ "github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod" |
65 |
+ "github.com/davecgh/go-spew v1.1.0/go.mod" |
66 |
+ "github.com/davecgh/go-spew v1.1.1" |
67 |
+ "github.com/davecgh/go-spew v1.1.1/go.mod" |
68 |
+ "github.com/dustin/go-humanize v1.0.0" |
69 |
+ "github.com/dustin/go-humanize v1.0.0/go.mod" |
70 |
+ "github.com/gdamore/encoding v1.0.0" |
71 |
+ "github.com/gdamore/encoding v1.0.0/go.mod" |
72 |
+ "github.com/go-errors/errors v1.0.1" |
73 |
+ "github.com/go-errors/errors v1.0.1/go.mod" |
74 |
+ "github.com/kr/pretty v0.1.0" |
75 |
+ "github.com/kr/pretty v0.1.0/go.mod" |
76 |
+ "github.com/kr/pty v1.1.1/go.mod" |
77 |
+ "github.com/kr/text v0.1.0" |
78 |
+ "github.com/kr/text v0.1.0/go.mod" |
79 |
+ "github.com/lucasb-eyer/go-colorful v1.0.3" |
80 |
+ "github.com/lucasb-eyer/go-colorful v1.0.3/go.mod" |
81 |
+ "github.com/mattn/go-isatty v0.0.11" |
82 |
+ "github.com/mattn/go-isatty v0.0.11/go.mod" |
83 |
+ "github.com/mitchellh/go-homedir v1.1.0" |
84 |
+ "github.com/mitchellh/go-homedir v1.1.0/go.mod" |
85 |
+ "github.com/pmezard/go-difflib v1.0.0" |
86 |
+ "github.com/pmezard/go-difflib v1.0.0/go.mod" |
87 |
+ "github.com/rivo/uniseg v0.1.0" |
88 |
+ "github.com/rivo/uniseg v0.1.0/go.mod" |
89 |
+ "github.com/robertkrimen/otto v0.0.0-20191219234010-c382bd3c16ff" |
90 |
+ "github.com/robertkrimen/otto v0.0.0-20191219234010-c382bd3c16ff/go.mod" |
91 |
+ "github.com/sergi/go-diff v1.1.0" |
92 |
+ "github.com/sergi/go-diff v1.1.0/go.mod" |
93 |
+ "github.com/stretchr/objx v0.1.0/go.mod" |
94 |
+ "github.com/stretchr/testify v1.4.0" |
95 |
+ "github.com/stretchr/testify v1.4.0/go.mod" |
96 |
+ "github.com/xo/terminfo v0.0.0-20200218205459-454e5b68f9e8" |
97 |
+ "github.com/xo/terminfo v0.0.0-20200218205459-454e5b68f9e8/go.mod" |
98 |
+ "github.com/yuin/gopher-lua v0.0.0-20190206043414-8bfc7677f583/go.mod" |
99 |
+ "github.com/yuin/gopher-lua v0.0.0-20191220021717-ab39c6098bdb" |
100 |
+ "github.com/yuin/gopher-lua v0.0.0-20191220021717-ab39c6098bdb/go.mod" |
101 |
+ "github.com/zyedidia/clipboard v1.0.3" |
102 |
+ "github.com/zyedidia/clipboard v1.0.3/go.mod" |
103 |
+ "github.com/zyedidia/glob v0.0.0-20170209203856-dd4023a66dc3" |
104 |
+ "github.com/zyedidia/glob v0.0.0-20170209203856-dd4023a66dc3/go.mod" |
105 |
+ "github.com/zyedidia/go-runewidth v0.0.12" |
106 |
+ "github.com/zyedidia/go-runewidth v0.0.12/go.mod" |
107 |
+ "github.com/zyedidia/go-shellquote v0.0.0-20200613203517-eccd813c0655" |
108 |
+ "github.com/zyedidia/go-shellquote v0.0.0-20200613203517-eccd813c0655/go.mod" |
109 |
+ "github.com/zyedidia/highlight v0.0.0-20170330143449-201131ce5cf5" |
110 |
+ "github.com/zyedidia/highlight v0.0.0-20170330143449-201131ce5cf5/go.mod" |
111 |
+ "github.com/zyedidia/json5 v0.0.0-20200102012142-2da050b1a98d" |
112 |
+ "github.com/zyedidia/json5 v0.0.0-20200102012142-2da050b1a98d/go.mod" |
113 |
+ "github.com/zyedidia/poller v1.0.1" |
114 |
+ "github.com/zyedidia/poller v1.0.1/go.mod" |
115 |
+ "github.com/zyedidia/pty v1.1.15" |
116 |
+ "github.com/zyedidia/pty v1.1.15/go.mod" |
117 |
+ "github.com/zyedidia/tcell/v2 v2.0.8" |
118 |
+ "github.com/zyedidia/tcell/v2 v2.0.8/go.mod" |
119 |
+ "github.com/zyedidia/terminal v0.0.0-20180726154117-533c623e2415" |
120 |
+ "github.com/zyedidia/terminal v0.0.0-20180726154117-533c623e2415/go.mod" |
121 |
+ "golang.org/x/sys v0.0.0-20190204203706-41f3e6584952/go.mod" |
122 |
+ "golang.org/x/sys v0.0.0-20190626150813-e07cf5db2756/go.mod" |
123 |
+ "golang.org/x/sys v0.0.0-20191026070338-33540a1f6037" |
124 |
+ "golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod" |
125 |
+ "golang.org/x/text v0.3.0/go.mod" |
126 |
+ "golang.org/x/text v0.3.2" |
127 |
+ "golang.org/x/text v0.3.2/go.mod" |
128 |
+ "golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod" |
129 |
+ "gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod" |
130 |
+ "gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15" |
131 |
+ "gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod" |
132 |
+ "gopkg.in/sourcemap.v1 v1.0.5" |
133 |
+ "gopkg.in/sourcemap.v1 v1.0.5/go.mod" |
134 |
+ "gopkg.in/yaml.v2 v2.2.2/go.mod" |
135 |
+ "gopkg.in/yaml.v2 v2.2.4/go.mod" |
136 |
+ "gopkg.in/yaml.v2 v2.2.7" |
137 |
+ "gopkg.in/yaml.v2 v2.2.7/go.mod" |
138 |
+ "layeh.com/gopher-luar v1.0.7" |
139 |
+ "layeh.com/gopher-luar v1.0.7/go.mod" |
140 |
+) |
141 |
+ |
142 |
+go-module_set_globals |
143 |
+ |
144 |
+DESCRIPTION="Modern and intuitive terminal-based text editor" |
145 |
+HOMEPAGE="https://github.com/zyedidia/micro" |
146 |
+SRC_URI=" |
147 |
+ https://github.com/zyedidia/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz |
148 |
+ ${EGO_SUM_SRC_URI} |
149 |
+" |
150 |
+ |
151 |
+LICENSE="MIT Apache-2.0 BSD MPL-2.0" |
152 |
+SLOT="0" |
153 |
+KEYWORDS="~amd64 ~x86" |
154 |
+ |
155 |
+BDEPEND="dev-vcs/git" |
156 |
+ |
157 |
+src_compile() { |
158 |
+ go build -v -work -x -o ${PN} -ldflags \ |
159 |
+ "-s -w -X github.com/zyedidia/micro/v2/internal/util.Version=${PV} -X github.com/zyedidia/micro/v2/internal/util.CompileDate=$(date -u +%Y-%m-%dT%H:%M:%SZ)" \ |
160 |
+ ./cmd/micro || die |
161 |
+} |
162 |
+ |
163 |
+src_install() { |
164 |
+ dobin ${PN} |
165 |
+ doman ./assets/packaging/micro.1 |
166 |
+ domenu assets/packaging/micro.desktop |
167 |
+ einstalldocs |
168 |
+} |
169 |
+ |
170 |
+pkg_postinst() { |
171 |
+ # update desktop file mime cache |
172 |
+ xdg_desktop_database_update |
173 |
+ xdg_pkg_postinst |
174 |
+ |
175 |
+ optfeature_header "Clipboard support with display servers:" |
176 |
+ optfeature "Xorg" x11-misc/xsel x11-misc/xclip |
177 |
+ optfeature "Wayland" gui-apps/wl-clipboard |
178 |
+} |