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, 02 Dec 2020 16:53:15
Message-Id: 1606927988.c042d82cef72cb09b598dc55209893a85d8c5fb8.polynomial-c@gentoo
1 commit: c042d82cef72cb09b598dc55209893a85d8c5fb8
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Wed Dec 2 16:42:57 2020 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Wed Dec 2 16:53:08 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c042d82c
7
8 app-editors/nano: Bump to version 5.4
9
10 Package-Manager: Portage-3.0.11, Repoman-3.0.2
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 app-editors/nano/Manifest | 1 +
14 app-editors/nano/nano-5.4.ebuild | 92 ++++++++++++++++++++++++++++++++++++++++
15 2 files changed, 93 insertions(+)
16
17 diff --git a/app-editors/nano/Manifest b/app-editors/nano/Manifest
18 index be38441a134..e1547160876 100644
19 --- a/app-editors/nano/Manifest
20 +++ b/app-editors/nano/Manifest
21 @@ -1,3 +1,4 @@
22 DIST nano-4.9.3.tar.gz 2999198 BLAKE2B a96f707936934a965a9a41dfe13ac1ebbe1a5e38db714df6d219b2c6539f24924d4c4f0451508718f66259854806032b84dc89850a7fd55d157f28ae23531d0e SHA512 233e6ed103441bd2c85ed21c50547f85dc0838cc750a5e9b16ecfb393e3b7b978e971af4a4164062c7c267c98895ecb696c02cbd2e4c2eb1ceee657fd026c30a
23 DIST nano-5.2.tar.gz 2865091 BLAKE2B 3822b3fd8dede897d698401a06ea0b4b49bf39f48d16c750e273007b1795a8adfc71654eadc08039a5c6999973ff7e70148b4c720b32a8f361424404e3c2ff3f SHA512 4c77bcfdf704a7882e944cb6d4cd571b698447500255e5701d30990def56cec0c396a33c761b8149f3cc4208a8dcd0f39372804d54cbe6bc2db9244f4a2259b3
24 DIST nano-5.3.tar.gz 2874796 BLAKE2B d266018f2508153369e10c6f9cf4c53eaeafdf0efe88da6de19efd76ef13fedebe4b9339ae594b751a12cf18a8c4dcd57466ceedfabf61406f63b69c75fceff1 SHA512 019b58779f5a7d9a9472b415715876d0daac313a02b794900339469ee0b5a27ce202e397c00ad6396b7e26a7c303e52c28d981fff85cf774c79a5a8a9835836d
25 +DIST nano-5.4.tar.gz 2898561 BLAKE2B 7e5e48f1e85253a7a4a9be2be2b7663e8798655d9e9e2505df1d1752512058734062af953652c1d11dca464ca06d7c90faf2e54cdb65ba01d0f76cfca0282c18 SHA512 711b1a890649e3a2b62c778e6d54813ed98a8261c47a92aa6d7baa690f86d8563813a764f5dffcc6c259fe9b05f8fe76cf48a3178b09666ba55ee035c91cbe28
26
27 diff --git a/app-editors/nano/nano-5.4.ebuild b/app-editors/nano/nano-5.4.ebuild
28 new file mode 100644
29 index 00000000000..58e6b082147
30 --- /dev/null
31 +++ b/app-editors/nano/nano-5.4.ebuild
32 @@ -0,0 +1,92 @@
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="
69 + !ncurses? ( slang? ( minimal ) )
70 + magic? ( !minimal )
71 +"
72 +
73 +src_prepare() {
74 + default
75 + if [[ ${PV} == "9999" ]] ; then
76 + eautoreconf
77 + fi
78 +}
79 +
80 +src_configure() {
81 + use static && append-ldflags -static
82 + local myconf=(
83 + --bindir="${EPREFIX}"/bin
84 + --htmldir=/trash
85 + $(use_enable !minimal color)
86 + $(use_enable !minimal multibuffer)
87 + $(use_enable !minimal nanorc)
88 + $(use_enable magic libmagic)
89 + $(use_enable spell speller)
90 + $(use_enable justify)
91 + $(use_enable debug)
92 + $(use_enable nls)
93 + $(use_enable unicode utf8)
94 + $(use_enable minimal tiny)
95 + $(usex ncurses --without-slang $(use_with slang))
96 + )
97 + econf "${myconf[@]}"
98 +}
99 +
100 +src_install() {
101 + default
102 + # don't use "${ED}" here or things break (#654534)
103 + rm -r "${D}"/trash || die
104 +
105 + dodoc doc/sample.nanorc
106 + docinto html
107 + dodoc doc/faq.html
108 + insinto /etc
109 + newins doc/sample.nanorc nanorc
110 + if ! use minimal ; then
111 + # Enable colorization by default.
112 + sed -i \
113 + -e '/^# include /s:# *::' \
114 + "${ED}"/etc/nanorc || die
115 +
116 + # Since nano-5.0 these are no longer being "enabled" by default
117 + # (bug #736848)
118 + local rcdir="/usr/share/nano"
119 + mv "${ED}"${rcdir}/extra/* "${ED}"/${rcdir}/ || die
120 + rmdir "${ED}"${rcdir}/extra || die
121 + fi
122 +
123 + use split-usr && dosym ../../bin/nano /usr/bin/nano
124 +}