1 |
commit: b93b7e314f743d17578aa9d04f46fb3e2744821e |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Oct 6 11:45:36 2021 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Oct 6 11:47:09 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b93b7e31 |
7 |
|
8 |
app-editors/nano: Bump to version 5.9 |
9 |
|
10 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
11 |
|
12 |
app-editors/nano/Manifest | 1 + |
13 |
app-editors/nano/nano-5.9.ebuild | 90 ++++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 91 insertions(+) |
15 |
|
16 |
diff --git a/app-editors/nano/Manifest b/app-editors/nano/Manifest |
17 |
index 59d6aa4d082..6a3ac3a6a98 100644 |
18 |
--- a/app-editors/nano/Manifest |
19 |
+++ b/app-editors/nano/Manifest |
20 |
@@ -1,3 +1,4 @@ |
21 |
DIST nano-5.6.1.tar.gz 2957693 BLAKE2B dbd1a63b6e0997a30a2ef40ad3248a7f53e2613d4662d5b9fc585bd0e2dfe78f8e8c71354e1a5bbf043ca99e0a69742df7846656d1f0706af79bcbfc53b6d1a6 SHA512 e27ca4411472409bd6ff8d812405e4d8aa869c1348c0a6adbb1c538fb5bdd112b322ef6d8a13df0b43c472d925b94111ac676d03f360d79181dee335a4fd09cf |
22 |
DIST nano-5.7.tar.gz 2989413 BLAKE2B 604f3140bd963661bb7d13933b5bac867bcfd90635287dc8f160e4bda094641c20f2fe2157fe1b5eda28842f78c4e651a354ed6edcafe67b4f2bf6c9eda0051c SHA512 f6d580918c488b15a5f8f77b4b52ea3e86535c251fe32dd978bae014bcadd543a5696f7741018ffd05b6271c1defe6a67687577f3cfe059ed2b4d3e422b2a694 |
23 |
DIST nano-5.8.tar.gz 3038948 BLAKE2B 126976539e8ab3a7be986edc7422bc58d31e0c81dffbf34c9b701d09d268233ed0de4f07ac8d2dd0963b768cce4e2afe89a4f8ed9fd216a71ebac98c7f403deb SHA512 dd3a7e328f256052707c4d28f2ca32f9e44de123e3dee3c0747fbab222d215b2a895c403b9274fd286e19477b8be3314fc83167eec32194370105b1e70c05a3f |
24 |
+DIST nano-5.9.tar.gz 3093675 BLAKE2B d4fa2f0e64b6ab243a2b127ff894e900098f6261f5d46657ff3459cc0b51683a63fc5de54bd4545b47bc16c633b09142f8501b84a09df3e8123da5233a063766 SHA512 61bf4de300579bc6f0028a2237e105228d8657819c02f32c7ef8f84f9c54734df8fb9a9cddbce0f7721ebc5ac8ae4799c118291ae15480082f8b1317019a485d |
25 |
|
26 |
diff --git a/app-editors/nano/nano-5.9.ebuild b/app-editors/nano/nano-5.9.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..188b7842b16 |
29 |
--- /dev/null |
30 |
+++ b/app-editors/nano/nano-5.9.ebuild |
31 |
@@ -0,0 +1,90 @@ |
32 |
+# Copyright 1999-2021 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=8 |
36 |
+ |
37 |
+inherit flag-o-matic |
38 |
+if [[ ${PV} == "9999" ]] ; then |
39 |
+ EGIT_REPO_URI="https://git.savannah.gnu.org/git/nano.git" |
40 |
+ inherit git-r3 autotools |
41 |
+else |
42 |
+ MY_P="${PN}-${PV/_}" |
43 |
+ SRC_URI="https://www.nano-editor.org/dist/v${PV:0:1}/${MY_P}.tar.gz" |
44 |
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
45 |
+fi |
46 |
+ |
47 |
+DESCRIPTION="GNU GPL'd Pico clone with more functionality" |
48 |
+HOMEPAGE="https://www.nano-editor.org/ https://wiki.gentoo.org/wiki/Nano/Basics_Guide" |
49 |
+ |
50 |
+LICENSE="GPL-3" |
51 |
+SLOT="0" |
52 |
+IUSE="debug justify magic minimal ncurses nls +spell +split-usr static unicode" |
53 |
+ |
54 |
+LIB_DEPEND=" |
55 |
+ >=sys-libs/ncurses-5.9-r1:=[unicode(+)?] |
56 |
+ sys-libs/ncurses:=[static-libs(+)] |
57 |
+ magic? ( sys-apps/file[static-libs(+)] ) |
58 |
+ nls? ( virtual/libintl )" |
59 |
+RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )" |
60 |
+DEPEND="${RDEPEND} |
61 |
+ static? ( ${LIB_DEPEND} )" |
62 |
+BDEPEND=" |
63 |
+ nls? ( sys-devel/gettext ) |
64 |
+ virtual/pkgconfig |
65 |
+" |
66 |
+ |
67 |
+REQUIRED_USE=" |
68 |
+ magic? ( !minimal ) |
69 |
+" |
70 |
+ |
71 |
+src_prepare() { |
72 |
+ default |
73 |
+ if [[ ${PV} == "9999" ]] ; then |
74 |
+ eautoreconf |
75 |
+ fi |
76 |
+} |
77 |
+ |
78 |
+src_configure() { |
79 |
+ use static && append-ldflags -static |
80 |
+ local myconf=( |
81 |
+ --bindir="${EPREFIX}"/bin |
82 |
+ --htmldir=/trash |
83 |
+ $(use_enable !minimal color) |
84 |
+ $(use_enable !minimal multibuffer) |
85 |
+ $(use_enable !minimal nanorc) |
86 |
+ $(use_enable magic libmagic) |
87 |
+ $(use_enable spell speller) |
88 |
+ $(use_enable justify) |
89 |
+ $(use_enable debug) |
90 |
+ $(use_enable nls) |
91 |
+ $(use_enable unicode utf8) |
92 |
+ $(use_enable minimal tiny) |
93 |
+ ) |
94 |
+ econf "${myconf[@]}" |
95 |
+} |
96 |
+ |
97 |
+src_install() { |
98 |
+ default |
99 |
+ # don't use "${ED}" here or things break (#654534) |
100 |
+ rm -r "${D}"/trash || die |
101 |
+ |
102 |
+ dodoc doc/sample.nanorc |
103 |
+ docinto html |
104 |
+ dodoc doc/faq.html |
105 |
+ insinto /etc |
106 |
+ newins doc/sample.nanorc nanorc |
107 |
+ if ! use minimal ; then |
108 |
+ # Enable colorization by default. |
109 |
+ sed -i \ |
110 |
+ -e '/^# include /s:# *::' \ |
111 |
+ "${ED}"/etc/nanorc || die |
112 |
+ |
113 |
+ # Since nano-5.0 these are no longer being "enabled" by default |
114 |
+ # (bug #736848) |
115 |
+ local rcdir="/usr/share/nano" |
116 |
+ mv "${ED}"${rcdir}/extra/* "${ED}"/${rcdir}/ || die |
117 |
+ rmdir "${ED}"${rcdir}/extra || die |
118 |
+ fi |
119 |
+ |
120 |
+ use split-usr && dosym ../../bin/nano /usr/bin/nano |
121 |
+} |