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 72A10158041 for ; Mon, 18 Mar 2024 05:31:42 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B9F0BE29BE; Mon, 18 Mar 2024 05:31:39 +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)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9ABA4E29BE for ; Mon, 18 Mar 2024 05:31:39 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 604FC343019 for ; Mon, 18 Mar 2024 05:31:38 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 725E11564 for ; Mon, 18 Mar 2024 05:31:35 +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: <1710739795.15142891dda8f66c902e3486fc6dba64e679cfd1.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/packETH/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-misc/packETH/packETH-2.1-r1.ebuild X-VCS-Directories: net-misc/packETH/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 15142891dda8f66c902e3486fc6dba64e679cfd1 X-VCS-Branch: master Date: Mon, 18 Mar 2024 05:31:35 +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: efa7c114-98a2-43e2-b92f-3e6197e36620 X-Archives-Hash: 0e58627e150ef6f820b9b50b6497c6ac commit: 15142891dda8f66c902e3486fc6dba64e679cfd1 Author: Eli Schwartz gmail com> AuthorDate: Sun Mar 17 23:53:47 2024 +0000 Commit: Sam James gentoo org> CommitDate: Mon Mar 18 05:29:55 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=15142891 net-misc/packETH: update EAPI 7 -> 8 Signed-off-by: Eli Schwartz gmail.com> Signed-off-by: Sam James gentoo.org> net-misc/packETH/packETH-2.1-r1.ebuild | 65 ++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) diff --git a/net-misc/packETH/packETH-2.1-r1.ebuild b/net-misc/packETH/packETH-2.1-r1.ebuild new file mode 100644 index 000000000000..91f156e28ba9 --- /dev/null +++ b/net-misc/packETH/packETH-2.1-r1.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools flag-o-matic toolchain-funcs + +DESCRIPTION="Packet generator tool for ethernet" +HOMEPAGE="http://packeth.sourceforge.net/" +SRC_URI="https://github.com/jemcek/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="cli +gtk" +REQUIRED_USE=" + || ( cli gtk ) +" + +RDEPEND=" + gtk? ( + dev-libs/glib:2 + x11-libs/gdk-pixbuf + x11-libs/gtk+:2 + ) +" +DEPEND=" + ${RDEPEND} + gtk? ( virtual/pkgconfig ) +" +PATCHES=( + "${FILESDIR}"/${PN}-1.8.1-libs-and-flags.patch + "${FILESDIR}"/${PN}-2.1-fno-common.patch +) +DOCS=( AUTHORS CHANGELOG README ) + +src_prepare() { + default + use gtk && eautoreconf +} + +src_configure() { + # -Werror=lto-type-mismatch + # https://bugs.gentoo.org/861695 + # https://github.com/jemcek/packETH/issues/42 + filter-lto + + use gtk && default +} + +src_compile() { + use gtk && default + use cli && emake \ + CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" -C cli +} + +src_install() { + use gtk && default + + if use cli; then + dobin cli/${PN}cli + local i + for i in NEWS README TODO; do newdoc cli/${i} ${i}.cli; done + fi +}