summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz93@gmail.com>2024-03-17 19:53:47 -0400
committerSam James <sam@gentoo.org>2024-03-18 05:29:55 +0000
commit15142891dda8f66c902e3486fc6dba64e679cfd1 (patch)
tree1978b0064e865eaef0e608ebb7cb24b37bfb66bf /net-misc
parentnet-misc/packETH: mark as LTO-unsafe (diff)
downloadgentoo-15142891dda8f66c902e3486fc6dba64e679cfd1.tar.gz
gentoo-15142891dda8f66c902e3486fc6dba64e679cfd1.tar.bz2
gentoo-15142891dda8f66c902e3486fc6dba64e679cfd1.zip
net-misc/packETH: update EAPI 7 -> 8
Signed-off-by: Eli Schwartz <eschwartz93@gmail.com> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/packETH/packETH-2.1-r1.ebuild65
1 files changed, 65 insertions, 0 deletions
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
+}