# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DIST_AUTHOR=SAPER
DIST_VERSION=0.25
DIST_EXAMPLES=("examples/*")
inherit perl-module

DESCRIPTION="Raw IP packets manipulation Module"

SLOT="0"
KEYWORDS="~alpha amd64 ~hppa ppc sparc x86"

RDEPEND="net-libs/libpcap"
DEPEND="${RDEPEND}"
BDEPEND="${RDEPEND}"

PERL_RM_FILES=( "t/90-pod.t" "t/91-pod-coverage.t" "t/99-critic.t" )

PATCHES=(
	"${FILESDIR}/${PN}-0.25-no-network-tests.patch"
	"${FILESDIR}/${PN}-0.25-Declare-used-function.patch"
	"${FILESDIR}/${PN}-0.25-Silent-compiler-warnings.patch"
	"${FILESDIR}/${PN}-0.25-Use-_DEFAULT_SOURCE-instead-of-_BSD_SOURCE.patch"
)