Diff mosh-1.3.2-r3 with a mosh-1.4.0

/usr/portage/net-misc/mosh/mosh-1.4.0.ebuild 2024-12-25 14:59:51.267270145 +0300
1
# Copyright 1999-2023 Gentoo Authors
1
# Copyright 1999-2024 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI=8
5 5

  
6
inherit autotools bash-completion-r1 flag-o-matic
6
inherit autotools bash-completion-r1
7 7

  
8
MY_P=${PN}-${PV/_rc/rc}
8 9
DESCRIPTION="Mobile shell that supports roaming and intelligent local echo"
9 10
HOMEPAGE="https://mosh.org"
10
SRC_URI="https://mosh.org/${P}.tar.gz"
11
#SRC_URI="https://mosh.org/${P}.tar.gz"
12
SRC_URI="https://github.com/mobile-shell/mosh/releases/download/${MY_P}/${MY_P}.tar.gz"
13
S="${WORKDIR}"/${MY_P}
11 14

  
12 15
LICENSE="GPL-3"
13 16
SLOT="0"
14
KEYWORDS="~alpha amd64 arm arm64 hppa ~loong ~mips ppc ppc64 ~riscv sparc x86 ~amd64-linux ~x86-linux ~x64-macos"
15
IUSE="+client examples +mosh-hardening +server ufw +utempter"
17
if [[ ${PV} != *_rc* ]] ; then
18
	KEYWORDS="~alpha amd64 arm arm64 hppa ~loong ~mips ppc ppc64 ~riscv sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~x64-macos"
19
fi
20
IUSE="+client examples +hardened nettle +server syslog ufw +utempter"
16 21

  
17 22
REQUIRED_USE="
18 23
	|| ( client server )
......
27 32
		dev-lang/perl
28 33
		dev-perl/IO-Tty
29 34
	)
30
	dev-libs/openssl:=
35
	!nettle? ( dev-libs/openssl:= )
36
	nettle? ( dev-libs/nettle:= )
31 37
	utempter? (
32 38
		sys-libs/libutempter
33 39
	)"
34 40

  
35
DEPEND="${RDEPEND}
36
	virtual/pkgconfig"
41
DEPEND="${RDEPEND}"
42
BDEPEND="virtual/pkgconfig"
43

  
44
QA_CONFIGURE_OPTIONS="--disable-static"
37 45

  
38 46
# [0] - avoid sandbox-violation calling git describe in Makefile.
39 47
PATCHES=(
40 48
	"${FILESDIR}"/${PN}-1.2.5-git-version.patch
41
	"${FILESDIR}"/${P}-bind-misinterpret.patch
42 49
)
43 50

  
44 51
src_prepare() {
45
	MAKEOPTS+=" V=1"
46 52
	default
47 53

  
54
	# abseil-cpp needs >=c++14
55
	local CXXSTD="14"
56
	if has_version ">=dev-cpp/abseil-cpp-20240722.0"; then
57
		# needs >=c++17
58
		CXXSTD="17"
59
	fi
60
	sed -e "/AX_CXX_COMPILE_STDCXX/{s/11/${CXXSTD}/}" -i configure.ac || die
61

  
48 62
	eautoreconf
49 63
}
50 64

  
51 65
src_configure() {
52
	# protobuf needs >=c++14
53
	append-cxxflags -std=gnu++14
66
	MAKEOPTS+=" V=1"
54 67

  
55
	econf \
56
		--disable-completion \
57
		$(use_enable client) \
58
		$(use_enable server) \
59
		$(use_enable examples) \
60
		$(use_enable ufw) \
61
		$(use_enable mosh-hardening hardening) \
68
	local myeconfargs=(
69
		# We install it ourselves in src_install
70
		--disable-completion
71

  
72
		$(use_enable client)
73
		$(use_enable server)
74
		$(use_enable examples)
75
		$(use_enable hardened hardening)
76
		$(use_enable ufw)
77
		$(use_enable syslog)
62 78
		$(use_with utempter)
79

  
80
		# We default to OpenSSL as upstream do
81
		--with-crypto-library=$(usex nettle nettle openssl-with-openssl-ocb)
82
	)
83

  
84
	econf "${myeconfargs[@]}"
63 85
}
64 86

  
65 87
src_install() {
......
70 92
		elog "${myprog} installed as ${PN}-$(basename ${myprog})"
71 93
	done
72 94

  
73
	# bug 477384
95
	# bug #477384
74 96
	dobashcomp conf/bash-completion/completions/mosh
75 97
}
Thank you!