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: Mon, 10 Sep 2018 07:49:17
Message-Id: 1536565741.b53df1917ec2157a29864b18e7c01188091ac9c2.polynomial-c@gentoo
1 commit: b53df1917ec2157a29864b18e7c01188091ac9c2
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Mon Sep 10 07:47:01 2018 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 10 07:49:01 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b53df191
7
8 app-editors/nano: Bump to version 3.0
9
10 Package-Manager: Portage-2.3.49, Repoman-2.3.10
11
12 app-editors/nano/Manifest | 1 +
13 app-editors/nano/nano-3.0.ebuild | 83 ++++++++++++++++++++++++++++++++++++++++
14 2 files changed, 84 insertions(+)
15
16 diff --git a/app-editors/nano/Manifest b/app-editors/nano/Manifest
17 index 505c4d0f0d6..03bafee5dbc 100644
18 --- a/app-editors/nano/Manifest
19 +++ b/app-editors/nano/Manifest
20 @@ -1,3 +1,4 @@
21 DIST nano-2.8.7.tar.gz 2822417 BLAKE2B 2559497b9aee4d4c3cfc86e8af6a54bc0af58588c7bd1142a0e97c6ce50aed66c3852745b83a457263659e97592f0775dcc94c44d818e20440b6524202bfe49a SHA512 511b57f8fe82872827829bca91f7a8666a6ee75924cf2c853332ddd0467abf281c6d3cbaa5dd208c579cbace5bef23d36bd7b62be116aa2175262ed1d15aaf79
22 DIST nano-2.9.7.tar.gz 2913055 BLAKE2B 87e04c50a6485c961dddeb7e4fe4b3defda874eb91f373ae1357afdcafd4c207cdf789d72563fdfecb22eabb8dca29559d8fe8abdb0bd36ba1cae7fdf14b1447 SHA512 b62eda79d5d65e4d2020b22624aca06a891747e0e7eeb7b0698bfd9f90d7d1163240d123b7f727868aac09d815e9835f146f7f16e9cbdd5acd7f55311d4acbb7
23 DIST nano-2.9.8.tar.gz 2905951 BLAKE2B 95b78c43a052be68956f5b9493c418c23a9db40b56f709b17217bce257333b69e78e8f8bec191b21df8aa408ce2d3c7d68bc82cf2f785df9b31929f4f41b4325 SHA512 dcc7b074b585135e34339648fc725f54964488813d49fac50cf88c11d7cfcb8514907dbc2631ce7664ab0241717e8c42833e3c037070c80c8e7bee68fc280a2d
24 +DIST nano-3.0.tar.xz 1508248 BLAKE2B 1af09a02b9a7c2aac5ce48e9df12d682d1b213885330e5e936c674602249ca6227fb190611a03d9253c93749e892c1ef5e9569c72bb7df749b6b0888da90fdcd SHA512 120b606d65672a905e9ef9f3b55381cc62b7929abeaf409ea4af6be9f51b3d038e6e68f082755cbb7e198f0fb5203e0f4796c6c96ebd054d9a2241b313fcdda1
25
26 diff --git a/app-editors/nano/nano-3.0.ebuild b/app-editors/nano/nano-3.0.ebuild
27 new file mode 100644
28 index 00000000000..4d2b8d0818e
29 --- /dev/null
30 +++ b/app-editors/nano/nano-3.0.ebuild
31 @@ -0,0 +1,83 @@
32 +# Copyright 1999-2018 Gentoo Foundation
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.xz"
44 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~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 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 + nls? ( sys-devel/gettext )
62 + virtual/pkgconfig
63 + static? ( ${LIB_DEPEND} )"
64 +
65 +src_prepare() {
66 + default
67 + if [[ ${PV} == "9999" ]] ; then
68 + eautoreconf
69 + fi
70 +}
71 +
72 +src_configure() {
73 + use static && append-ldflags -static
74 + local myconf=(
75 + --bindir="${EPREFIX}"/bin
76 + --htmldir=/trash
77 + $(use_enable !minimal color)
78 + $(use_enable !minimal multibuffer)
79 + $(use_enable !minimal nanorc)
80 + --disable-wrapping-as-root
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 + case ${CHOST} in
91 + *-gnu*|*-uclibc*) myconf+=( "--with-wordbounds" ) ;; #467848
92 + esac
93 + econf "${myconf[@]}"
94 +}
95 +
96 +src_install() {
97 + default
98 + # don't use "${ED}" here or things break (#654534)
99 + rm -r "${D%/}"/trash || die
100 +
101 + dodoc doc/sample.nanorc
102 + docinto html
103 + dodoc doc/faq.html
104 + insinto /etc
105 + newins doc/sample.nanorc nanorc
106 + if ! use minimal ; then
107 + # Enable colorization by default.
108 + sed -i \
109 + -e '/^# include /s:# *::' \
110 + "${ED%/}"/etc/nanorc || die
111 + fi
112 +
113 + dosym ../../bin/nano /usr/bin/nano
114 +}