Mon May 2 02:29:14 2016 UTC ()
Add bats version 0.4.0 in the NetBSD Packages Collection.
Bats is a TAP-compliant testing framework for Bash. It provides a
simple way to verify that the UNIX programs you write behave as
expected.
A Bats test file is a Bash script with special syntax for defining
test cases. Under the hood, each test case is just a function with
a description.
(seb)
diff -r0 -r1.1 pkgsrc/devel/bats/DESCR
diff -r0 -r1.1 pkgsrc/devel/bats/Makefile
diff -r0 -r1.1 pkgsrc/devel/bats/PLIST
diff -r0 -r1.1 pkgsrc/devel/bats/distinfo
diff -r0 -r1.1 pkgsrc/devel/bats/patches/patch-install.sh
Bats is a TAP-compliant testing framework for Bash. It provides a
simple way to verify that the UNIX programs you write behave as
expected.
A Bats test file is a Bash script with special syntax for defining
test cases. Under the hood, each test case is just a function with
a description.
# $NetBSD: Makefile,v 1.1 2016/05/02 02:29:14 seb Exp $
DISTNAME= bats-0.4.0
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GITHUB:=sstephenson/}
MAINTAINER= pkgsrc@NetBSD.org
HOMEPAGE= https://github.com/sstephenson/bats
COMMENT= Testing framework for Bash
LICENSE= mit
GITHUB_TAG= v${PKGVERSION_NOREV}
USE_LANGUAGES= # none
NO_BUILD= yes
USE_TOOLS+= bash:run
CHECK_INTERPRETER_SKIP= bin/bats libexec/bats*
do-install:
cd ${WRKSRC} && ./install.sh ${DESTDIR}${PREFIX}
do-test:
cd ${WRKSRC} && ./bin/bats ./test
.include "../../mk/bsd.pkg.mk"
@comment $NetBSD: PLIST,v 1.1 2016/05/02 02:29:14 seb Exp $
bin/bats
libexec/bats
libexec/bats-exec-suite
libexec/bats-exec-test
libexec/bats-format-tap-stream
libexec/bats-preprocess
man/man1/bats.1
man/man7/bats.7
$NetBSD: distinfo,v 1.1 2016/05/02 02:29:14 seb Exp $
SHA1 (bats-0.4.0.tar.gz) = cb8a5f4c844a5f052f915036130def31140fce94
RMD160 (bats-0.4.0.tar.gz) = 5c64f76448df4a2ed8874b8c7830eda49f732e97
SHA512 (bats-0.4.0.tar.gz) = 83c6c0e3ceec149708a8db5d33e95cc84852d8189498c22131c00f4288a6c870f9d522bae9230157f442338dc101e1468451d78dfa274afb83a6f0dd614c8bdb
Size (bats-0.4.0.tar.gz) = 17258 bytes
SHA1 (patch-install.sh) = 271e6b4711095e62d5f142fc31b906bf0501da0b
$NetBSD: patch-install.sh,v 1.1 2016/05/02 02:29:14 seb Exp $
Change manpages installation directory.
--- install.sh.orig 2014-08-13 14:59:22.000000000 +0000
+++ install.sh
@@ -28,10 +28,10 @@ if [ -z "$1" ]; then
fi
BATS_ROOT="$(abs_dirname "$0")"
-mkdir -p "$PREFIX"/{bin,libexec,share/man/man{1,7}}
+mkdir -p "$PREFIX"/{bin,libexec,man/man{1,7}}
cp -R "$BATS_ROOT"/bin/* "$PREFIX"/bin
cp -R "$BATS_ROOT"/libexec/* "$PREFIX"/libexec
-cp "$BATS_ROOT"/man/bats.1 "$PREFIX"/share/man/man1
-cp "$BATS_ROOT"/man/bats.7 "$PREFIX"/share/man/man7
+cp "$BATS_ROOT"/man/bats.1 "$PREFIX"/man/man1
+cp "$BATS_ROOT"/man/bats.7 "$PREFIX"/man/man7
echo "Installed Bats to $PREFIX/bin/bats"