1 |
commit: 362f0a3ac008f286eb2ec21480dd25977e0f9efa |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun May 24 13:24:27 2020 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun May 24 13:24:27 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=362f0a3a |
7 |
|
8 |
app-editors/nano: Bump to version 4.9.3 |
9 |
|
10 |
Package-Manager: Portage-2.3.99, Repoman-2.3.22 |
11 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
12 |
|
13 |
app-editors/nano/Manifest | 1 + |
14 |
app-editors/nano/nano-4.9.3.ebuild | 80 ++++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 81 insertions(+) |
16 |
|
17 |
diff --git a/app-editors/nano/Manifest b/app-editors/nano/Manifest |
18 |
index 23a7416239a..ce798a2ed87 100644 |
19 |
--- a/app-editors/nano/Manifest |
20 |
+++ b/app-editors/nano/Manifest |
21 |
@@ -1,3 +1,4 @@ |
22 |
DIST nano-4.6.tar.gz 2970798 BLAKE2B d6dfc702d374d1cbcd61080c8e0082b7931dc8c593c97eb705d878d25487a78dc1ebcb8004f742f5ecc3af1b5a31abcf6577e87aba96fb95d16029ff55e7af58 SHA512 76fb43495ca1f88ee8864eee5d023b6cd86bc35fba00151b4c6af53ae06e6b3828379e7d52a16c7df0956e9e04602a86ff8e8a7c1997320507ca041195bf004b |
23 |
DIST nano-4.9.1.tar.gz 2995183 BLAKE2B a5e455d94e683bd3ae00c37bd4395465ded281e1cbf434a0035b2d816b53b6d24f3fc966c44c8da643122dc2920f8ddefb0d37574baafe947dd107e1ede7034d SHA512 155622092ee5a99dab30a6acd5cf35ecf087476aa48eabcdf7e1259af098483f84eef7569380fe7c47d4d69f63e61af10a3cc5c29c45f1242c17366c0f15835b |
24 |
DIST nano-4.9.2.tar.gz 2996106 BLAKE2B f3de611022f72de050f96b254a10fb9587014e4e239e34024d1941f9bd5d6abef17dbd1da95bba7cd328237137be1c79421ef7423cf40bab6a5577f9ae8ba587 SHA512 bbb43b63e03d104f168394c00778b5674249285c2400bb4664738a5badc7e5320b5a96f6b0275aa4e6f34f8127830564e87a8658442e358e5261116c595155b6 |
25 |
+DIST nano-4.9.3.tar.gz 2999198 BLAKE2B a96f707936934a965a9a41dfe13ac1ebbe1a5e38db714df6d219b2c6539f24924d4c4f0451508718f66259854806032b84dc89850a7fd55d157f28ae23531d0e SHA512 233e6ed103441bd2c85ed21c50547f85dc0838cc750a5e9b16ecfb393e3b7b978e971af4a4164062c7c267c98895ecb696c02cbd2e4c2eb1ceee657fd026c30a |
26 |
|
27 |
diff --git a/app-editors/nano/nano-4.9.3.ebuild b/app-editors/nano/nano-4.9.3.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..e27dda0e78d |
30 |
--- /dev/null |
31 |
+++ b/app-editors/nano/nano-4.9.3.ebuild |
32 |
@@ -0,0 +1,80 @@ |
33 |
+# Copyright 1999-2020 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+ |
38 |
+inherit flag-o-matic |
39 |
+if [[ ${PV} == "9999" ]] ; then |
40 |
+ EGIT_REPO_URI="git://git.sv.gnu.org/nano.git" |
41 |
+ inherit git-r3 autotools |
42 |
+else |
43 |
+ MY_P="${PN}-${PV/_}" |
44 |
+ SRC_URI="https://www.nano-editor.org/dist/v${PV:0:1}/${MY_P}.tar.gz" |
45 |
+ 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" |
46 |
+fi |
47 |
+ |
48 |
+DESCRIPTION="GNU GPL'd Pico clone with more functionality" |
49 |
+HOMEPAGE="https://www.nano-editor.org/ https://wiki.gentoo.org/wiki/Nano/Basics_Guide" |
50 |
+ |
51 |
+LICENSE="GPL-3" |
52 |
+SLOT="0" |
53 |
+IUSE="debug justify +magic minimal ncurses nls slang +spell +split-usr static unicode" |
54 |
+ |
55 |
+LIB_DEPEND=">=sys-libs/ncurses-5.9-r1:0=[unicode?] |
56 |
+ sys-libs/ncurses:0=[static-libs(+)] |
57 |
+ magic? ( sys-apps/file[static-libs(+)] ) |
58 |
+ nls? ( virtual/libintl ) |
59 |
+ !ncurses? ( slang? ( sys-libs/slang[static-libs(+)] ) )" |
60 |
+RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )" |
61 |
+DEPEND="${RDEPEND} |
62 |
+ static? ( ${LIB_DEPEND} )" |
63 |
+BDEPEND=" |
64 |
+ nls? ( sys-devel/gettext ) |
65 |
+ virtual/pkgconfig |
66 |
+" |
67 |
+src_prepare() { |
68 |
+ default |
69 |
+ if [[ ${PV} == "9999" ]] ; then |
70 |
+ eautoreconf |
71 |
+ fi |
72 |
+} |
73 |
+ |
74 |
+src_configure() { |
75 |
+ use static && append-ldflags -static |
76 |
+ local myconf=( |
77 |
+ --bindir="${EPREFIX}"/bin |
78 |
+ --htmldir=/trash |
79 |
+ $(use_enable !minimal color) |
80 |
+ $(use_enable !minimal multibuffer) |
81 |
+ $(use_enable !minimal nanorc) |
82 |
+ $(use_enable magic libmagic) |
83 |
+ $(use_enable spell speller) |
84 |
+ $(use_enable justify) |
85 |
+ $(use_enable debug) |
86 |
+ $(use_enable nls) |
87 |
+ $(use_enable unicode utf8) |
88 |
+ $(use_enable minimal tiny) |
89 |
+ $(usex ncurses --without-slang $(use_with slang)) |
90 |
+ ) |
91 |
+ econf "${myconf[@]}" |
92 |
+} |
93 |
+ |
94 |
+src_install() { |
95 |
+ default |
96 |
+ # don't use "${ED}" here or things break (#654534) |
97 |
+ rm -r "${D}"/trash || die |
98 |
+ |
99 |
+ dodoc doc/sample.nanorc |
100 |
+ docinto html |
101 |
+ dodoc doc/faq.html |
102 |
+ insinto /etc |
103 |
+ newins doc/sample.nanorc nanorc |
104 |
+ if ! use minimal ; then |
105 |
+ # Enable colorization by default. |
106 |
+ sed -i \ |
107 |
+ -e '/^# include /s:# *::' \ |
108 |
+ "${ED}"/etc/nanorc || die |
109 |
+ fi |
110 |
+ |
111 |
+ use split-usr && dosym ../../bin/nano /usr/bin/nano |
112 |
+} |