1*03514f19SPatrick WilliamsSUMMARY = "Bash Automated Testing System"
2*03514f19SPatrick WilliamsDESCRIPTION = "Bats is a TAP-compliant testing framework for Bash. It \
3*03514f19SPatrick Williamsprovides a simple way to verify that the UNIX programs you write behave as expected."
4*03514f19SPatrick WilliamsHOMEPAGE = "https://github.com/bats-core/bats-core"
5*03514f19SPatrick WilliamsLICENSE = "MIT"
6*03514f19SPatrick WilliamsLIC_FILES_CHKSUM = "file://LICENSE.md;md5=2970203aedf9e829edb96a137a4fe81b"
7*03514f19SPatrick Williams
8*03514f19SPatrick WilliamsSRC_URI = "\
9*03514f19SPatrick Williams  git://github.com/bats-core/bats-core.git;branch=master;protocol=https \
10*03514f19SPatrick Williams  "
11*03514f19SPatrick Williams
12*03514f19SPatrick Williams# v1.10.0
13*03514f19SPatrick WilliamsSRCREV = "7531b575bb81487553553aecb654c41b237ae96c"
14*03514f19SPatrick Williams
15*03514f19SPatrick WilliamsS = "${WORKDIR}/git"
16*03514f19SPatrick Williams
17*03514f19SPatrick Williams# Numerous scripts assume ${baselib} == lib, which is not true.
18*03514f19SPatrick Williams#
19*03514f19SPatrick Williamsdo_configure:prepend() {
20*03514f19SPatrick Williams	for f in ${S}/libexec/bats-core/* ${S}/lib/bats-core/* ; do
21*03514f19SPatrick Williams		sed -i 's:\$BATS_ROOT/lib/:\$BATS_ROOT/${baselib}/:g' $f
22*03514f19SPatrick Williams	done
23*03514f19SPatrick Williams}
24*03514f19SPatrick Williams
25*03514f19SPatrick Williamsdo_install() {
26*03514f19SPatrick Williams	# Just a bunch of bash scripts to install
27*03514f19SPatrick Williams	${S}/install.sh ${D}${prefix} ${baselib}
28*03514f19SPatrick Williams}
29*03514f19SPatrick Williams
30*03514f19SPatrick WilliamsRDEPENDS:${PN} = "bash"
31*03514f19SPatrick WilliamsFILES:${PN} += "${libdir}/bats-core/*"
32*03514f19SPatrick Williams
33*03514f19SPatrick WilliamsPACKAGECONFIG ??= "pretty"
34*03514f19SPatrick WilliamsPACKAGECONFIG[pretty] = ",,,ncurses"
35