mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-21 21:17:37 -08:00
sci-libs/linux-gpib-modules: add 4.3.7
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
This commit is contained in:
parent
42408740bd
commit
32f7342219
@ -1 +1,2 @@
|
||||
DIST linux-gpib-4.3.6.tar.gz 1433121 BLAKE2B 64e2b19106d0531df990b1338f82a71707e54f448d652f6379eb9cd71feb84637090ed8fdfb0264248aa6879d5b9a1dc50e75c21a2c22a31397120eea5903e98 SHA512 a8005c71bfddb854ecbe4df0a81530e44378150242508b10df58c61d039c6d329020407608e31f1ef360de0c83169e76b793c032256e732d229bfd2da4cbaa35
|
||||
DIST linux-gpib-4.3.7.tar.gz 1309937 BLAKE2B 22808daa8bc3bbb9c93dc94b0186327ec1f40d72842b00a4d8907d03e769ce378544de5a02b4b597f94a7928c265bcc21055134a14ff8855a0380a83eaa14258 SHA512 a0783cf54f37132b6f608f555d453be3c1da693e4bddff9e87b40c0ba034a44ac640c87f96d187cf6f98501177f09fec04e7380512bcbb7fc8d0d4652b3be7ad
|
||||
|
||||
@ -0,0 +1,22 @@
|
||||
Depmod fails here since we're still in DESTDIR and the actual target path may
|
||||
not exist...
|
||||
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index 356bba54..8f5b4b63 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -27,13 +27,9 @@ clean:
|
||||
M="$(GPIB_SRCDIR)/drivers/gpib" \
|
||||
GPIB_TOP_DIR=$(GPIB_SRCDIR)
|
||||
|
||||
-#We run depmod explicitly because the depmod.sh script run
|
||||
-#by modules_install fails on Debian due to it failing to find
|
||||
-#the System.map file.
|
||||
install:
|
||||
$(MAKE) -C $(LINUX_SRCDIR) V=$(VERBOSE) modules_install\
|
||||
M="$(GPIB_SRCDIR)/drivers/gpib" \
|
||||
GPIB_TOP_DIR=$(GPIB_SRCDIR) \
|
||||
INSTALL_MOD_DIR=gpib
|
||||
- /sbin/depmod -A
|
||||
|
||||
70
sci-libs/linux-gpib-modules/linux-gpib-modules-4.3.7.ebuild
Normal file
70
sci-libs/linux-gpib-modules/linux-gpib-modules-4.3.7.ebuild
Normal file
@ -0,0 +1,70 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit linux-mod-r1
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://git.code.sf.net/p/linux-gpib/git"
|
||||
S="${WORKDIR}/${P}/linux-gpib-kernel"
|
||||
else
|
||||
SRC_URI="https://downloads.sourceforge.net/linux-gpib/linux-gpib-${PV}.tar.gz"
|
||||
S="${WORKDIR}/linux-gpib-kernel-${PV}"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Kernel modules for GPIB (IEEE 488.2) hardware"
|
||||
HOMEPAGE="https://linux-gpib.sourceforge.io/"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="debug"
|
||||
|
||||
RDEPEND="
|
||||
acct-group/gpib
|
||||
"
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
|
||||
PATCHES=(
|
||||
# don't fix debian bugs if they break gentoo
|
||||
"${FILESDIR}/${PN}-4.3.7-depmod.patch"
|
||||
)
|
||||
|
||||
MODULES_KERNEL_MIN=4.0
|
||||
|
||||
src_unpack() {
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
git-r3_src_unpack
|
||||
else
|
||||
default
|
||||
unpack "${WORKDIR}/linux-gpib-${PV}/linux-gpib-kernel-${PV}.tar.gz"
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
MODULES_MAKEARGS+=( LINUX_SRCDIR="${KV_OUT_DIR}" )
|
||||
use debug && MODULES_MAKEARGS+=( 'GPIB-DEBUG=1' )
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# The individual modules don't have separate targets so we can't use
|
||||
# modlist here.
|
||||
emake "${MODULES_MAKEARGS[@]}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake \
|
||||
"${MODULES_MAKEARGS[@]}" \
|
||||
DESTDIR="${ED}" \
|
||||
INSTALL_MOD_PATH="${ED}" \
|
||||
docdir="${ED}/usr/share/doc/${PF}/html" \
|
||||
install
|
||||
|
||||
modules_post_process
|
||||
|
||||
dodoc AUTHORS README* NEWS
|
||||
[[ ${PV} != 9999 ]] && dodoc ChangeLog
|
||||
einstalldocs
|
||||
}
|
||||
@ -32,7 +32,7 @@ PATCHES=(
|
||||
"${FILESDIR}/${PN}-9999-depmod.patch"
|
||||
)
|
||||
|
||||
MODULES_KERNEL_MIN=2.6.8
|
||||
MODULES_KERNEL_MIN=4.0
|
||||
|
||||
src_unpack() {
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user