1 |
commit: 38fe8c5f2b50e35e919b26dbf5789238a04b12d0 |
2 |
Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Dec 23 22:36:40 2021 +0000 |
4 |
Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Dec 23 22:36:40 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=38fe8c5f |
7 |
|
8 |
app-shells/fish: sync live ebuild |
9 |
|
10 |
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org> |
11 |
|
12 |
app-shells/fish/fish-9999.ebuild | 19 ++++++++++++++++--- |
13 |
1 file changed, 16 insertions(+), 3 deletions(-) |
14 |
|
15 |
diff --git a/app-shells/fish/fish-9999.ebuild b/app-shells/fish/fish-9999.ebuild |
16 |
index b0013271b00f..c35b05dc2100 100644 |
17 |
--- a/app-shells/fish/fish-9999.ebuild |
18 |
+++ b/app-shells/fish/fish-9999.ebuild |
19 |
@@ -18,7 +18,7 @@ if [[ ${PV} == "9999" ]]; then |
20 |
EGIT_REPO_URI="https://github.com/${PN}-shell/${PN}-shell.git" |
21 |
else |
22 |
SRC_URI="https://github.com/${PN}-shell/${PN}-shell/releases/download/${MY_PV}/${MY_P}.tar.xz" |
23 |
- KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-solaris" |
24 |
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-solaris" |
25 |
fi |
26 |
|
27 |
LICENSE="GPL-2" |
28 |
@@ -70,7 +70,11 @@ src_configure() { |
29 |
-DWITH_GETTEXT="$(usex nls)" |
30 |
) |
31 |
# release tarballs ship pre-built docs // -DHAVE_PREBUILT_DOCS=TRUE |
32 |
- [[ ${PV} == 9999 ]] && mycmakeargs+=( -DBUILD_DOCS="$(usex doc)" ) |
33 |
+ if [[ ${PV} == 9999 ]]; then |
34 |
+ mycmakeargs+=( -DBUILD_DOCS="$(usex doc)" ) |
35 |
+ else |
36 |
+ mycmakeargs+=( -DBUILD_DOCS=OFF ) |
37 |
+ fi |
38 |
cmake_src_configure |
39 |
} |
40 |
|
41 |
@@ -81,7 +85,16 @@ src_install() { |
42 |
} |
43 |
|
44 |
src_test() { |
45 |
- cmake_build -j1 test |
46 |
+ # some tests are fragile, sanitize environment |
47 |
+ local -x COLUMNS=80 |
48 |
+ local -x LINES=24 |
49 |
+ |
50 |
+ # very fragile, depends on terminal, size, tmux, screen and timing |
51 |
+ if [[ ${PV} != 9999 ]]; then |
52 |
+ rm -v tests/pexpects/terminal.py || die |
53 |
+ fi |
54 |
+ |
55 |
+ cmake_build test |
56 |
} |
57 |
|
58 |
pkg_postinst() { |