1 |
commit: 4fe38e9340c7ab885ef0ddefc2050ede600f34f5 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Nov 30 04:56:26 2020 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 30 04:56:26 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=4fe38e93 |
7 |
|
8 |
app-editors/nano: bump to 4.9.3 |
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/Manifest | 1 + |
14 |
app-editors/nano/nano-4.9.3.ebuild | 82 ++++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 83 insertions(+) |
16 |
|
17 |
diff --git a/app-editors/nano/Manifest b/app-editors/nano/Manifest |
18 |
index 2c800ebc16..d0fe9c4999 100644 |
19 |
--- a/app-editors/nano/Manifest |
20 |
+++ b/app-editors/nano/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST nano-2.7.3.tar.gz 2048675 BLAKE2B df7bb6b64b2b273e94e2584043f50292a646e76fee2aa634c5b8f25878ffab4b78320f25f9879fa97313b36463d58274020ea00cf2149168887684d3c7817314 SHA512 cd159cf193f05b37f770ac79e532fe96be158688d241ab7090861016fe0da9dde2ab504d0703b8feea8043e1deded3f10f0ab4dd5cceba99fe4a1dfcf5062b0b |
23 |
+DIST nano-4.9.3.tar.gz 2999198 BLAKE2B a96f707936934a965a9a41dfe13ac1ebbe1a5e38db714df6d219b2c6539f24924d4c4f0451508718f66259854806032b84dc89850a7fd55d157f28ae23531d0e SHA512 233e6ed103441bd2c85ed21c50547f85dc0838cc750a5e9b16ecfb393e3b7b978e971af4a4164062c7c267c98895ecb696c02cbd2e4c2eb1ceee657fd026c30a |
24 |
|
25 |
diff --git a/app-editors/nano/nano-4.9.3.ebuild b/app-editors/nano/nano-4.9.3.ebuild |
26 |
new file mode 100644 |
27 |
index 0000000000..3fedc6281e |
28 |
--- /dev/null |
29 |
+++ b/app-editors/nano/nano-4.9.3.ebuild |
30 |
@@ -0,0 +1,82 @@ |
31 |
+# Copyright 1999-2020 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+inherit flag-o-matic |
37 |
+if [[ ${PV} == "9999" ]] ; then |
38 |
+ EGIT_REPO_URI="git://git.sv.gnu.org/nano.git" |
39 |
+ inherit git-r3 autotools |
40 |
+else |
41 |
+ MY_P="${PN}-${PV/_}" |
42 |
+ SRC_URI="https://www.nano-editor.org/dist/v${PV:0:1}/${MY_P}.tar.gz" |
43 |
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
44 |
+fi |
45 |
+ |
46 |
+DESCRIPTION="GNU GPL'd Pico clone with more functionality" |
47 |
+HOMEPAGE="https://www.nano-editor.org/ https://wiki.gentoo.org/wiki/Nano/Basics_Guide" |
48 |
+ |
49 |
+LICENSE="GPL-3" |
50 |
+SLOT="0" |
51 |
+IUSE="debug justify +magic minimal ncurses nls slang +spell +split-usr static unicode" |
52 |
+ |
53 |
+LIB_DEPEND=">=sys-libs/ncurses-5.9-r1:0=[unicode?] |
54 |
+ sys-libs/ncurses:0=[static-libs(+)] |
55 |
+ magic? ( sys-apps/file[static-libs(+)] ) |
56 |
+ nls? ( virtual/libintl ) |
57 |
+ !ncurses? ( slang? ( sys-libs/slang[static-libs(+)] ) )" |
58 |
+RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )" |
59 |
+DEPEND="${RDEPEND} |
60 |
+ static? ( ${LIB_DEPEND} )" |
61 |
+BDEPEND=" |
62 |
+ nls? ( sys-devel/gettext ) |
63 |
+ virtual/pkgconfig |
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 |
+ $(use_enable magic libmagic) |
81 |
+ $(use_enable spell speller) |
82 |
+ $(use_enable justify) |
83 |
+ $(use_enable debug) |
84 |
+ $(use_enable nls) |
85 |
+ $(use_enable unicode utf8) |
86 |
+ $(use_enable minimal tiny) |
87 |
+ $(usex ncurses --without-slang $(use_with slang)) |
88 |
+ ) |
89 |
+ econf "${myconf[@]}" |
90 |
+} |
91 |
+ |
92 |
+src_install() { |
93 |
+ default |
94 |
+ # don't use "${ED}" here or things break (#654534) |
95 |
+ rm -r "${D}"/trash || die |
96 |
+ |
97 |
+ dodoc doc/sample.nanorc |
98 |
+ docinto html |
99 |
+ dodoc doc/faq.html |
100 |
+ insinto /etc |
101 |
+ newins doc/sample.nanorc nanorc |
102 |
+ if ! use minimal ; then |
103 |
+ # Enable colorization by default. |
104 |
+ sed -i \ |
105 |
+ -e '/^# include /s:# *::' \ |
106 |
+ "${ED}"/etc/nanorc || die |
107 |
+ fi |
108 |
+ |
109 |
+ if use split-usr || ! use prefix-guest ; then |
110 |
+ dosym ../../bin/nano /usr/bin/nano |
111 |
+ fi |
112 |
+} |