diff options
author | Sam James <sam@gentoo.org> | 2022-10-31 02:01:00 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-10-31 02:17:35 +0000 |
commit | 18445158d007918e445d4c4baf767b6124377402 (patch) | |
tree | 7c8de30b47e1814fdfc981e8e1bebd08daa711dd /dev-perl/DBD-MariaDB | |
parent | dev-db/mariadb-connector-odbc: add github upstream metadata (diff) | |
download | gentoo-18445158d007918e445d4c4baf767b6124377402.tar.gz gentoo-18445158d007918e445d4c4baf767b6124377402.tar.bz2 gentoo-18445158d007918e445d4c4baf767b6124377402.zip |
dev-perl/DBD-MariaDB: add 1.220.0
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-perl/DBD-MariaDB')
-rw-r--r-- | dev-perl/DBD-MariaDB/DBD-MariaDB-1.220.0.ebuild | 92 | ||||
-rw-r--r-- | dev-perl/DBD-MariaDB/Manifest | 1 |
2 files changed, 93 insertions, 0 deletions
diff --git a/dev-perl/DBD-MariaDB/DBD-MariaDB-1.220.0.ebuild b/dev-perl/DBD-MariaDB/DBD-MariaDB-1.220.0.ebuild new file mode 100644 index 000000000000..9909368c41e1 --- /dev/null +++ b/dev-perl/DBD-MariaDB/DBD-MariaDB-1.220.0.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DIST_AUTHOR=PALI +DIST_VERSION=1.22 +inherit perl-module + +DESCRIPTION="MariaDB and MySQL driver for the Perl5 Database Interface (DBI)" + +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+mariadb mysql minimal" +REQUIRED_USE="^^ ( mysql mariadb )" + +RDEPEND=" + >=dev-perl/DBI-1.608.0 + virtual/perl-XSLoader + mysql? ( dev-db/mysql-connector-c:= ) + mariadb? ( dev-db/mariadb-connector-c:= ) +" +DEPEND=" + mysql? ( dev-db/mysql-connector-c:= ) + mariadb? ( dev-db/mariadb-connector-c:= ) +" +# New test-harness needed for parallel testing to work +DEPEND="${RDEPEND} + virtual/perl-Data-Dumper + >=dev-perl/Devel-CheckLib-1.120.0 + virtual/perl-ExtUtils-MakeMaker + virtual/perl-File-Spec + virtual/perl-Getopt-Long + test? ( + !minimal? ( + >=dev-perl/Net-SSLeay-1.430.0 + dev-perl/Proc-ProcessTable + virtual/perl-Storable + ) + virtual/perl-Encode + virtual/perl-File-Temp + dev-perl/Test-Deep + >=virtual/perl-Test-Harness-3.310.0 + >=virtual/perl-Test-Simple-0.900.0 + virtual/perl-Time-HiRes + virtual/perl-bignum + ) +" + +PERL_RM_FILES=( + "t/pod.t" + "t/manifest.t" +) + +src_configure() { + local impl=$(usex mariadb mariadb mysql) + + if use test; then + myconf=( + ${myconf} + --testdb=test + --testhost=localhost + --testuser=test + --testpassword=test + ) + fi + + myconf+=( --${impl}_config="${BROOT}"/usr/bin/${impl}_config ) + + perl-module_src_configure +} + +src_test() { + ewarn "Comprehensive testing requires additional manual steps. For details" + ewarn "see:" + ewarn " https://wiki.gentoo.org/wiki/Project:Perl/maint-notes/${CATEGORY}/${PN}#Testing" + + einfo + einfo "If tests fail, you have to configure your MariaDB/MySQL instance" + einfo "to create and grant some privileges to the test user." + einfo "You can run the following commands at the MariaDB/MySQL prompt: " + einfo "> CREATE USER 'test'@'localhost' IDENTIFIED BY 'test';" + einfo "> CREATE DATABASE test;" + einfo "> GRANT ALL PRIVILEGES ON test.* TO 'test'@'localhost';" + einfo + + sleep 5 + + # Don't be a hero and try to do EXTENDED_TESTING=1 unless you can figure + # out why 60leaks.t fails + perl-module_src_test +} diff --git a/dev-perl/DBD-MariaDB/Manifest b/dev-perl/DBD-MariaDB/Manifest index 37da760e7067..7ab66d85ce36 100644 --- a/dev-perl/DBD-MariaDB/Manifest +++ b/dev-perl/DBD-MariaDB/Manifest @@ -1 +1,2 @@ DIST DBD-MariaDB-1.21.tar.gz 179911 BLAKE2B dac1a868d64e792dc86ab46cea1fe2578ae691b9d6713cd83971c9ba0a3e2a0d8031c7be10dc66e4269c142aec1c54859e0e285faf9a29dc3cec7e3d8ad82a0e SHA512 0378b33e9cd31ced6f2331967c7ea63a233340bb4a60ef2bbece4843b3a62624875aa1a5e61a9fa1b709ecc8d67810c6fa4fb9ccc01df341e6d94325078f360a +DIST DBD-MariaDB-1.22.tar.gz 180783 BLAKE2B 8125c0a1ce6858e29c894ea4e11a10fc8e3776cbf016537e6d4d492773690b915dc249ddeca881fa42b229597727602209487dcdb1af03da098e38f2652d5934 SHA512 f2bd16fa609b94bd5eb538b38b122dec6a4484da062f2cc84fa6ca4a5dfc30e7ff754a00ece22a3a30297c92b4fd3f878ab0e2a581b7082cd1b9a00f33e2b2c7 |