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-shells/fish/
Date: Sat, 26 Mar 2022 18:21:16
Message-Id: 1648318867.af394fa95143745bd43bb0469cbaccfae375a438.polynomial-c@gentoo
1 commit: af394fa95143745bd43bb0469cbaccfae375a438
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Sat Mar 26 18:17:34 2022 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Sat Mar 26 18:21:07 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=af394fa9
7
8 app-shells/fish: Bump to version 3.4.1
9
10 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
11
12 app-shells/fish/Manifest | 1 +
13 app-shells/fish/fish-3.4.1.ebuild | 102 ++++++++++++++++++++++++++++++++++++++
14 2 files changed, 103 insertions(+)
15
16 diff --git a/app-shells/fish/Manifest b/app-shells/fish/Manifest
17 index 831e89ae2a2a..b25d455e313f 100644
18 --- a/app-shells/fish/Manifest
19 +++ b/app-shells/fish/Manifest
20 @@ -1,2 +1,3 @@
21 DIST fish-3.3.1.tar.xz 3489152 BLAKE2B 61b2bf96526d957d3f9706df5a76d4d9b4ccf55a1ff2b7b66f1a0d5d126a220df9984551f5adb06dcedbfb5674b93c4f3d75ef991585980a29d4dd84f7697559 SHA512 fc50ca44fab3f2d942284d4f714150f7ccf1e49c73da36f8d4ae4a33a9b3280f98bed15848839f5d443b4274fd0ff90174bafa6a8e9a4da226dda63d7766a660
22 DIST fish-3.4.0.tar.xz 3292216 BLAKE2B 3691e5387a8392d7d43b3b0f8b893e83e246c3532684e95a19c7b2eb4ebe80bcf04aaa1b965f5c4f6d782d0ae52269bb1cdafef76845b02f9f99d4c82ea77ce3 SHA512 463ee8d86815520c6de9777fd2b5975f06cc0842137c86cca7ae0331e95d74e755bf6f4b0bdea7e96c11371436ff9f97ce483ae026daa1e8d385f6cad8860ed4
23 +DIST fish-3.4.1.tar.xz 3293068 BLAKE2B 5edcd59445e6d928fb2183deb68fb0a305f6f80c134fef48ea79d91b79af1da6b31a1e870a9df963bb27dfc5985f326d9b6d53d64b16c79f9c303aa8edfa4423 SHA512 20a2892ec0c413c4c3fcfe5fbf52fb2398de35a9172758728bd2ccdccc5fb6e0e18712a664d02db67543d47180a4d04f3998a6297d23088926b6d03baefdf981
24
25 diff --git a/app-shells/fish/fish-3.4.1.ebuild b/app-shells/fish/fish-3.4.1.ebuild
26 new file mode 100644
27 index 000000000000..45bc18a52822
28 --- /dev/null
29 +++ b/app-shells/fish/fish-3.4.1.ebuild
30 @@ -0,0 +1,102 @@
31 +# Copyright 1999-2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +PYTHON_COMPAT=( python3_{8..10} )
37 +
38 +inherit cmake python-any-r1 readme.gentoo-r1
39 +
40 +DESCRIPTION="Friendly Interactive SHell"
41 +HOMEPAGE="http://fishshell.com/"
42 +
43 +MY_PV="${PV/_beta/b}"
44 +MY_P="${PN}-${MY_PV}"
45 +
46 +if [[ ${PV} == "9999" ]]; then
47 + inherit git-r3
48 + EGIT_REPO_URI="https://github.com/${PN}-shell/${PN}-shell.git"
49 +else
50 + SRC_URI="https://github.com/${PN}-shell/${PN}-shell/releases/download/${MY_PV}/${MY_P}.tar.xz"
51 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-solaris"
52 +fi
53 +
54 +LICENSE="GPL-2"
55 +SLOT="0"
56 +IUSE="+doc nls test"
57 +
58 +RESTRICT="!test? ( test )"
59 +
60 +RDEPEND="
61 + >=dev-libs/libpcre2-10.32:=[pcre32]
62 + sys-apps/coreutils
63 + sys-libs/ncurses:=[unicode(+)]
64 +"
65 +
66 +DEPEND="${RDEPEND}"
67 +BDEPEND="
68 + nls? ( sys-devel/gettext )
69 + test? (
70 + ${PYTHON_DEPS}
71 + dev-tcltk/expect
72 + $(python_gen_any_dep '
73 + dev-python/pexpect[${PYTHON_USEDEP}]
74 + ')
75 + )
76 +"
77 +# we don't need shpinx dep for release tarballs
78 +[[ ${PV} == 9999 ]] && DEPEND+=" doc? ( dev-python/sphinx )"
79 +
80 +S="${WORKDIR}/${MY_P}"
81 +
82 +python_check_deps() {
83 + use test || return 0
84 + has_version -d "dev-python/pexpect[${PYTHON_USEDEP}]"
85 +}
86 +
87 +src_prepare() {
88 + # workaround for https://github.com/fish-shell/fish-shell/issues/4883
89 + sed -i 's#${TEST_INSTALL_DIR}/${CMAKE_INSTALL_PREFIX}#${TEST_INSTALL_DIR}#' \
90 + cmake/Tests.cmake || die
91 + cmake_src_prepare
92 +}
93 +
94 +src_configure() {
95 + local mycmakeargs=(
96 + -DCMAKE_INSTALL_BINDIR="${EPREFIX}/bin"
97 + -DCMAKE_INSTALL_SYSCONFDIR="${EPREFIX}/etc"
98 + -DCURSES_NEED_NCURSES=ON
99 + -DINSTALL_DOCS="$(usex doc)"
100 + -DWITH_GETTEXT="$(usex nls)"
101 + )
102 + # release tarballs ship pre-built docs // -DHAVE_PREBUILT_DOCS=TRUE
103 + if [[ ${PV} == 9999 ]]; then
104 + mycmakeargs+=( -DBUILD_DOCS="$(usex doc)" )
105 + else
106 + mycmakeargs+=( -DBUILD_DOCS=OFF )
107 + fi
108 + cmake_src_configure
109 +}
110 +
111 +src_install() {
112 + cmake_src_install
113 + keepdir /usr/share/fish/vendor_{completions,conf,functions}.d
114 + readme.gentoo_create_doc
115 +}
116 +
117 +src_test() {
118 + # some tests are fragile, sanitize environment
119 + local -x COLUMNS=80
120 + local -x LINES=24
121 +
122 + # very fragile, depends on terminal, size, tmux, screen and timing
123 + if [[ ${PV} != 9999 ]]; then
124 + rm -v tests/pexpects/terminal.py || die
125 + fi
126 +
127 + cmake_build test
128 +}
129 +
130 +pkg_postinst() {
131 + readme.gentoo_print_elog
132 +}