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

EAPI=7

DIST_AUTHOR=MONGODB
DIST_VERSION=v1.12.2
inherit perl-module

DESCRIPTION="BSON serialization and deserialization (EOL)"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"
RESTRICT="!test? ( test )"

RDEPEND="
	virtual/perl-Carp
	dev-perl/Crypt-URandom
	virtual/perl-Exporter
	virtual/perl-MIME-Base64
	virtual/perl-Math-BigInt
	>=dev-perl/Moo-2.2.4
	virtual/perl-Scalar-List-Utils
	dev-perl/Tie-IxHash
	virtual/perl-Time-HiRes
	virtual/perl-Time-Local
	>=dev-perl/boolean-0.450.0
	virtual/perl-if
	dev-perl/namespace-clean
	virtual/perl-threads-shared
	virtual/perl-version
"
BDEPEND="${RDEPEND}
	>=virtual/perl-ExtUtils-MakeMaker-6.170.0
	test? (
		>=virtual/perl-CPAN-Meta-2.120.900
		virtual/perl-Data-Dumper
		virtual/perl-File-Spec
		dev-perl/JSON-MaybeXS
		>=virtual/perl-JSON-PP-2.970.10
		>=dev-perl/Path-Tiny-0.54.0
		dev-perl/Test-Deep
		dev-perl/Test-Exception
		dev-perl/Test-Fatal
		>=virtual/perl-Test-Simple-0.960.0
	)
"