diff --git a/devel/gcli/Makefile b/devel/gcli/Makefile index 723fd96b0227..ba4cec0045d9 100644 --- a/devel/gcli/Makefile +++ b/devel/gcli/Makefile @@ -1,42 +1,43 @@ PORTNAME= gcli DISTVERSION= 2.5.0 +PORTREVISION= 1 CATEGORIES= devel net MASTER_SITES= https://herrhotzenplotz.de/gcli/releases/gcli-${DISTVERSION}/ MAINTAINER= fuz@FreeBSD.org COMMENT= CLI utility to interact with various Git forges WWW= https://herrhotzenplotz.de/gcli/ LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libcurl.so:ftp/curl TEST_DEPENDS= kyua:devel/kyua USES= libtool pathfix pkgconfig ssl tar:xz HAS_CONFIGURE= yes .if defined(WITH_DEBUG) CONFIGURE_ARGS= --debug .else CONFIGURE_ARGS= --release .endif TEST_TARGET= check OPTIONS_DEFINE= LOWDOWN TEST OPTIONS_DEFAULT= LIBEDIT LOWDOWN OPTIONS_RADIO= LINEEDIT OPTIONS_RADIO_LINEEDIT= LIBEDIT READLINE LIBEDIT_USES= libedit LIBEDIT_CONFIGURE_ENABLE= libedit LOWDOWN_LIB_DEPENDS= liblowdown.so:textproc/lowdown LOWDOWN_CONFIGURE_ENABLE= liblowdown LOWDOWN_DESC= pretty-print Markdown using textproc/lowdown READLINE_USES= readline READLINE_CONFIGURE_ENABLE= libreadline TEST_LIB_DEPENDS= libatf-c.so:devel/atf post-install: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/gcli .include diff --git a/devel/gcli/files/patch-src_cmd_cmd.c b/devel/gcli/files/patch-src_cmd_cmd.c new file mode 100644 index 000000000000..8e82202932c2 --- /dev/null +++ b/devel/gcli/files/patch-src_cmd_cmd.c @@ -0,0 +1,15 @@ +--- src/cmd/cmd.c.orig 2024-12-28 13:13:41 UTC ++++ src/cmd/cmd.c +@@ -179,9 +179,9 @@ gcli_pretty_print(char const *input, int indent, int m + if (!gcli_config_have_colours(g_clictx)) + opts.oflags |= (LOWDOWN_TERM_NOANSI|LOWDOWN_TERM_NOCOLOUR); + +- opts.vmargin = 1; +- opts.hmargin = indent - 4; /* somehow there's always 4 spaces being emitted by lowdown */ +- opts.cols = maxlinelen; ++ opts.term.vmargin = 1; ++ opts.term.hmargin = indent - 4; /* somehow there's always 4 spaces being emitted by lowdown */ ++ opts.term.cols = maxlinelen; + + if ((doc = lowdown_doc_new(&opts)) == NULL) + err(1, NULL);