diff --git a/sysutils/orch/Makefile b/sysutils/orch/Makefile index 34e68d19500b..c599ec9e4dd2 100644 --- a/sysutils/orch/Makefile +++ b/sysutils/orch/Makefile @@ -1,37 +1,52 @@ PORTNAME= orch PORTVERSION= 0.1 +PORTREVISION= 1 CATEGORIES= sysutils MASTER_SITES= https://git.kevans.dev/kevans/${PORTNAME}/archive/${PORTVERSION}.tar.gz?dummy=/ MAINTAINER= kevans@FreeBSD.org COMMENT= Program orchestration tool scripted with lua WWW= https://git.kevans.dev/kevans/orch LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE USES= lua:52-54 uidfix +PATCH_DIST_STRIP= -p1 +PATCH_SITES= https://git.kevans.dev/kevans/orch/commit/ +# Add script dir to $PATH rather than some custom searching +PATCHFILES+= b18ce0c42fc62e0e74a05cfd3286f664889b27d3.patch +# Add a `make check` target for easier testing +PATCHFILES+= 4d7797a706e57d1c7c6e0ed63c7bd86d4b0f2d71.patch + WRKSRC= ${WRKDIR}/${PORTNAME} ORCHLUA_PATH= ${PREFIX}/share/${PORTNAME} MAKE_ENV+= BINDIR="${PREFIX}/bin" \ EXAMPLESDIR="${ORCHLUA_PATH}/examples" \ MANDIR="${PREFIX}/share/man/man" \ LUA_INCDIR="${LUA_INCDIR}" \ LUA_LIB="-L${LUA_LIBDIR} -llua-${LUA_VER}" \ ORCHLUA_PATH="${ORCHLUA_PATH}" +TEST_TARGET= check .include # uidfix won't cover custom directories like this, so we'll hit it ourselves. .if ${UID} != 0 MAKE_ENV+= FILESDIR_OWN=${UID} FILESDIR_GRP=${GID} MAKE_ENV+= EXAMPLESDIR_OWN=${UID} EXAMPLESDIR_GRP=${GID} .endif +post-patch: + # XXX This can go away in the next version; patch(1) won't take the hint of + # the file mode from the patch, so we just fix it here in case one wants to + # run the tests + @${CHMOD} +x ${WRKSRC}/tests/my_cat + pre-install: ${MKDIR} ${STAGEDIR}${PREFIX}/bin ${STAGEDIR}${PREFIX}/share/man/man1 .include diff --git a/sysutils/orch/distinfo b/sysutils/orch/distinfo index 52af1438de94..b7e9e5a50cfc 100644 --- a/sysutils/orch/distinfo +++ b/sysutils/orch/distinfo @@ -1,3 +1,7 @@ -TIMESTAMP = 1705544817 +TIMESTAMP = 1705682998 SHA256 (orch-0.1.tar.gz) = c4c058f73324f883c9b823639664a97380bd041dbc4dfd646be325a99305aa64 SIZE (orch-0.1.tar.gz) = 20134 +SHA256 (b18ce0c42fc62e0e74a05cfd3286f664889b27d3.patch) = 15ee1c5192b1336edfef0974ac8c3e5943a08e8049dba32b4547890595186e01 +SIZE (b18ce0c42fc62e0e74a05cfd3286f664889b27d3.patch) = 6865 +SHA256 (4d7797a706e57d1c7c6e0ed63c7bd86d4b0f2d71.patch) = c6577dae7b4c9e0dd2bf1e35a1a2c424cd7a1a5123dc09de3ccbafa7f5eec9f4 +SIZE (4d7797a706e57d1c7c6e0ed63c7bd86d4b0f2d71.patch) = 3320