Diff linux-gpib-modules-4.3.5 with a linux-gpib-modules-4.3.5-r3

/usr/portage/sci-libs/linux-gpib-modules/linux-gpib-modules-4.3.5-r3.ebuild 2023-10-09 14:52:35.084368491 +0300
1
# Copyright 1999-2022 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=8
5 5

  
6
inherit linux-info linux-mod
6
inherit linux-mod-r1
7 7

  
8 8
DESCRIPTION="Kernel modules for GPIB (IEEE 488.2) hardware"
9 9
HOMEPAGE="https://linux-gpib.sourceforge.io/"
......
12 12

  
13 13
LICENSE="GPL-2"
14 14
SLOT="0"
15
KEYWORDS="amd64 ~arm ~x86"
15
KEYWORDS="~amd64 ~arm ~x86"
16 16
IUSE="debug"
17 17

  
18 18
COMMONDEPEND=""
......
25 25
PATCHES=(
26 26
	# don't fix debian bugs if they break gentoo
27 27
	"${FILESDIR}/${PN}-4.3.4-depmod.patch"
28
	# https://sourceforge.net/p/linux-gpib/code/2053/
29
	"${FILESDIR}/${PN}-4.3.4-kernel-6.4.patch"
28 30
)
29 31

  
30
pkg_setup() {
31
	linux-mod_pkg_setup
32

  
33
	if kernel_is -lt 2 6 8; then
34
		die "Kernel versions older than 2.6.8 are not supported."
35
	fi
36
}
32
MODULES_KERNEL_MIN=2.6.8
37 33

  
38 34
src_unpack() {
39 35
	default
......
41 37
}
42 38

  
43 39
src_configure() {
44
	set_arch_to_kernel
45

  
46
	my_gpib_makeopts=''
47
	use debug && my_gpib_makeopts+='GPIB-DEBUG=1 '
48

  
49
	my_gpib_makeopts+="LINUX_SRCDIR=${KERNEL_DIR} "
40
	MODULES_MAKEARGS+=( LINUX_SRCDIR="${KV_OUT_DIR}" )
41
	use debug && MODULES_MAKEARGS+=( 'GPIB-DEBUG=1' )
50 42
}
51 43

  
52 44
src_compile() {
53
	set_arch_to_kernel
54
	emake \
55
		${my_gpib_makeopts}
45
	# The individual modules don't have separate targets so we can't use
46
	# modlist here.
47
	emake "${MODULES_MAKEARGS[@]}"
56 48
}
57 49

  
58 50
src_install() {
59
	set_arch_to_kernel
60 51
	emake \
52
		"${MODULES_MAKEARGS[@]}" \
61 53
		DESTDIR="${ED}" \
62 54
		INSTALL_MOD_PATH="${ED}" \
63
		DEPMOD="/bin/true" \
64 55
		docdir="${ED}/usr/share/doc/${PF}/html" \
65
		${my_gpib_makeopts} \
66 56
		install
67 57

  
58
	modules_post_process
59

  
68 60
	dodoc ChangeLog AUTHORS README* NEWS
61
	einstalldocs
69 62
}
Thank you!