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: Sun, 25 Aug 2019 21:19:51
Message-Id: 1566767981.4e4b214749e2be91a1aacfafe22e1e1c8d591fe8.polynomial-c@gentoo
1 commit: 4e4b214749e2be91a1aacfafe22e1e1c8d591fe8
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Sun Aug 25 21:19:23 2019 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Sun Aug 25 21:19:41 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4e4b2147
7
8 app-editors/nano: Bump to version 4.4
9
10 Package-Manager: Portage-2.3.73, Repoman-2.3.17
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 app-editors/nano/Manifest | 1 +
14 app-editors/nano/nano-4.4.ebuild | 80 ++++++++++++++++++++++++++++++++++++++++
15 2 files changed, 81 insertions(+)
16
17 diff --git a/app-editors/nano/Manifest b/app-editors/nano/Manifest
18 index 0903871775f..929405682ab 100644
19 --- a/app-editors/nano/Manifest
20 +++ b/app-editors/nano/Manifest
21 @@ -1,2 +1,3 @@
22 DIST nano-4.2.tar.gz 2928595 BLAKE2B 42bb0ccbf4961706c6c645eb2310a646a7decd3617117a079ffe9e3718c8054ab823a5aff3e543c06c4c398f83579a679267a9ad6f113ba451b76d67e14b07cc SHA512 a5dd9ce96cd09d12c65108ea6a18b2cf1c2b055929e58d3e84beb0725607b4b5a3f8ae3fda0ab658c853cc4cac70c089fee716e1bb5a700f2506a7a3e1bea1bd
23 DIST nano-4.3.tar.gz 2939418 BLAKE2B 2464118a1cd16477637a8e98c1d179cbea1f33cc1548eff09b3b77b613b5b2b628915da1d11c04064f7211a0254461eab09ddae6dda582004d77adea9dff2360 SHA512 2fb76e61079efb0a16f3ea27fdc7da749c71d61a752d96beee4f8376ad0071792ecaa5f3dc627fbcce175227ca48c60c1a4a3e17bfbc89180aa484c28fe37746
24 +DIST nano-4.4.tar.gz 2947594 BLAKE2B 20cdc21e136ff213ecc2dd64531e51c552547633a422566c325b8d777800d5f77691751d3acae3b9489eeec40c0893fe913dd8669b29ab985cdf0ac4a3381192 SHA512 14f23de002f5919a3b75ef8c0cfb93a45c8b8ba6c87d8b7c472ab2106fb4c1c17a3846f99ad6e2d2d160aa14aea44c23067fa58b2e668a41616f5cff2feea50f
25
26 diff --git a/app-editors/nano/nano-4.4.ebuild b/app-editors/nano/nano-4.4.ebuild
27 new file mode 100644
28 index 00000000000..9934461b7d4
29 --- /dev/null
30 +++ b/app-editors/nano/nano-4.4.ebuild
31 @@ -0,0 +1,80 @@
32 +# Copyright 1999-2019 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 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~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 +}