Diff nbd-3.24 with a nbd-3.25

/usr/portage/sys-block/nbd/nbd-3.25.ebuild 2023-10-09 14:52:35.436368500 +0300
1 1
# Copyright 1999-2023 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=7
4
EAPI=8
5 5

  
6 6
inherit systemd
7 7

  
8 8
DESCRIPTION="Userland client/server for kernel network block device"
9
HOMEPAGE="https://nbd.sourceforge.net/"
10
if [[ ${PV} = 9999 ]] ; then
9
HOMEPAGE="https://nbd.sourceforge.io/"
10

  
11
if [[ ${PV} == 9999 ]] ; then
11 12
	inherit autotools git-r3
12 13
	EGIT_REPO_URI="https://github.com/NetworkBlockDevice/nbd.git"
13 14
else
14
	SRC_URI="https://github.com/NetworkBlockDevice/nbd/releases/download/${P}/${P}.tar.xz
15
		mirror://sourceforge/nbd/${P}.tar.xz"
16
	KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ppc ppc64 ~sparc x86"
15
	SRC_URI="https://github.com/NetworkBlockDevice/nbd/releases/download/${P}/${P}.tar.xz"
16
	SRC_URI+=" mirror://sourceforge/nbd/${P}.tar.xz"
17
	KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ppc ppc64 ~sparc x86"
17 18
fi
18 19

  
19 20
LICENSE="GPL-2"
......
21 22
IUSE="debug gnutls netlink zlib"
22 23

  
23 24
RDEPEND="
24
	>=dev-libs/glib-2.26.0
25
	>=dev-libs/glib-2.32.0
25 26
	gnutls? ( >=net-libs/gnutls-2.12.0 )
26 27
	netlink? ( >=dev-libs/libnl-3.1 )
27 28
	zlib? ( sys-libs/zlib )
......
43 44
src_prepare() {
44 45
	default
45 46

  
46
	if [[ ${PV} = 9999 ]] ; then
47
	if [[ ${PV} == 9999 ]] ; then
47 48
		emake -C man -f mans.mk \
48 49
			nbd-server.1.sh.in \
49 50
			nbd-server.5.sh.in \
......
59 60
}
60 61

  
61 62
src_configure() {
63
	# Needs Bison
64
	unset YACC
65

  
62 66
	local myeconfargs=(
63 67
		--enable-lfs
68
		# https://github.com/NetworkBlockDevice/nbd/issues/149
69
		--disable-gznbd
64 70
		$(use_enable !debug syslog)
65 71
		$(use_enable debug)
66
		$(use_enable zlib gznbd)
67 72
		$(use_with gnutls)
68 73
		$(use_with netlink libnl)
69 74
	)
Thank you!