COMMENT-main =		command line tool for working with Cooklang recipes
COMMENT-server =	web server for Cooklang recipes

V =			0.18.2
GH_ACCOUNT =		cooklang
GH_PROJECT =		cookcli
GH_TAGNAME =		v${V}
PKGNAME-main =		cookcli-${V}
PKGNAME-server =	cookcli-server-${V}

MULTI_PACKAGES =	-main -server

CATEGORIES =		textproc

HOMEPAGE =		https://cooklang.org

MAINTAINER =		Pascal Stumpf <pascal@stumpf.co>

# MIT
PERMIT_PACKAGE =	Yes

WANTLIB-main += ${MODCARGO_WANTLIB} crypto m ssl
WANTLIB-server = # empty

DISTFILES.css =		cookcli-$V-output.css
SITES.css =		https://distfiles.stumpf.co/

EXTRACT_CASES =		*.css) cp ${FULLDISTDIR}/$$archive ${WRKSRC}/static/css/output.css ;;

MODULES =		devel/cargo
RUN_DEPENDS-server =	${BUILD_PKGPATH},-main

CONFIGURE_STYLE =	cargo
SEPARATE_BUILD =	Yes

NO_TEST =		Yes

output.css:
#	maintainer target to regenerate output.css
	cd ${WRKSRC} && npm i -dd . && npm run -dd build-css 

.include "crates.inc"
.include <bsd.port.mk>
