From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id CB56A158009 for ; Wed, 21 Jun 2023 09:36:28 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1593DE0872; Wed, 21 Jun 2023 09:36:28 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E907EE0872 for ; Wed, 21 Jun 2023 09:36:27 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E1F6233BEFE for ; Wed, 21 Jun 2023 09:36:26 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 37430A66 for ; Wed, 21 Jun 2023 09:36:25 +0000 (UTC) From: "Andrew Ammerlaan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrew Ammerlaan" Message-ID: <1687340169.0129e062287948921ea13e781b87dca9c3a0134a.andrewammerlaan@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/linux-gpib-modules/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-libs/linux-gpib-modules/linux-gpib-modules-4.3.5-r1.ebuild X-VCS-Directories: sci-libs/linux-gpib-modules/ X-VCS-Committer: andrewammerlaan X-VCS-Committer-Name: Andrew Ammerlaan X-VCS-Revision: 0129e062287948921ea13e781b87dca9c3a0134a X-VCS-Branch: master Date: Wed, 21 Jun 2023 09:36:25 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 5d1127a2-d8e0-49bd-9354-a68a710126d2 X-Archives-Hash: cf2bebadbceb502d1e29c76c94ed9e4c commit: 0129e062287948921ea13e781b87dca9c3a0134a Author: Andrew Ammerlaan gentoo org> AuthorDate: Wed Jun 21 09:31:43 2023 +0000 Commit: Andrew Ammerlaan gentoo org> CommitDate: Wed Jun 21 09:36:09 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0129e062 sci-libs/linux-gpib-modules: migrate to linux-mod-r1.eclass Upstream has one target for all modules, this doesn't really work with linux-mod(-r1) src_compile so we keep the workaround that was already in the ebuild. Now using MODULES_KERNEL_MIN to check the kernel version, got rid of the custom solution in the ebuild. Call modules_post_process to strip, compress and sign the modules Signed-off-by: Andrew Ammerlaan gentoo.org> .../linux-gpib-modules-4.3.5-r1.ebuild | 67 ++++++++++++++++++++++ 1 file changed, 67 insertions(+) diff --git a/sci-libs/linux-gpib-modules/linux-gpib-modules-4.3.5-r1.ebuild b/sci-libs/linux-gpib-modules/linux-gpib-modules-4.3.5-r1.ebuild new file mode 100644 index 000000000000..eae3c0404cb4 --- /dev/null +++ b/sci-libs/linux-gpib-modules/linux-gpib-modules-4.3.5-r1.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2023 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() { + my_gpib_makeopts='' + use debug && my_gpib_makeopts+='GPIB-DEBUG=1 ' + + my_gpib_makeopts+="LINUX_SRCDIR=${KERNEL_DIR} " +} + +src_compile() { + set_arch_to_kernel + + # The individual modules don't have separate targets so we can't use + # modlist here. + emake \ + ${my_gpib_makeopts} +} + +src_install() { + set_arch_to_kernel + emake \ + DESTDIR="${ED}" \ + INSTALL_MOD_PATH="${ED}" \ + DEPMOD="/bin/true" \ + docdir="${ED}/usr/share/doc/${PF}/html" \ + ${my_gpib_makeopts} \ + install + + modules_post_process + + dodoc ChangeLog AUTHORS README* NEWS + einstalldocs +}