Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 1 | SUMMARY = "Bash Automated Testing System" |
| 2 | DESCRIPTION = "Bats is a TAP-compliant testing framework for Bash. It \ |
| 3 | provides a simple way to verify that the UNIX programs you write behave as expected." |
| 4 | AUTHOR = "Sam Stephenson & bats-core organization" |
| 5 | HOMEPAGE = "https://github.com/bats-core/bats-core" |
| 6 | LICENSE = "MIT" |
| 7 | LIC_FILES_CHKSUM = "file://LICENSE.md;md5=2970203aedf9e829edb96a137a4fe81b" |
| 8 | |
Andrew Geissler | d583833 | 2022-05-27 11:33:10 -0500 | [diff] [blame] | 9 | SRC_URI = "\ |
Andrew Geissler | 615f2f1 | 2022-07-15 14:00:58 -0500 | [diff] [blame] | 10 | git://github.com/bats-core/bats-core.git;branch=master;protocol=https \ |
Andrew Geissler | d583833 | 2022-05-27 11:33:10 -0500 | [diff] [blame] | 11 | " |
| 12 | |
Andrew Geissler | 615f2f1 | 2022-07-15 14:00:58 -0500 | [diff] [blame] | 13 | # v1.7.0 |
Andrew Geissler | 87f5cff | 2022-09-30 13:13:31 -0500 | [diff] [blame] | 14 | SRCREV = "e9b286bb39ad7b0cb7b7d2e819d44d1aff387522" |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 15 | |
| 16 | S = "${WORKDIR}/git" |
| 17 | |
| 18 | do_configure:prepend() { |
| 19 | sed -i 's:\$BATS_ROOT/lib:\$BATS_ROOT/${baselib}:g' ${S}/libexec/bats-core/bats |
| 20 | sed -i 's:\$BATS_ROOT/lib:\$BATS_ROOT/${baselib}:g' ${S}/libexec/bats-core/bats-exec-file |
| 21 | sed -i 's:\$BATS_ROOT/lib:\$BATS_ROOT/${baselib}:g' ${S}/libexec/bats-core/bats-exec-test |
| 22 | } |
| 23 | |
| 24 | do_install() { |
| 25 | # Just a bunch of bash scripts to install |
| 26 | ${S}/install.sh ${D}${prefix} ${baselib} |
| 27 | } |
| 28 | |
| 29 | RDEPENDS:${PN} = "bash" |
| 30 | FILES:${PN} += "${libdir}/bats-core/*" |
| 31 | |
| 32 | PACKAGECONFIG ??= "pretty" |
| 33 | PACKAGECONFIG[pretty] = ",,,ncurses" |