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 9F62D158041 for ; Thu, 28 Mar 2024 04:47:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 79885E2A13; Thu, 28 Mar 2024 04:47:53 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5A59FE2A10 for ; Thu, 28 Mar 2024 04:47:53 +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 929173430B7 for ; Thu, 28 Mar 2024 04:47:52 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D5EA615FA for ; Thu, 28 Mar 2024 04:47:50 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1711601039.0c21397294ebfd8784a2e8a52e65cac97cee0472.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/irqbalance/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-apps/irqbalance/irqbalance-1.9.4.ebuild X-VCS-Directories: sys-apps/irqbalance/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 0c21397294ebfd8784a2e8a52e65cac97cee0472 X-VCS-Branch: master Date: Thu, 28 Mar 2024 04:47:50 +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: bbb4bac3-897f-420b-bd52-7b8b42afc47b X-Archives-Hash: 5fafdfa3e78b28c34c2f09be6ab4f631 commit: 0c21397294ebfd8784a2e8a52e65cac97cee0472 Author: Sam James gentoo org> AuthorDate: Thu Mar 28 04:43:59 2024 +0000 Commit: Sam James gentoo org> CommitDate: Thu Mar 28 04:43:59 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0c213972 sys-apps/irqbalance: port to meson https://github.com/Irqbalance/irqbalance/blob/master/contrib/README says: "This is here to see if there is any interest from the general community." There is indeed :) Signed-off-by: Sam James gentoo.org> sys-apps/irqbalance/irqbalance-1.9.4.ebuild | 31 +++++++++++++++-------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/sys-apps/irqbalance/irqbalance-1.9.4.ebuild b/sys-apps/irqbalance/irqbalance-1.9.4.ebuild index b1912f7864a0..e9ebc8ac0732 100644 --- a/sys-apps/irqbalance/irqbalance-1.9.4.ebuild +++ b/sys-apps/irqbalance/irqbalance-1.9.4.ebuild @@ -3,11 +3,12 @@ EAPI=8 -inherit autotools udev systemd linux-info optfeature +inherit meson linux-info optfeature systemd udev DESCRIPTION="Distribute hardware interrupts across processors on a multiprocessor system" HOMEPAGE="https://github.com/Irqbalance/irqbalance" SRC_URI="https://github.com/Irqbalance/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}"/${P}/contrib LICENSE="GPL-2" SLOT="0" @@ -38,35 +39,35 @@ pkg_setup() { } src_prepare() { + default + # Follow systemd policies # https://wiki.gentoo.org/wiki/Project:Systemd/Ebuild_policy sed \ -e 's/ $IRQBALANCE_ARGS//' \ -e '/EnvironmentFile/d' \ - -i misc/irqbalance.service || die - - default - eautoreconf + -i "${WORKDIR}"/${P}/misc/irqbalance.service || die } src_configure() { - local myeconfargs=( - $(use_with caps libcap-ng) - $(use_enable numa) - $(use_with systemd) - $(use_enable thermal) - $(use_with tui irqbalance-ui) + local emesonargs=( + $(meson_feature caps capng) + $(meson_feature numa) + $(meson_feature systemd) + $(meson_feature thermal) + $(meson_feature tui ui) ) - econf "${myeconfargs[@]}" + + meson_src_configure } src_install() { - default + meson_src_install newinitd "${FILESDIR}"/irqbalance.init.4 irqbalance newconfd "${FILESDIR}"/irqbalance.confd-1 irqbalance - systemd_dounit misc/irqbalance.service - udev_dorules misc/90-irqbalance.rules + systemd_dounit "${WORKDIR}"/${P}/misc/irqbalance.service + udev_dorules "${WORKDIR}"/${P}/misc/90-irqbalance.rules } pkg_postinst() {