Diff nbd-3.21-r1 with a nbd-3.24

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

  
4 4
EAPI=7
......
6 6
inherit systemd
7 7

  
8 8
DESCRIPTION="Userland client/server for kernel network block device"
9
HOMEPAGE="http://nbd.sourceforge.net/"
10
if [[ "${PV}" = 9999 ]] ; then
9
HOMEPAGE="https://nbd.sourceforge.net/"
10
if [[ ${PV} = 9999 ]] ; then
11 11
	inherit autotools git-r3
12 12
	EGIT_REPO_URI="https://github.com/NetworkBlockDevice/nbd.git"
13 13
else
14
	SRC_URI="mirror://sourceforge/nbd/${P}.tar.xz"
15
	KEYWORDS="~alpha amd64 arm ~hppa ~ia64 ppc ppc64 ~sparc x86"
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"
16 17
fi
18

  
17 19
LICENSE="GPL-2"
18 20
SLOT="0"
19 21
IUSE="debug gnutls netlink zlib"
20 22

  
21
BDEPEND="virtual/pkgconfig"
22

  
23 23
RDEPEND="
24 24
	>=dev-libs/glib-2.26.0
25 25
	gnutls? ( >=net-libs/gnutls-2.12.0 )
......
27 27
	zlib? ( sys-libs/zlib )
28 28
"
29 29
DEPEND="${RDEPEND}"
30
BDEPEND="
31
	sys-devel/bison
32
	virtual/pkgconfig
33
"
30 34

  
31
if [[ "${PV}" = 9999 ]] ; then
32
	DEPEND+="
35
if [[ ${PV} == 9999 ]] ; then
36
	BDEPEND+="
33 37
		app-text/docbook-sgml-dtd:4.5
34 38
		app-text/docbook-sgml-utils
39
		sys-devel/autoconf-archive
35 40
	"
36 41
fi
37 42

  
38 43
src_prepare() {
39 44
	default
40
	if [[ "${PV}" = 9999 ]] ; then
41
		emake -C man -f Makefile.am \
45

  
46
	if [[ ${PV} = 9999 ]] ; then
47
		emake -C man -f mans.mk \
42 48
			nbd-server.1.sh.in \
43 49
			nbd-server.5.sh.in \
44 50
			nbd-client.8.sh.in \
45 51
			nbd-trdump.1.sh.in \
52
			nbd-trplay.1.sh.in \
46 53
			nbdtab.5.sh.in
54

  
47 55
		emake -C systemd -f Makefile.am nbd@.service.sh.in
56

  
48 57
		eautoreconf
49 58
	fi
50 59
}
......
58 67
		$(use_with gnutls)
59 68
		$(use_with netlink libnl)
60 69
	)
70

  
61 71
	econf "${myeconfargs[@]}"
62 72
}
63 73

  
Thank you!