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

EAPI=8

DIST_AUTHOR=SHLOMIF
DIST_VERSION=0.29
inherit perl-module virtualx

DESCRIPTION="Copy and paste with any OS"

SLOT="0"
KEYWORDS="amd64 arm ppc ppc64 x86"

RDEPEND="
	dev-perl/CGI
	virtual/perl-File-Spec
	virtual/perl-File-Temp
	dev-perl/URI
	|| (
		x11-misc/xclip
		x11-misc/xsel
	)
"
DEPEND="
	dev-perl/Module-Build
"
BDEPEND="
	${RDEPEND}
	>=dev-perl/Module-Build-0.280.0
	test? (
		>=virtual/perl-Test-Simple-0.880.0
		x11-misc/xclip
		x11-misc/xsel
	)
"

src_test() {
	# t/drivers.t will get confused about cygwin/win32 otherwise...
	unset SSH_CONNECTION

	virtx perl-module_src_test
}