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: Tue, 31 Mar 2020 22:07:09
Message-Id: 1585692421.ee9db2e0807c551477ad80791a4d6ea5abba2c52.polynomial-c@gentoo
1 commit: ee9db2e0807c551477ad80791a4d6ea5abba2c52
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Tue Mar 31 20:08:27 2020 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Tue Mar 31 22:07:01 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ee9db2e0
7
8 app-editors/nano: Bump to version 4.9.1
9
10 Package-Manager: Portage-2.3.96, Repoman-2.3.22
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 app-editors/nano/Manifest | 1 +
14 app-editors/nano/nano-4.9.1.ebuild | 80 ++++++++++++++++++++++++++++++++++++++
15 2 files changed, 81 insertions(+)
16
17 diff --git a/app-editors/nano/Manifest b/app-editors/nano/Manifest
18 index 78a27a56925..5a34202719b 100644
19 --- a/app-editors/nano/Manifest
20 +++ b/app-editors/nano/Manifest
21 @@ -1,2 +1,3 @@
22 DIST nano-4.6.tar.gz 2970798 BLAKE2B d6dfc702d374d1cbcd61080c8e0082b7931dc8c593c97eb705d878d25487a78dc1ebcb8004f742f5ecc3af1b5a31abcf6577e87aba96fb95d16029ff55e7af58 SHA512 76fb43495ca1f88ee8864eee5d023b6cd86bc35fba00151b4c6af53ae06e6b3828379e7d52a16c7df0956e9e04602a86ff8e8a7c1997320507ca041195bf004b
23 +DIST nano-4.9.1.tar.gz 2995183 BLAKE2B a5e455d94e683bd3ae00c37bd4395465ded281e1cbf434a0035b2d816b53b6d24f3fc966c44c8da643122dc2920f8ddefb0d37574baafe947dd107e1ede7034d SHA512 155622092ee5a99dab30a6acd5cf35ecf087476aa48eabcdf7e1259af098483f84eef7569380fe7c47d4d69f63e61af10a3cc5c29c45f1242c17366c0f15835b
24 DIST nano-4.9.tar.gz 3000427 BLAKE2B 37ed08fa6b902951687ef26a527e1a0da3199946c73bed5d9fd0464a76af643b55a0900e7c1a1237af31867a7231f1b383dad423e780408560fa8246b18e30a4 SHA512 abce064a5cb55f730e41a7a8fbd8b2f9626fc6834b30cd05d62fe73b7f284d8cd80f44c6b84bb5370b980f00d3a71cf8c33408628229c2ee3b8a1670fa5e953c
25
26 diff --git a/app-editors/nano/nano-4.9.1.ebuild b/app-editors/nano/nano-4.9.1.ebuild
27 new file mode 100644
28 index 00000000000..e27dda0e78d
29 --- /dev/null
30 +++ b/app-editors/nano/nano-4.9.1.ebuild
31 @@ -0,0 +1,80 @@
32 +# Copyright 1999-2020 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +inherit flag-o-matic
38 +if [[ ${PV} == "9999" ]] ; then
39 + EGIT_REPO_URI="git://git.sv.gnu.org/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 ~ppc-aix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~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 slang +spell +split-usr static unicode"
53 +
54 +LIB_DEPEND=">=sys-libs/ncurses-5.9-r1:0=[unicode?]
55 + sys-libs/ncurses:0=[static-libs(+)]
56 + magic? ( sys-apps/file[static-libs(+)] )
57 + nls? ( virtual/libintl )
58 + !ncurses? ( slang? ( sys-libs/slang[static-libs(+)] ) )"
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 +src_prepare() {
67 + default
68 + if [[ ${PV} == "9999" ]] ; then
69 + eautoreconf
70 + fi
71 +}
72 +
73 +src_configure() {
74 + use static && append-ldflags -static
75 + local myconf=(
76 + --bindir="${EPREFIX}"/bin
77 + --htmldir=/trash
78 + $(use_enable !minimal color)
79 + $(use_enable !minimal multibuffer)
80 + $(use_enable !minimal nanorc)
81 + $(use_enable magic libmagic)
82 + $(use_enable spell speller)
83 + $(use_enable justify)
84 + $(use_enable debug)
85 + $(use_enable nls)
86 + $(use_enable unicode utf8)
87 + $(use_enable minimal tiny)
88 + $(usex ncurses --without-slang $(use_with slang))
89 + )
90 + econf "${myconf[@]}"
91 +}
92 +
93 +src_install() {
94 + default
95 + # don't use "${ED}" here or things break (#654534)
96 + rm -r "${D}"/trash || die
97 +
98 + dodoc doc/sample.nanorc
99 + docinto html
100 + dodoc doc/faq.html
101 + insinto /etc
102 + newins doc/sample.nanorc nanorc
103 + if ! use minimal ; then
104 + # Enable colorization by default.
105 + sed -i \
106 + -e '/^# include /s:# *::' \
107 + "${ED}"/etc/nanorc || die
108 + fi
109 +
110 + use split-usr && dosym ../../bin/nano /usr/bin/nano
111 +}