From 413421048cc2b0df9a218f0ab3cb151846809eb5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 27 Apr 2024 23:59:43 +0100 Subject: gentoo auto-resync : 27:04:2024 - 23:59:42 --- .../linux-gpib-modules-4.3.6.ebuild | 60 ++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 sci-libs/linux-gpib-modules/linux-gpib-modules-4.3.6.ebuild (limited to 'sci-libs/linux-gpib-modules/linux-gpib-modules-4.3.6.ebuild') diff --git a/sci-libs/linux-gpib-modules/linux-gpib-modules-4.3.6.ebuild b/sci-libs/linux-gpib-modules/linux-gpib-modules-4.3.6.ebuild new file mode 100644 index 000000000000..345e1659d919 --- /dev/null +++ b/sci-libs/linux-gpib-modules/linux-gpib-modules-4.3.6.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit linux-mod-r1 + +DESCRIPTION="Kernel modules for GPIB (IEEE 488.2) hardware" +HOMEPAGE="https://linux-gpib.sourceforge.io/" +SRC_URI="mirror://sourceforge/linux-gpib/linux-gpib-${PV}.tar.gz" +S="${WORKDIR}/linux-gpib-kernel-${PV}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="debug" + +COMMONDEPEND="" +RDEPEND="${COMMONDEPEND} + acct-group/gpib +" +DEPEND="${COMMONDEPEND}" +BDEPEND="virtual/pkgconfig" + +PATCHES=( + # don't fix debian bugs if they break gentoo + "${FILESDIR}/${PN}-4.3.4-depmod.patch" +) + +MODULES_KERNEL_MIN=2.6.8 + +src_unpack() { + default + unpack "${WORKDIR}/linux-gpib-${PV}/linux-gpib-kernel-${PV}.tar.gz" +} + +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 ChangeLog AUTHORS README* NEWS + einstalldocs +} -- cgit v1.2.3