rpe ad226a3503 Import devel/bashunit-20140327
Description:

  bashunit is a unit testing framework for Bash scripts based on xUnit
  principles.

  This is similar to the ShUnit and its successor shUnit2.

OK sthen@
2017-11-03 15:25:24 +00:00

41 lines
968 B
Makefile

# $OpenBSD: Makefile,v 1.1.1.1 2017/11/03 15:25:24 rpe Exp $
COMMENT = Bash unit testing framework based on xUnit principles
DISTNAME = bashunit-20140327
GH_ACCOUNT = djui
GH_PROJECT = bashunit
GH_COMMIT = deacbc814120cd086df760f135587eaa86ee4e3a
CATEGORIES = devel
MAINTAINER = Robert Peichaer <rpe@openbsd.org>
# BSD
PERMIT_PACKAGE_CDROM = Yes
RUN_DEPENDS = sysutils/ggrep \
shells/bash
NO_BUILD = Yes
NO_TEST = Yes
post-extract:
sed -i -e 's,^#!/usr/bin/env ,#!${LOCALBASE}/bin/,' \
-e 's,grep,ggrep,' \
${WRKSRC}/bashunit.bash
sed -i -e 's,^#!/bin,#!${LOCALBASE}/bin,' \
${WRKSRC}/test_example
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/bashunit.bash ${PREFIX}/bin
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/bashunit \
${PREFIX}/share/examples/bashunit
${INSTALL_DATA} ${WRKSRC}/{LICENSE,README.md} \
${PREFIX}/share/doc/bashunit
${INSTALL_DATA} ${WRKSRC}/test_example \
${PREFIX}/share/examples/bashunit
.include <bsd.port.mk>