diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-05-01 00:00:05 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-05-01 00:00:05 +0100 |
commit | 3d12b65aa1b4bb8b02b1f8d3e77bccf230b79a09 (patch) | |
tree | cb6347688c91bfbdebe49a78a55dad3d72cc193e /dev-perl/DBD-Pg | |
parent | 4c2b70adc6484c35ff05e412de08a7b7f50cfb34 (diff) |
gentoo auto-resync : 01:05:2024 - 00:00:04
Diffstat (limited to 'dev-perl/DBD-Pg')
-rw-r--r-- | dev-perl/DBD-Pg/DBD-Pg-3.18.0.ebuild | 108 | ||||
-rw-r--r-- | dev-perl/DBD-Pg/Manifest | 2 |
2 files changed, 110 insertions, 0 deletions
diff --git a/dev-perl/DBD-Pg/DBD-Pg-3.18.0.ebuild b/dev-perl/DBD-Pg/DBD-Pg-3.18.0.ebuild new file mode 100644 index 000000000000..8ab5cdd617a5 --- /dev/null +++ b/dev-perl/DBD-Pg/DBD-Pg-3.18.0.ebuild @@ -0,0 +1,108 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DIST_AUTHOR=TURNSTEP +inherit perl-module + +DESCRIPTION="PostgreSQL database driver for the DBI module" + +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris" + +RDEPEND=" + virtual/perl-version + >=dev-perl/DBI-1.614.0 + dev-db/postgresql:* +" +DEPEND=" + dev-db/postgresql:* +" +BDEPEND=" + ${RDEPEND} + >=virtual/perl-ExtUtils-MakeMaker-6.580.0 + test? ( + virtual/perl-File-Temp + >=virtual/perl-Test-Simple-0.880.0 + virtual/perl-Time-HiRes + ) +" + +PERL_RM_FILES=( + "t/00_signature.t" +) + +src_prepare() { + postgres_include="$(readlink -f "${EPREFIX}"/usr/include/postgresql)" + postgres_lib="${postgres_include//include/lib}" + # Fall-through case is the non-split postgresql + # The active cases instead get us the matching libdir for the includedir. + for i in lib lib64 ; do + if [[ -d "${postgres_lib}/${i}" ]] ; then + postgres_lib="${postgres_lib}/${i}" + break + fi + done + + # env variables for compilation: + export POSTGRES_INCLUDE="${postgres_include}" + export POSTGRES_LIB="${postgres_lib}" + perl-module_src_prepare +} + +src_test() { + local MODULES=( + "Bundle::DBD::Pg v${PV}" + "DBD::Pg v${PV}" + ) + local failed=() + + local dep + for dep in "${MODULES[@]}"; do + ebegin "Compile testing ${dep}" + perl -Mblib="${S}" -M"${dep} ()" -e1 #|| + #die "Could not load ${dep}" + eend $? || failed+=( "$dep" ) + done + + if [[ ${failed[@]} ]]; then + echo + eerror "One or more modules failed compile:"; + for dep in "${failed[@]}"; do + eerror " ${dep}" + done + die "Failing due to module compilation errors"; + fi + + local LIVEDB_TESTS=( + "t/01connect.t" + "t/02attribs.t" + "t/03dbmethod.t" + "t/03smethod.t" + "t/04misc.t" + "t/06bytea.t" + "t/07copy.t" + "t/08async.t" + "t/09arrays.t" + "t/12placeholders.t" + "t/20savepoints.t" + "t/30unicode.t" + ) + if [[ ! -v DBI_DSN ]]; then + ewarn "Functional database tests disabled due to lack of configuration." + ewarn "Please set the following environment variables values pertaining to a" + ewarn "pre-configured Postgres installation in order for tests to work:" + ewarn " DBI_DSN - A DBI-compatible connection string for a Postgres Database" + ewarn " ( eg: dbi:Pg:dbname=testdb )" + ewarn " DBI_USER - A Postgres Database Username" + ewarn " DBI_PASS - A Postgres Database Password" + ewarn "" + ewarn "For details, visit:" + ewarn " https://wiki.gentoo.org/wiki/Project:Perl/maint-notes/dev-perl/DBD-Pg" + perl_rm_files "${LIVEDB_TESTS[@]}" + fi + + # Parallel testing breaks database access + DBDPG_TEST_ALWAYS_ENV=1 DIST_TEST="do" perl-module_src_test +} diff --git a/dev-perl/DBD-Pg/Manifest b/dev-perl/DBD-Pg/Manifest index 4151c9c9828b..2daf1a84abff 100644 --- a/dev-perl/DBD-Pg/Manifest +++ b/dev-perl/DBD-Pg/Manifest @@ -1,3 +1,5 @@ DIST DBD-Pg-3.17.0.tar.gz 288633 BLAKE2B 50ac384abdf7e6d7a7e054917c319f86c874b20d87fca45dc57085c31242b99e26873aa4b7a28f4a68be88ee4af2288f505ee74051eb055359376f4395d9c908 SHA512 17e7946297c58c19aa0f069ed9e1a78022ca64f76f25d7122f08b255d5192057ccfb7ace2530b505823c540f10733c3b26c1fe24a92cee966ba724e5d1694fb1 +DIST DBD-Pg-3.18.0.tar.gz 288783 BLAKE2B e5ac7cddc9814cc68180f5f888d1290ed4628d6d90be9c8c84b666c0832fb140db45cb878d8f73b8ced73528e979566c03e5c5880aad5824f8dd8601884fc925 SHA512 0a81d1993f22a923776ab57f1437dbee2b5c42de091e274355dbcc9bb07e3db0c22126d0037de8de43fafeab9c947db1e3692087127027a0b13eed538fc2e1ee EBUILD DBD-Pg-3.17.0.ebuild 2723 BLAKE2B 5789e8b37deafd3e2735cb6f193f5bbd67b7b983d5332f3e5ea2d9cc2ec58410713fd8031f4dd54f89bbee947ee6cb74e4a5a18a3a30f079361876cc50ebfb53 SHA512 34ae4f99ce818799f2cdbf492feb3b51d5084597f9e679cd4d0e35d3e159155ce70f59e7f39d0e2f38fc6d25288b85984ed032f87ce9a1a96f6a1829d912d3c8 +EBUILD DBD-Pg-3.18.0.ebuild 2733 BLAKE2B 94dcf84a0d4d41f61ce368f6a3ce1a84dbc38e963261f98f71956f17ecfdcbaac6ae41d7950203d5cefc09b91d0da2a6d0587f284427506e85c7bc5d112c6e94 SHA512 a5adcedd1158df72463eb11b90a3490fab9f8731f2cf8b96736693f7ce896d34b0386448c3b8301b6ecadb11a6880ecb6e87a6c98ac30df70503e409c7fa67b5 MISC metadata.xml 447 BLAKE2B 224b06a263af19d157b76a809863ca77d32ab8396032913cc6ff367fe2ff63d476b7646062fa7512c32116560cba03d2ebe0363ea4724382fc22c0ee41fe42b8 SHA512 6e9e4b40a63c8f5ee9b46e78fbab9c2aaa46e3beb24fe5642107e7896a1a2b5e9da8a230413eb00b9b3a4b8d8c726a0e0d42bdbed105141690c64b702bbab991 |