# Template file for 'kyua'
pkgname=kyua
version=0.11
revision=1
wrksrc="kyua-kyua-${version}"
build_style=gnu-configure
configure_args="
 kyua_cv_attribute_noreturn=yes kyua_cv_lchmod_works=no
 kyua_cv_getopt_gnu=yes kyua_cv_getopt_optind_reset_value=0
 kyua_cv_signals_lastno=31 kyua_cv_getcwd_dyn=yes
 ac_cv_path_GDB=/usr/bin/gdb ac_cv_path_UMOUNT=/usr/bin/umount"
hostmakedepends="pkg-config automake libtool atf-devel"
makedepends="atf-devel lutok-devel sqlite-devel"
depends="atf>=0.21"
replaces="kyua-cli>=0 kyua-testers>=0"
short_desc="Kyua (automated testing framework) - Command line interface"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="Modified BSD"
homepage="http://code.google.com/p/kyua"
distfiles="https://github.com/jmmv/kyua/archive/kyua-${version}.tar.gz"
checksum=55a2e1c5ab28748392cfed3b2783ed381ffe2d0247bca9a9ac19ae94fe029172

pre_configure() {
	autoreconf -fi
}

kyua-tests_package() {
	short_desc+=" - testsuite"
	pkg_install() {
		vmove usr/tests
	}
}
