Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-editors/nano/
Date: Wed, 07 Oct 2020 14:57:55
Message-Id: 1602082667.f0cbb61482efb6a0ce0f1295cf3c2390d9c387b6.polynomial-c@gentoo
1 commit: f0cbb61482efb6a0ce0f1295cf3c2390d9c387b6
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Wed Oct 7 14:50:29 2020 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Wed Oct 7 14:57:47 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f0cbb614
7
8 app-editors/nano: Bump to version 5.3
9
10 Package-Manager: Portage-3.0.8, Repoman-3.0.1
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 app-editors/nano/Manifest | 1 +
14 app-editors/nano/nano-5.3.ebuild | 89 ++++++++++++++++++++++++++++++++++++++++
15 2 files changed, 90 insertions(+)
16
17 diff --git a/app-editors/nano/Manifest b/app-editors/nano/Manifest
18 index bb0bd2d399b..ff6921bd88e 100644
19 --- a/app-editors/nano/Manifest
20 +++ b/app-editors/nano/Manifest
21 @@ -2,3 +2,4 @@ DIST nano-4.9.3.tar.gz 2999198 BLAKE2B a96f707936934a965a9a41dfe13ac1ebbe1a5e38d
22 DIST nano-5.0.tar.gz 3034734 BLAKE2B 03ea59c97c0e421ed92f588a2e6991f968b2f341761db66fda077ab827d00b9eb13930f08011f0028010e2005bb912ead723928b482a0532e924f85757a75569 SHA512 7e650676a15a185a9695eb49ae5cf441e3d42ae13817a9d3e64cb347c795840712778ac464fd5c578cc6464132206ee06dba52a06a218bcc865485ce3502a4bb
23 DIST nano-5.1.tar.gz 2861977 BLAKE2B c826782683d26b4c27ffb82e8c4dabad543fe93f53d942bc6ad57b8acb7959595986216a1936d69b0a63b72da101de2c886995421db93c76ee842313799de78d SHA512 8007f40f27a1235d59f5559b6629a3a5a1a579a2356c8825dfef121f4ba7e6c5196e4cedea441c7e856f9add1e9739b14b4142a0a14dab90841110218149df11
24 DIST nano-5.2.tar.gz 2865091 BLAKE2B 3822b3fd8dede897d698401a06ea0b4b49bf39f48d16c750e273007b1795a8adfc71654eadc08039a5c6999973ff7e70148b4c720b32a8f361424404e3c2ff3f SHA512 4c77bcfdf704a7882e944cb6d4cd571b698447500255e5701d30990def56cec0c396a33c761b8149f3cc4208a8dcd0f39372804d54cbe6bc2db9244f4a2259b3
25 +DIST nano-5.3.tar.gz 2874796 BLAKE2B d266018f2508153369e10c6f9cf4c53eaeafdf0efe88da6de19efd76ef13fedebe4b9339ae594b751a12cf18a8c4dcd57466ceedfabf61406f63b69c75fceff1 SHA512 019b58779f5a7d9a9472b415715876d0daac313a02b794900339469ee0b5a27ce202e397c00ad6396b7e26a7c303e52c28d981fff85cf774c79a5a8a9835836d
26
27 diff --git a/app-editors/nano/nano-5.3.ebuild b/app-editors/nano/nano-5.3.ebuild
28 new file mode 100644
29 index 00000000000..86f22534c12
30 --- /dev/null
31 +++ b/app-editors/nano/nano-5.3.ebuild
32 @@ -0,0 +1,89 @@
33 +# Copyright 1999-2020 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +inherit flag-o-matic
39 +if [[ ${PV} == "9999" ]] ; then
40 + EGIT_REPO_URI="git://git.sv.gnu.org/nano.git"
41 + inherit git-r3 autotools
42 +else
43 + MY_P="${PN}-${PV/_}"
44 + SRC_URI="https://www.nano-editor.org/dist/v${PV:0:1}/${MY_P}.tar.gz"
45 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~ppc-aix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
46 +fi
47 +
48 +DESCRIPTION="GNU GPL'd Pico clone with more functionality"
49 +HOMEPAGE="https://www.nano-editor.org/ https://wiki.gentoo.org/wiki/Nano/Basics_Guide"
50 +
51 +LICENSE="GPL-3"
52 +SLOT="0"
53 +IUSE="debug justify +magic minimal ncurses nls slang +spell +split-usr static unicode"
54 +
55 +LIB_DEPEND=">=sys-libs/ncurses-5.9-r1:0=[unicode?]
56 + sys-libs/ncurses:0=[static-libs(+)]
57 + magic? ( sys-apps/file[static-libs(+)] )
58 + nls? ( virtual/libintl )
59 + !ncurses? ( slang? ( sys-libs/slang[static-libs(+)] ) )"
60 +RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )"
61 +DEPEND="${RDEPEND}
62 + static? ( ${LIB_DEPEND} )"
63 +BDEPEND="
64 + nls? ( sys-devel/gettext )
65 + virtual/pkgconfig
66 +"
67 +
68 +REQUIRED_USE="!ncurses? ( slang? ( minimal ) )"
69 +
70 +src_prepare() {
71 + default
72 + if [[ ${PV} == "9999" ]] ; then
73 + eautoreconf
74 + fi
75 +}
76 +
77 +src_configure() {
78 + use static && append-ldflags -static
79 + local myconf=(
80 + --bindir="${EPREFIX}"/bin
81 + --htmldir=/trash
82 + $(use_enable !minimal color)
83 + $(use_enable !minimal multibuffer)
84 + $(use_enable !minimal nanorc)
85 + $(use_enable magic libmagic)
86 + $(use_enable spell speller)
87 + $(use_enable justify)
88 + $(use_enable debug)
89 + $(use_enable nls)
90 + $(use_enable unicode utf8)
91 + $(use_enable minimal tiny)
92 + $(usex ncurses --without-slang $(use_with slang))
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 +}