meta-openembedded/meta-perl/recipes-perl/libdb/libdbd-sqlite-perl_1.76.bb
Gyorgy Sarvari d5e2230e0e libdbd-sqlite-perl: fix ptests
Add missing dependencies and install missing files for testing.

Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-10-24 17:11:35 -07:00

63 lines
1.7 KiB
BlitzBasic

SUMMARY = "A Perl DBI driver for SQLite"
DESCRIPTION = "DBD::SQLite is a Perl DBI driver for SQLite, that includes the entire \
thing in the distribution. So in order to get a fast transaction capable \
RDBMS working for your perl project you simply have to install this \
module, and nothing else. \
"
HOMEPAGE = "https://metacpan.org/release/DBD-SQLite"
SECTION = "libs"
LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
LIC_FILES_CHKSUM = "file://LICENSE;md5=1726e2117494ba3e13e1c3d93f795360"
SRC_URI = "${CPAN_MIRROR}/authors/id/I/IS/ISHIGAKI/DBD-SQLite-${PV}.tar.gz \
file://sqlite-perl-test.pl \
"
SRC_URI[sha256sum] = "0a33a7a935be63371071dbe600cfaefa67cd971b67580a917bbf6ebaf723c584"
UPSTREAM_CHECK_REGEX = "DBD\-SQLite\-(?P<pver>(\d+\.\d+))(?!_\d+).tar"
S = "${UNPACKDIR}/DBD-SQLite-${PV}"
DEPENDS += "libdbi-perl-native"
inherit cpan ptest-perl
RDEPENDS:${PN} += "libdbi-perl \
sqlite3 \
perl-module-constant \
perl-module-locale \
perl-module-tie-hash \
"
do_install:append() {
if [ ${PERL_DBM_TEST} = "1" ]; then
install -m 755 -D ${UNPACKDIR}/sqlite-perl-test.pl ${D}/${bindir}/sqlite-perl-test.pl
fi
}
do_install_ptest() {
cp -r ${B}/MANIFEST ${D}${PTEST_PATH}
chown -R root:root ${D}${PTEST_PATH}
# the t/virtual_table/11_filcontent_fulltext tests load these files directly
cp -r ${S}/lib ${D}${PTEST_PATH}
cp -r ${S}/inc ${D}${PTEST_PATH}
}
RDEPENDS:${PN}-ptest += " \
libtest-nowarnings-perl \
perl-module-digest-md5 \
perl-module-encode-encoding \
perl-module-if \
perl-module-lib \
perl-module-encode \
perl-module-file-spec \
perl-module-file-spec-functions \
perl-module-findbin \
perl-module-test-more \
"
BBCLASSEXTEND = "native"