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, 30 Jan 2018 10:14:43
Message-Id: 1517307268.ba0b81af6736e1be8209ffa4e24a658642c15662.polynomial-c@gentoo
1 commit: ba0b81af6736e1be8209ffa4e24a658642c15662
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jan 30 09:14:18 2018 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 30 10:14:28 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ba0b81af
7
8 app-editors/nano: Bump to version 2.9.3
9
10 Package-Manager: Portage-2.3.21, Repoman-2.3.6
11
12 app-editors/nano/Manifest | 1 +
13 app-editors/nano/nano-2.9.3.ebuild | 83 ++++++++++++++++++++++++++++++++++++++
14 2 files changed, 84 insertions(+)
15
16 diff --git a/app-editors/nano/Manifest b/app-editors/nano/Manifest
17 index 559e402ff26..bd18410966a 100644
18 --- a/app-editors/nano/Manifest
19 +++ b/app-editors/nano/Manifest
20 @@ -2,3 +2,4 @@ DIST nano-2.7.5.tar.gz 2031723 BLAKE2B 30cd6418c438d6a908d7bf0f64151f6fa3c9aa41f
21 DIST nano-2.8.7.tar.gz 2822417 BLAKE2B 2559497b9aee4d4c3cfc86e8af6a54bc0af58588c7bd1142a0e97c6ce50aed66c3852745b83a457263659e97592f0775dcc94c44d818e20440b6524202bfe49a SHA512 511b57f8fe82872827829bca91f7a8666a6ee75924cf2c853332ddd0467abf281c6d3cbaa5dd208c579cbace5bef23d36bd7b62be116aa2175262ed1d15aaf79
22 DIST nano-2.9.1.tar.gz 2839465 BLAKE2B e0d443dc3c86446478edad73042c6b4698a86fdfe3727deac858fa99d52bf319e2b3a120ba57bf79f3b78d9d3d7e8f4b5bdee234f6450882fee06647be371191 SHA512 7eeefd4cb5f02f1ac14ca10c536f873a1a85f3a5ccc5d5c40a12770b26dd0d5b0bbb3a0770b394779c8234891d7226e0d06d72465d7687c971bc62606100d0b6
23 DIST nano-2.9.2.tar.gz 2839256 BLAKE2B 6e27ad0ff72a17461d614f2222ef33bf2abaaa0f4576a8e378524b090c702adafa86e78d976cf5b5dcd2ca1da802aeeff9b3f4bc5e81fa31b8164ef2979708d6 SHA512 b45afb593a04029a137f49551242f2dae901482878cca4aac6cba1c0c8af38a83994daadbd025e90f019cfa9d1273784de4491bbadf47104914904af804661d1
24 +DIST nano-2.9.3.tar.gz 2874342 BLAKE2B f0983af89037c15747e416df8b156d325994244dce3a1d3339a0a34597d6b25a1888132d28b393cde36c7fd18375036816a9e7f6b26afe8a85ea32b27dee4969 SHA512 cce389a00dc4db899d7f73522e991bee5fa1fd0538a1af08aa75563e29e6cfba38b53acbba1d95e7876f3cac6298b5cada102d700334446419aadfe61ac18d2a
25
26 diff --git a/app-editors/nano/nano-2.9.3.ebuild b/app-editors/nano/nano-2.9.3.ebuild
27 new file mode 100644
28 index 00000000000..74791e40685
29 --- /dev/null
30 +++ b/app-editors/nano/nano-2.9.3.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="6"
36 +
37 +inherit eutils 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:3}/${MY_P}.tar.gz"
44 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-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 + rm -rf "${D}"/trash
99 +
100 + dodoc doc/sample.nanorc
101 + docinto html
102 + dodoc doc/faq.html
103 + insinto /etc
104 + newins doc/sample.nanorc nanorc
105 + if ! use minimal ; then
106 + # Enable colorization by default.
107 + sed -i \
108 + -e '/^# include /s:# *::' \
109 + "${ED%/}"/etc/nanorc || die
110 + fi
111 +
112 + dodir /usr/bin
113 + dosym ../../bin/nano /usr/bin/nano
114 +}