Index | Thread | Search

From:
Stuart Henderson <stu@spacehopper.org>
Subject:
Re: [NEW] net/trurl
To:
David Leadbeater <dgl@dgl.cx>
Cc:
Klemens Nanni <kn@openbsd.org>, Christian Weisgerber <naddy@mips.inka.de>, ports@openbsd.org
Date:
Tue, 28 Oct 2025 13:59:56 +0000

Download raw body.

Thread
On 2025/10/28 15:17, David Leadbeater wrote:
> On Mon, Oct 27, 2025 at 10:37:49AM +0000, Stuart Henderson wrote:
> > On 2025/10/26 21:57, Klemens Nanni wrote:
> [...]
> > > With that OK kn
> > 
> > diff doesn't apply.
> 
> Updated (based on kn's, thanks), with ${LOCALBASE} and a tiny bit more
> reordering to match template:

new tgz attached with that applied.

ok sthen

> diff --git net/trurl/Makefile net/trurl/Makefile
> index 29c919160fd..60046e58427 100644
> --- net/trurl/Makefile
> +++ net/trurl/Makefile
> @@ -9,21 +9,31 @@ MAINTAINER=	David Leadbeater <dgl@dgl.cx>
>  # MIT
>  PERMIT_PACKAGE=	Yes
>  
> +WANTLIB=	c curl
> +
>  SITES=		https://curl.se/trurl/dl/
> -EXTRACT_SUFX=	.tar.gz
> +
> +MODULES=	lang/python
> +MODPY_BUILDDEP=	No
> +MODPY_RUNDEP=	No
>  
>  BUILD_DEPENDS=	shells/bash
> -TEST_DEPENDS=	lang/python/3
>  LIB_DEPENDS=	net/curl
> -WANTLIB=	c curl
> +TEST_DEPENDS=	${MODPY_RUN_DEPENDS}
>  
> -USE_GMAKE=	Yes
> -ALL_TARGET=	all completions
>  # install target combines PREFIX and DISTDIR, this puts the files in the
>  # correct location.
> -FAKE_FLAGS=	PREFIX="${TRUEPREFIX}" MANDIR="${TRUEPREFIX}/man/man1"
> +FAKE_FLAGS=	PREFIX="${TRUEPREFIX}"\
> +		MANDIR="${TRUEPREFIX}/man/man1"
> +
> +TEST_FLAGS=	PYTHON3=${MODPY_BIN}
> +
> +USE_GMAKE=	Yes
> +CONFIGURE_STYLE= none
> +
> +ALL_TARGET=	all completions
>  
> -pre-configure:
> -	sed -i 's,/bin/bash,/usr/bin/env bash,' ${WRKSRC}/scripts/*.sh
> +post-extract:
> +	sed -i 's,/bin/bash,${LOCALBASE}/bin/bash,' ${WRKSRC}/scripts/*.sh
>  
>  .include <bsd.port.mk>
>