1 |
commit: 4dfab1c8f5e997a67b7de782257cfe3b436a91af |
2 |
Author: stefson <herrtimson <AT> yahoo <DOT> de> |
3 |
AuthorDate: Thu Jan 25 19:28:23 2018 +0000 |
4 |
Commit: Aric Belsito <lluixhi <AT> gmail <DOT> com> |
5 |
CommitDate: Thu Jan 25 19:58:09 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=4dfab1c8 |
7 |
|
8 |
app-editors/nano: in tree works |
9 |
|
10 |
app-editors/nano/Manifest | 1 - |
11 |
app-editors/nano/files/nano-2.6.3-minimal.patch | 97 ------------------------- |
12 |
app-editors/nano/metadata.xml | 38 ---------- |
13 |
app-editors/nano/nano-2.8.2.ebuild | 83 --------------------- |
14 |
4 files changed, 219 deletions(-) |
15 |
|
16 |
diff --git a/app-editors/nano/Manifest b/app-editors/nano/Manifest |
17 |
deleted file mode 100644 |
18 |
index d307f30..0000000 |
19 |
--- a/app-editors/nano/Manifest |
20 |
+++ /dev/null |
21 |
@@ -1 +0,0 @@ |
22 |
-DIST nano-2.8.2.tar.gz 2778849 SHA256 0aa9cd6bd5b372ce9a196a9677af58c1826a9235a14daffe604100a9c259854b SHA512 7f4626de4bf8c2250e494c6682743ad599632023a839acff66685ac045a88789061c0a6fc70eba7c3c57f960e633acf425b033d1cc5fbfa644b422515b810f75 WHIRLPOOL a1bfff134cfff6d9f203d252303822d383b206311a738020f771c0222863b58bff33b646336bfe78941112ea01a39a2e013684e660bac0e98f4f3d1a1d65adbb |
23 |
|
24 |
diff --git a/app-editors/nano/files/nano-2.6.3-minimal.patch b/app-editors/nano/files/nano-2.6.3-minimal.patch |
25 |
deleted file mode 100644 |
26 |
index 7e5387e..0000000 |
27 |
--- a/app-editors/nano/files/nano-2.6.3-minimal.patch |
28 |
+++ /dev/null |
29 |
@@ -1,97 +0,0 @@ |
30 |
-https://bugs.gentoo.org/591026 |
31 |
- |
32 |
-From 928a24c20444a652212e544a506ed55c44efdf3b Mon Sep 17 00:00:00 2001 |
33 |
-From: Benno Schulenberg <bensberg@×××××××××.net> |
34 |
-Date: Thu, 11 Aug 2016 12:37:11 +0200 |
35 |
-Subject: [PATCH] input: look at the modifier keys only when compiled on Linux |
36 |
- |
37 |
-This fixes https://savannah.gnu.org/bugs/?48751 reported by Andrew Ho. |
38 |
- |
39 |
-This also fixes compilation when configured with --enable-tiny. |
40 |
---- |
41 |
- src/global.c | 3 +++ |
42 |
- src/nano.c | 3 ++- |
43 |
- src/proto.h | 3 +++ |
44 |
- src/winio.c | 4 ++++ |
45 |
- 4 files changed, 12 insertions(+), 1 deletion(-) |
46 |
- |
47 |
-diff --git a/src/global.c b/src/global.c |
48 |
-index 69c66473508d..3347476f1afb 100644 |
49 |
---- a/src/global.c |
50 |
-+++ b/src/global.c |
51 |
-@@ -33,8 +33,11 @@ volatile sig_atomic_t sigwinch_counter = 0; |
52 |
- /* Is incremented by the handler whenever a SIGWINCH occurs. */ |
53 |
- #endif |
54 |
- |
55 |
-+#if defined(__linux__) && !defined(NANO_TINY) |
56 |
- bool console; |
57 |
- /* Whether we're running on a Linux VC (TRUE) or under X (FALSE). */ |
58 |
-+#endif |
59 |
-+ |
60 |
- bool meta_key; |
61 |
- /* Whether the current keystroke is a Meta key. */ |
62 |
- bool focusing = TRUE; |
63 |
-diff --git a/src/nano.c b/src/nano.c |
64 |
-index 6e55f4948346..4d82c938628c 100644 |
65 |
---- a/src/nano.c |
66 |
-+++ b/src/nano.c |
67 |
-@@ -2482,9 +2482,10 @@ int main(int argc, char **argv) |
68 |
- /* Set up the terminal state. */ |
69 |
- terminal_init(); |
70 |
- |
71 |
-+#if defined(__linux__) && !defined(NANO_TINY) |
72 |
- /* Check whether we're running on a Linux console. */ |
73 |
- console = (getenv("DISPLAY") == NULL); |
74 |
-- |
75 |
-+#endif |
76 |
- #ifdef DEBUG |
77 |
- fprintf(stderr, "Main: set up windows\n"); |
78 |
- #endif |
79 |
-diff --git a/src/proto.h b/src/proto.h |
80 |
-index 6396f3735127..4f6624ea0f16 100644 |
81 |
---- a/src/proto.h |
82 |
-+++ b/src/proto.h |
83 |
-@@ -30,7 +30,10 @@ |
84 |
- extern volatile sig_atomic_t sigwinch_counter; |
85 |
- #endif |
86 |
- |
87 |
-+#if defined(__linux__) && !defined(NANO_TINY) |
88 |
- extern bool console; |
89 |
-+#endif |
90 |
-+ |
91 |
- extern bool meta_key; |
92 |
- extern bool focusing; |
93 |
- |
94 |
-diff --git a/src/winio.c b/src/winio.c |
95 |
-index bcfb8a2adf3f..1f31195af5d3 100644 |
96 |
---- a/src/winio.c |
97 |
-+++ b/src/winio.c |
98 |
-@@ -23,7 +23,9 @@ |
99 |
- #include "proto.h" |
100 |
- #include "revision.h" |
101 |
- |
102 |
-+#if defined(__linux__) && !defined(NANO_TINY) |
103 |
- #include <sys/ioctl.h> |
104 |
-+#endif |
105 |
- |
106 |
- #include <stdio.h> |
107 |
- #include <stdarg.h> |
108 |
-@@ -504,6 +506,7 @@ int parse_kbinput(WINDOW *win) |
109 |
- return sc_seq_or(do_next_block, 0); |
110 |
- #endif |
111 |
- |
112 |
-+#if defined(__linux__) && !defined(NANO_TINY) |
113 |
- /* When not running under X, check for the bare arrow keys whether |
114 |
- * the Ctrl key is being held together with them. */ |
115 |
- if (console && (retval == KEY_UP || retval == KEY_DOWN || |
116 |
-@@ -521,6 +524,7 @@ int parse_kbinput(WINDOW *win) |
117 |
- return sc_seq_or(do_next_word_void, 0); |
118 |
- } |
119 |
- } |
120 |
-+#endif /* __linux__ && !NANO_TINY */ |
121 |
- |
122 |
- switch (retval) { |
123 |
- #ifdef KEY_SLEFT |
124 |
--- |
125 |
-2.11.1 |
126 |
- |
127 |
|
128 |
diff --git a/app-editors/nano/metadata.xml b/app-editors/nano/metadata.xml |
129 |
deleted file mode 100644 |
130 |
index 707af36..0000000 |
131 |
--- a/app-editors/nano/metadata.xml |
132 |
+++ /dev/null |
133 |
@@ -1,38 +0,0 @@ |
134 |
-<?xml version="1.0" encoding="UTF-8"?> |
135 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
136 |
-<pkgmetadata> |
137 |
-<maintainer type="person"> |
138 |
- <email>vapier@g.o</email> |
139 |
-</maintainer> |
140 |
-<longdescription> |
141 |
-GNU nano - an enhanced clone of the Pico text editor. |
142 |
- |
143 |
-The nano project was started because of a few "problems" with the |
144 |
-wonderfully easy-to-use and friendly Pico text editor. |
145 |
- |
146 |
-First and foremost is its license: the Pine suite does not use the |
147 |
-GPL or a GPL-friendly license, and has unclear restrictions on |
148 |
-redistribution. Because of this, Pine and Pico are not included with |
149 |
-many GNU/Linux distributions. Also, other features (like goto line |
150 |
-number or search and replace) were unavailable until recently or |
151 |
-require a command line flag. Yuck. |
152 |
- |
153 |
-nano aims to solve these problems by emulating the functionality of |
154 |
-Pico as closely as possible while addressing the problems above and |
155 |
-perhaps providing other extra functionality. |
156 |
-</longdescription> |
157 |
-<use> |
158 |
- <flag name="justify">Enable justify/unjustify functions for text formatting.</flag> |
159 |
- <flag name="debug"> |
160 |
- Enable debug messages and assert warnings. Note that these will all be sent |
161 |
- straight to stderr rather than some logging facility. |
162 |
- </flag> |
163 |
- <flag name="magic"> |
164 |
- Add magic file support (sys-apps/file) to automatically detect appropriate syntax highlighting |
165 |
- </flag> |
166 |
- <flag name="minimal"> |
167 |
- Disable all fancy features, including ones that otherwise have a dedicated |
168 |
- USE flag (such as spelling). |
169 |
- </flag> |
170 |
-</use> |
171 |
-</pkgmetadata> |
172 |
|
173 |
diff --git a/app-editors/nano/nano-2.8.2.ebuild b/app-editors/nano/nano-2.8.2.ebuild |
174 |
deleted file mode 100644 |
175 |
index 75a36dd..0000000 |
176 |
--- a/app-editors/nano/nano-2.8.2.ebuild |
177 |
+++ /dev/null |
178 |
@@ -1,83 +0,0 @@ |
179 |
-# Copyright 1999-2017 Gentoo Foundation |
180 |
-# Distributed under the terms of the GNU General Public License v2 |
181 |
- |
182 |
-EAPI="6" |
183 |
- |
184 |
-inherit eutils flag-o-matic |
185 |
-if [[ ${PV} == "9999" ]] ; then |
186 |
- EGIT_REPO_URI="git://git.sv.gnu.org/nano.git" |
187 |
- inherit git-r3 autotools |
188 |
-else |
189 |
- MY_P=${PN}-${PV/_} |
190 |
- SRC_URI="https://www.nano-editor.org/dist/v${PV:0:3}/${MY_P}.tar.gz" |
191 |
- KEYWORDS="amd64 arm ~mips ppc x86" |
192 |
-fi |
193 |
- |
194 |
-DESCRIPTION="GNU GPL'd Pico clone with more functionality" |
195 |
-HOMEPAGE="https://www.nano-editor.org/ https://wiki.gentoo.org/wiki/Nano/Basics_Guide" |
196 |
- |
197 |
-LICENSE="GPL-3" |
198 |
-SLOT="0" |
199 |
-IUSE="debug justify +magic minimal ncurses nls slang +spell static unicode" |
200 |
- |
201 |
-LIB_DEPEND=">=sys-libs/ncurses-5.9-r1:0=[unicode?] |
202 |
- sys-libs/ncurses:0=[static-libs(+)] |
203 |
- magic? ( sys-apps/file[static-libs(+)] ) |
204 |
- nls? ( virtual/libintl ) |
205 |
- !ncurses? ( slang? ( sys-libs/slang[static-libs(+)] ) )" |
206 |
-RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )" |
207 |
-DEPEND="${RDEPEND} |
208 |
- nls? ( sys-devel/gettext ) |
209 |
- virtual/pkgconfig |
210 |
- static? ( ${LIB_DEPEND} )" |
211 |
- |
212 |
-src_prepare() { |
213 |
- if [[ ${PV} == "9999" ]] ; then |
214 |
- eautoreconf |
215 |
- fi |
216 |
- default |
217 |
-} |
218 |
- |
219 |
-src_configure() { |
220 |
- use static && append-ldflags -static |
221 |
- local myconf=() |
222 |
- case ${CHOST} in |
223 |
- *-gnu*|*-uclibc*) myconf+=( "--with-wordbounds" ) ;; #467848 |
224 |
- esac |
225 |
- econf \ |
226 |
- --bindir="${EPREFIX}"/bin \ |
227 |
- --htmldir=/trash \ |
228 |
- $(use_enable !minimal color) \ |
229 |
- $(use_enable !minimal multibuffer) \ |
230 |
- $(use_enable !minimal nanorc) \ |
231 |
- --disable-wrapping-as-root \ |
232 |
- $(use_enable magic libmagic) \ |
233 |
- $(use_enable spell speller) \ |
234 |
- $(use_enable justify) \ |
235 |
- $(use_enable debug) \ |
236 |
- $(use_enable nls) \ |
237 |
- $(use_enable unicode utf8) \ |
238 |
- $(use_enable minimal tiny) \ |
239 |
- $(usex ncurses --without-slang $(use_with slang)) \ |
240 |
- "${myconf[@]}" |
241 |
-} |
242 |
- |
243 |
-src_install() { |
244 |
- default |
245 |
- rm -rf "${D}"/trash |
246 |
- |
247 |
- dodoc doc/sample.nanorc |
248 |
- docinto html |
249 |
- dodoc doc/faq.html |
250 |
- insinto /etc |
251 |
- newins doc/sample.nanorc nanorc |
252 |
- if ! use minimal ; then |
253 |
- # Enable colorization by default. |
254 |
- sed -i \ |
255 |
- -e '/^# include /s:# *::' \ |
256 |
- "${ED}"/etc/nanorc || die |
257 |
- fi |
258 |
- |
259 |
- dodir /usr/bin |
260 |
- dosym /bin/nano /usr/bin/nano |
261 |
-} |