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: Sat, 29 Oct 2016 20:33:42
Message-Id: 1477773201.afb8a48600f6fc8248dc17b725629db1ea923d20.polynomial-c@gentoo
1 commit: afb8a48600f6fc8248dc17b725629db1ea923d20
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 29 20:20:58 2016 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 29 20:33:21 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=afb8a486
7
8 app-editors/nano: Bump to version 2.7.1
9
10 Package-Manager: portage-2.3.2
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 app-editors/nano/Manifest | 1 +
14 app-editors/nano/nano-2.7.1.ebuild | 84 ++++++++++++++++++++++++++++++++++++++
15 2 files changed, 85 insertions(+)
16
17 diff --git a/app-editors/nano/Manifest b/app-editors/nano/Manifest
18 index 805d3ec..390a6f8 100644
19 --- a/app-editors/nano/Manifest
20 +++ b/app-editors/nano/Manifest
21 @@ -3,3 +3,4 @@ DIST nano-2.5.3.tar.gz 1967760 SHA256 b2b060129b9feff2d4870d803a441178c96531de9a
22 DIST nano-2.6.1.tar.gz 1999439 SHA256 56f2ba1c532647bee36abd5f87a714400af0be084cf857a65bc8f41a0dc28fe5 SHA512 224d643ce08b4c031263c1926d767c671d41e58b182b7ad32f9de2a8ed606c5b39da924cbe62052455584e087a8966285da17cb1fbf235680639351c390aec90 WHIRLPOOL da902989aceac4b15438c58603a56e1cc02b61ff0972f56032130af25d40b0d40344b063feb1aa2f1fd3f5bacbb325505865d0d0daf2e215aafbac0527ee41d6
23 DIST nano-2.6.3.tar.gz 2019354 SHA256 4f4054e12f2181c8e436163e931a0a565612242ff9e566c4d1adeda0f91fd503 SHA512 5079c0da976e3cfef9f3980e37c2501837bc66bb98fadd6fe7f02b061b83c99454678833fd43c74e6796cdc4ee9028ccba7a8a05e0f86e7a6517ba4d4c6bc95e WHIRLPOOL 94520ca9c7a11342133adfd3a1e9e9c77a6c07ab18b1b51bf39918b331abc6bd7ebeb937c2ec8ed3e59b8d0468e40f4e5811e66a8aecd469ad42c595c1b61fe4
24 DIST nano-2.7.0.tar.gz 2019889 SHA256 5dd1e9cf8e3de676c141a0b23f312e68380ef049926e2913e2114bbe32fbeac3 SHA512 d70719b9623e3b3c5f43dbf4dd1d53be5d498b28416d1c6bc4459887d34531222827dfb23bc6932a6304fe59df8d278810de813b4bc08b38c03f1badeddad12f WHIRLPOOL 5470eb106671d8b483fd7349d01d52c107082bf8bd67d03ff9cec3f656a9e280d1eda97befcf42067dc8732009fe9fcaaadbfa00af98be3ddbe073bd133d6386
25 +DIST nano-2.7.1.tar.gz 2032955 SHA256 81547310d3ab7a220426c9c2f2435a372fb43d4b27818f016de25698862ae118 SHA512 4cd87ad4c19ac6dad6894b35f15ae6794da488a075a374687ae7e950194c355dbf2c120744af9185bd10f722ecf0780525be2525c3e396113ed61f2e64af7d26 WHIRLPOOL 2be75c370c98d1f0b659ef73b37f553d5546eb08b72c6b0e539c43d971fa20c880ef81697ed5c6c74eba14393518e905f1aa1449ca7423e8242287b513c1e408
26
27 diff --git a/app-editors/nano/nano-2.7.1.ebuild b/app-editors/nano/nano-2.7.1.ebuild
28 new file mode 100644
29 index 00000000..c75dad9
30 --- /dev/null
31 +++ b/app-editors/nano/nano-2.7.1.ebuild
32 @@ -0,0 +1,84 @@
33 +# Copyright 1999-2016 Gentoo Foundation
34 +# Distributed under the terms of the GNU General Public License v2
35 +# $Id$
36 +
37 +EAPI=6
38 +
39 +inherit eutils flag-o-matic
40 +if [[ ${PV} == "9999" ]] ; then
41 + EGIT_REPO_URI="git://git.sv.gnu.org/nano.git"
42 + inherit git-r3 autotools
43 +else
44 + MY_P=${PN}-${PV/_}
45 + SRC_URI="https://www.nano-editor.org/dist/v${PV:0:3}/${MY_P}.tar.gz"
46 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~ia64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
47 +fi
48 +
49 +DESCRIPTION="GNU GPL'd Pico clone with more functionality"
50 +HOMEPAGE="https://www.nano-editor.org/ https://wiki.gentoo.org/wiki/Nano/Basics_Guide"
51 +
52 +LICENSE="GPL-3"
53 +SLOT="0"
54 +IUSE="debug justify +magic minimal ncurses nls slang +spell static unicode"
55 +
56 +LIB_DEPEND=">=sys-libs/ncurses-5.9-r1:0=[unicode?]
57 + sys-libs/ncurses:0=[static-libs(+)]
58 + magic? ( sys-apps/file[static-libs(+)] )
59 + nls? ( virtual/libintl )
60 + !ncurses? ( slang? ( sys-libs/slang[static-libs(+)] ) )"
61 +RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )"
62 +DEPEND="${RDEPEND}
63 + nls? ( sys-devel/gettext )
64 + virtual/pkgconfig
65 + static? ( ${LIB_DEPEND} )"
66 +
67 +src_prepare() {
68 + if [[ ${PV} == "9999" ]] ; then
69 + eautoreconf
70 + fi
71 + default
72 +}
73 +
74 +src_configure() {
75 + use static && append-ldflags -static
76 + local myconf=()
77 + case ${CHOST} in
78 + *-gnu*|*-uclibc*) myconf+=( "--with-wordbounds" ) ;; #467848
79 + esac
80 + econf \
81 + --bindir="${EPREFIX}"/bin \
82 + --htmldir=/trash \
83 + $(use_enable !minimal color) \
84 + $(use_enable !minimal multibuffer) \
85 + $(use_enable !minimal nanorc) \
86 + --disable-wrapping-as-root \
87 + $(use_enable magic libmagic) \
88 + $(use_enable spell speller) \
89 + $(use_enable justify) \
90 + $(use_enable debug) \
91 + $(use_enable nls) \
92 + $(use_enable unicode utf8) \
93 + $(use_enable minimal tiny) \
94 + $(usex ncurses --without-slang $(use_with slang)) \
95 + "${myconf[@]}"
96 +}
97 +
98 +src_install() {
99 + default
100 + rm -rf "${D}"/trash
101 +
102 + dodoc doc/nanorc.sample
103 + docinto html
104 + dodoc doc/faq.html
105 + insinto /etc
106 + newins doc/nanorc.sample nanorc
107 + if ! use minimal ; then
108 + # Enable colorization by default.
109 + sed -i \
110 + -e '/^# include /s:# *::' \
111 + "${ED}"/etc/nanorc || die
112 + fi
113 +
114 + dodir /usr/bin
115 + dosym /bin/nano /usr/bin/nano
116 +}