Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/prefix:master commit in: app-editors/nano/
Date: Mon, 30 Nov 2020 05:04:09
Message-Id: 1606712634.75413e6004749a5c0abf7bc45860a006d415111e.sam@gentoo
1 commit: 75413e6004749a5c0abf7bc45860a006d415111e
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Mon Nov 30 05:03:54 2020 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Mon Nov 30 05:03:54 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=75413e60
7
8 app-editors/nano: sync live
9
10 Package-Manager: Portage-3.0.10.2-prefix, Repoman-3.0.2
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 app-editors/nano/nano-4.9.3.ebuild | 2 +-
14 app-editors/nano/nano-9999.ebuild | 71 ++++++++++++++++++--------------------
15 2 files changed, 35 insertions(+), 38 deletions(-)
16
17 diff --git a/app-editors/nano/nano-4.9.3.ebuild b/app-editors/nano/nano-4.9.3.ebuild
18 index 3fedc6281e..f2672b23e4 100644
19 --- a/app-editors/nano/nano-4.9.3.ebuild
20 +++ b/app-editors/nano/nano-4.9.3.ebuild
21 @@ -76,7 +76,7 @@ src_install() {
22 "${ED}"/etc/nanorc || die
23 fi
24
25 - if use split-usr || ! use prefix-guest ; then
26 + if use split-usr || ( use prefix && ! use prefix-guest ) ; then
27 dosym ../../bin/nano /usr/bin/nano
28 fi
29 }
30
31 diff --git a/app-editors/nano/nano-9999.ebuild b/app-editors/nano/nano-9999.ebuild
32 index dd61bfc2c2..83537e7423 100644
33 --- a/app-editors/nano/nano-9999.ebuild
34 +++ b/app-editors/nano/nano-9999.ebuild
35 @@ -1,17 +1,16 @@
36 -# Copyright 1999-2017 Gentoo Foundation
37 +# Copyright 1999-2020 Gentoo Authors
38 # Distributed under the terms of the GNU General Public License v2
39 -# $Id$
40
41 -EAPI=6
42 +EAPI=7
43
44 -inherit eutils flag-o-matic
45 +inherit flag-o-matic
46 if [[ ${PV} == "9999" ]] ; then
47 EGIT_REPO_URI="git://git.sv.gnu.org/nano.git"
48 inherit git-r3 autotools
49 else
50 - MY_P=${PN}-${PV/_}
51 - SRC_URI="https://www.nano-editor.org/dist/v${PV:0:3}/${MY_P}.tar.gz"
52 - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-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"
53 + MY_P="${PN}-${PV/_}"
54 + SRC_URI="https://www.nano-editor.org/dist/v${PV:0:1}/${MY_P}.tar.gz"
55 + 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"
56 fi
57
58 DESCRIPTION="GNU GPL'd Pico clone with more functionality"
59 @@ -19,7 +18,7 @@ HOMEPAGE="https://www.nano-editor.org/ https://wiki.gentoo.org/wiki/Nano/Basics_
60
61 LICENSE="GPL-3"
62 SLOT="0"
63 -IUSE="debug justify +magic minimal ncurses nls slang +spell static unicode"
64 +IUSE="debug justify +magic minimal ncurses nls slang +spell +split-usr static unicode"
65
66 LIB_DEPEND=">=sys-libs/ncurses-5.9-r1:0=[unicode?]
67 sys-libs/ncurses:0=[static-libs(+)]
68 @@ -28,58 +27,56 @@ LIB_DEPEND=">=sys-libs/ncurses-5.9-r1:0=[unicode?]
69 !ncurses? ( slang? ( sys-libs/slang[static-libs(+)] ) )"
70 RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )"
71 DEPEND="${RDEPEND}
72 + static? ( ${LIB_DEPEND} )"
73 +BDEPEND="
74 nls? ( sys-devel/gettext )
75 virtual/pkgconfig
76 - static? ( ${LIB_DEPEND} )"
77 -
78 +"
79 src_prepare() {
80 + default
81 if [[ ${PV} == "9999" ]] ; then
82 eautoreconf
83 fi
84 - default
85 }
86
87 src_configure() {
88 use static && append-ldflags -static
89 - local myconf=()
90 - case ${CHOST} in
91 - *-gnu*|*-uclibc*) myconf+=( "--with-wordbounds" ) ;; #467848
92 - esac
93 - econf \
94 - --bindir="${EPREFIX}"/bin \
95 - --htmldir=/trash \
96 - $(use_enable !minimal color) \
97 - $(use_enable !minimal multibuffer) \
98 - $(use_enable !minimal nanorc) \
99 - --disable-wrapping-as-root \
100 - $(use_enable magic libmagic) \
101 - $(use_enable spell speller) \
102 - $(use_enable justify) \
103 - $(use_enable debug) \
104 - $(use_enable nls) \
105 - $(use_enable unicode utf8) \
106 - $(use_enable minimal tiny) \
107 - $(usex ncurses --without-slang $(use_with slang)) \
108 - "${myconf[@]}"
109 + local myconf=(
110 + --bindir="${EPREFIX}"/bin
111 + --htmldir=/trash
112 + $(use_enable !minimal color)
113 + $(use_enable !minimal multibuffer)
114 + $(use_enable !minimal nanorc)
115 + $(use_enable magic libmagic)
116 + $(use_enable spell speller)
117 + $(use_enable justify)
118 + $(use_enable debug)
119 + $(use_enable nls)
120 + $(use_enable unicode utf8)
121 + $(use_enable minimal tiny)
122 + $(usex ncurses --without-slang $(use_with slang))
123 + )
124 + econf "${myconf[@]}"
125 }
126
127 src_install() {
128 default
129 - rm -rf "${D}"/trash
130 + # don't use "${ED}" here or things break (#654534)
131 + rm -r "${D}"/trash || die
132
133 - dodoc doc/nanorc.sample
134 + dodoc doc/sample.nanorc
135 docinto html
136 dodoc doc/faq.html
137 insinto /etc
138 - newins doc/nanorc.sample nanorc
139 + newins doc/sample.nanorc nanorc
140 if ! use minimal ; then
141 # Enable colorization by default.
142 sed -i \
143 -e '/^# include /s:# *::' \
144 "${ED}"/etc/nanorc || die
145 fi
146 - if ! use prefix-guest ; then
147 - dodir /usr/bin
148 - dosym /bin/nano /usr/bin/nano
149 +
150 + if use split-usr || ( use prefix && ! use prefix-guest ) ; then
151 + dosym ../../bin/nano /usr/bin/nano
152 fi
153 }