COMMENT=	command line tool for URL parsing and manipulation

DISTNAME=	trurl-0.16.1
CATEGORIES=	net
HOMEPAGE=	https://curl.se/trurl/

MAINTAINER=	David Leadbeater <dgl@dgl.cx>

# MIT
PERMIT_PACKAGE=	Yes

SITES=		https://curl.se/trurl/dl/
EXTRACT_SUFX=	.tar.gz

BUILD_DEPENDS=	shells/bash
TEST_DEPENDS=	lang/python/3
LIB_DEPENDS=	net/curl
WANTLIB=	c curl

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"

pre-configure:
	sed -i 's,/bin/bash,/usr/bin/env bash,' ${WRKSRC}/scripts/*.sh

.include <bsd.port.mk>
