summaryrefslogtreecommitdiff
path: root/dev-perl/DBD-MariaDB
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-09-16 11:00:10 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-09-16 11:00:10 +0100
commit3c490942d0d98701d1c0971e60911fa6bd3ecb76 (patch)
treec7e992463fec552ae6483d7b81848aa185d3559f /dev-perl/DBD-MariaDB
parentc748acf4192a1e08c9feb2d5f0004937a4869639 (diff)
gentoo auto-resync : 16:09:2023 - 11:00:10
Diffstat (limited to 'dev-perl/DBD-MariaDB')
-rw-r--r--dev-perl/DBD-MariaDB/DBD-MariaDB-1.230.0.ebuild134
-rw-r--r--dev-perl/DBD-MariaDB/Manifest2
2 files changed, 136 insertions, 0 deletions
diff --git a/dev-perl/DBD-MariaDB/DBD-MariaDB-1.230.0.ebuild b/dev-perl/DBD-MariaDB/DBD-MariaDB-1.230.0.ebuild
new file mode 100644
index 000000000000..65e1b804bf49
--- /dev/null
+++ b/dev-perl/DBD-MariaDB/DBD-MariaDB-1.230.0.ebuild
@@ -0,0 +1,134 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DIST_AUTHOR=PALI
+DIST_VERSION=1.23
+DIST_WIKI=tests
+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
+BDEPEND="
+ ${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
+ )
+ mariadb? ( dev-db/mariadb:* )
+ mysql? ( dev-db/mysql:* )
+ 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)
+
+ # These must be set at configure time
+ export DBD_MARIADB_TESTDB=test
+ export DBD_MARIADB_TESTSOCKET="${T}"/mysqld.sock
+ export DBD_MARIADB_TESTAUTHPLUGIN=mysql_native_password
+ export DBD_MARIADB_TESTUSER=root
+
+ myconf=( --${impl}_config="${BROOT}"/usr/bin/${impl}_config )
+
+ perl-module_src_configure
+}
+
+src_test() {
+ local -x USER=$(whoami)
+
+ einfo "Creating mysql test instance ..."
+ mkdir -p "${T}"/mysql || die
+ if use mariadb ; then
+ local -x PATH="${BROOT}/usr/share/mariadb/scripts:${PATH}"
+
+ mysql_install_db \
+ --no-defaults \
+ --auth-root-authentication-method=normal \
+ --basedir="${EPREFIX}/usr" \
+ --datadir="${T}"/mysql 1>"${T}"/mysqld_install.log || die
+ else
+ mysqld \
+ --no-defaults \
+ --initialize-insecure \
+ --user ${USER} \
+ --basedir="${EPREFIX}/usr" \
+ --datadir="${T}"/mysql 1>"${T}"/mysqld_install.log || die
+ fi
+
+ einfo "Starting mysql test instance ..."
+ mysqld \
+ --no-defaults \
+ --character-set-server=utf8 \
+ --bind-address=127.0.0.1 \
+ --pid-file="${T}"/mysqld.pid \
+ --socket="${T}"/mysqld.sock \
+ --datadir="${T}"/mysql 1>"${T}"/mysqld.log 2>&1 &
+
+ # Wait for it to start
+ local i
+ for (( i = 0; i < 10; i++ )); do
+ [[ -S ${T}/mysqld.sock ]] && break
+ sleep 1
+ done
+ [[ ! -S ${T}/mysqld.sock ]] && die "mysqld failed to start"
+
+ einfo "Configuring test mysql instance ..."
+ mysql -u root \
+ -e 'CREATE DATABASE /*M!50701 IF NOT EXISTS */ test' \
+ -S "${T}"/mysqld.sock || die "Failed to create test database"
+
+ # Don't be a hero and try to do EXTENDED_TESTING=1 unless you can figure
+ # out why 60leaks.t fails
+ nonfatal perl-module_src_test
+ ret=$?
+
+ einfo "Stopping mysql test instance ..."
+ pkill -F "${T}"/mysqld.pid || die
+ # wait for it to stop
+ local i
+ for (( i = 0; i < 10; i++ )); do
+ [[ -S ${T}/mysqld.sock ]] || break
+ sleep 1
+ done
+
+ rm -rf "${T}"/mysql || die
+
+ [[ ${ret} -ne 0 ]] && die
+}
diff --git a/dev-perl/DBD-MariaDB/Manifest b/dev-perl/DBD-MariaDB/Manifest
index 8dfb4ade1235..8df15229b52d 100644
--- a/dev-perl/DBD-MariaDB/Manifest
+++ b/dev-perl/DBD-MariaDB/Manifest
@@ -1,5 +1,7 @@
DIST DBD-MariaDB-1.21.tar.gz 179911 BLAKE2B dac1a868d64e792dc86ab46cea1fe2578ae691b9d6713cd83971c9ba0a3e2a0d8031c7be10dc66e4269c142aec1c54859e0e285faf9a29dc3cec7e3d8ad82a0e SHA512 0378b33e9cd31ced6f2331967c7ea63a233340bb4a60ef2bbece4843b3a62624875aa1a5e61a9fa1b709ecc8d67810c6fa4fb9ccc01df341e6d94325078f360a
DIST DBD-MariaDB-1.22.tar.gz 180783 BLAKE2B 8125c0a1ce6858e29c894ea4e11a10fc8e3776cbf016537e6d4d492773690b915dc249ddeca881fa42b229597727602209487dcdb1af03da098e38f2652d5934 SHA512 f2bd16fa609b94bd5eb538b38b122dec6a4484da062f2cc84fa6ca4a5dfc30e7ff754a00ece22a3a30297c92b4fd3f878ab0e2a581b7082cd1b9a00f33e2b2c7
+DIST DBD-MariaDB-1.23.tar.gz 186522 BLAKE2B 4202146d0c73d2e3259e54085d390d9769b46f0771b3a83a05b0203f6589ffe0f189008453448d71b5f07e8419e038ad32a1ed968c8ceffd836fb9f9cad1c9f7 SHA512 2217f36606caab477b8fa931a69b53b7f706a25cf013e4b62aa1b0b48905aba24b724604b4b99e83dea08d967848119447f35ff8e6b5eb80c7fea4e8c084de16
EBUILD DBD-MariaDB-1.210.0-r1.ebuild 2273 BLAKE2B 9a480b65f4ab8245b20a964c5639316e8c29b01b453ed9ba9b6f144971379533c83945dd7587352177de11d18f67861c7f2a00baabeed348299baf2c561ac4c0 SHA512 a4d09d07292597ed5596595637db43093eaac1b22ff6935c0de2b3e6130bdd2d07c902b21d1cb8bd54cdf9f3b4818ab5133a6370afd5dac93f82fe33ff91bddb
EBUILD DBD-MariaDB-1.220.0.ebuild 2166 BLAKE2B f4b9541979669aaa8ebf422cb331440bdbc452a7ead005ef87b42eb10732ff11b7a5e66bbea11ff9faa5bb3bf4ef102e4711fd1433d728d26c726529d2690d5e SHA512 b2416e7ee2673879b967608dccf4013d4283b11bd69d511f6c34b181c2cc0c11d6c0acd9eb03f950d318c30324199cb7f2055b8f2a04b580788b365351847327
+EBUILD DBD-MariaDB-1.230.0.ebuild 3171 BLAKE2B 43a85cedd00504cfa844ce04d383d82614c2ff6cd1545d55eca21aa6ab99e8a345d7a762cf928c4ef42c234d85b3ca7cad25bee1faf36c0e2ff6587f69c10802 SHA512 1e3011d53e74b62deeda5a57ae33c9be3cb54ab84ad24e601c140eefea6e6bf26edbf507c9d689c336357dc0c8b0b53d8934b023c0a8996a8a9d1fd90c9ef8c3
MISC metadata.xml 662 BLAKE2B 481ef182dc86e6a58a8ed1c14e480980529939f2f6269eec5b58f1a0bb763f8388b3c7d05916be3f51505cc5d3cfb2b515b4427c8b0caa4339be31bc126ebb4e SHA512 a0973f9e08479180b2186b0a45ce12502958055e392e8dc4c59e14788756ce5bf69bfab4c08532de6a4c980164cf775fdc4e447fbd10e4a75b3f7991d6fcf0bd