Diff libsigrok-0.5.2-r4 with a libsigrok-9999

/usr/portage/sci-libs/libsigrok/libsigrok-9999.ebuild 2023-10-09 14:52:35.084368491 +0300
5 5

  
6 6
PYTHON_COMPAT=( python3_{9..11} )
7 7

  
8
inherit autotools python-r1 java-pkg-opt-2 udev xdg-utils
8
inherit python-r1 java-pkg-opt-2 udev xdg-utils
9 9

  
10 10
if [[ ${PV} == *9999* ]]; then
11 11
	EGIT_REPO_URI="git://sigrok.org/${PN}"
12
	inherit git-r3
12
	inherit git-r3 autotools
13 13
else
14 14
	SRC_URI="https://sigrok.org/download/source/${PN}/${P}.tar.gz"
15
	KEYWORDS="~amd64 ~arm ~arm64 ~x86"
15
	KEYWORDS="~amd64 ~x86"
16 16
fi
17 17

  
18 18
DESCRIPTION="Basic hardware drivers for logic analyzers and input/output file format support"
19 19
HOMEPAGE="https://sigrok.org/wiki/Libsigrok"
20 20

  
21 21
LICENSE="GPL-3"
22
SLOT="0/4"
23
IUSE="bluetooth +cxx ftdi hidapi java parport python serial static-libs test +udev usb"
22
SLOT="0/9999"
23
IUSE="bluetooth +cxx ftdi hidapi java nettle parport python serial static-libs test +udev usb"
24 24
REQUIRED_USE="java? ( cxx )
25 25
	python? ( cxx ${PYTHON_REQUIRED_USE} )"
26 26

  
......
34 34
	cxx? ( dev-cpp/glibmm:2[static-libs(+)] )
35 35
	ftdi? ( dev-embedded/libftdi:1[static-libs(+)] )
36 36
	hidapi? ( >=dev-libs/hidapi-0.8.0 )
37
	nettle? ( dev-libs/nettle:=[static-libs(+)] )
37 38
	parport? ( sys-libs/libieee1284[static-libs(+)] )
38 39
	python? (
39 40
		${PYTHON_DEPS}
......
64 65

  
65 66
S="${WORKDIR}"/${P}
66 67

  
67
PATCHES=(
68
	# https://sigrok.org/bugzilla/show_bug.cgi?id=1527
69
	"${FILESDIR}/${P}-swig-4.patch"
70
	# https://sigrok.org/bugzilla/show_bug.cgi?id=1526
71
	"${FILESDIR}/${P}-check-0.15.patch"
72
	# https://bugs.gentoo.org/878395
73
	"${FILESDIR}/${PN}-0.5.2-swig-4.1.patch"
74
)
75

  
76 68
pkg_setup() {
77 69
	use python && python_setup
78 70
	java-pkg-opt-2_pkg_setup
......
83 75
}
84 76

  
85 77
sigrok_src_prepare() {
86
	eautoreconf
78
	[[ ${PV} == *9999* ]] && eautoreconf
87 79
}
88 80

  
89 81
src_prepare() {
......
97 89
		$(use_with bluetooth libbluez) \
98 90
		$(use_with ftdi libftdi) \
99 91
		$(use_with hidapi libhidapi) \
92
		$(use_with nettle libnettle) \
100 93
		$(use_with parport libieee1284) \
101 94
		$(use_with serial libserialport) \
102 95
		$(use_with usb libusb) \
Thank you!