From nobody Fri Jun 14 06:25:05 2024 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4W0q5F71PBz5NVjh; Fri, 14 Jun 2024 06:25:05 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4W0q5F6QJ5z4ycV; Fri, 14 Jun 2024 06:25:05 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1718346305; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=IWU2apDkkaPB6yiYr5hwpGkN5/P6cvaHSuf6cBOFDwk=; b=SG2jI0ygc6wcurfu4ADrDP1Y0xP1E64memwwEVkR66YYCdUvvr6M9tNjaxRf23wEZ1w19+ NSLauk/KIHPzJbs+0ecaGrNLyO69ZsoxYPsfyYURzBysTojD15f7Mqn3TAC89JU1eADtAh QObpvJm5g4ExtCQ8TzwfhlEHL9OS5Mg639IZFLcW7xSZhsA17pW6ZWiGarppXv7v/j5EfE 1gJqz+YnoN9SWLmNai+ImfNdTvCwM/8oLQ37Z3eXbggVEvtaQJ0HcfnjywmKDS01oKXm95 RqjsgC8BYzHNOyRiFOwvMoHVDMnqFYBfcKtUv2v7PwRq5FrYXpP1gq85l6p6cQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1718346305; a=rsa-sha256; cv=none; b=jHaTvsW6l+XbIOAVyizz6y7iTkRNfHKO5pYRyVwRScPpe5HUrbpRHlBqXGkyynPbJGtvIU WjvL2YlkrF/ElRW9imQRxGwlpEhznOn0TS8p34dUk/LjQgFqml9Y+BY7ReVCepe6x5GLdd UeY7p9FHBJLc0zi642v/6mUIvuqvZ1g9IHDQ7hHnOUybjSbU5+b35Q1CwYRJ9qF6KgLm/I 7lHHdmKgZlOBfLR8m5ZU3hc+YAp2CmGUWDZBheezHaOjIyuTvkB+UB607e8VElXIKWtvRB 22xG6JOyid9qIuvZYarreNqCv2EMHtTGOQjaZz6NQ5DxC56wyrVaaiDOkIh6OQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1718346305; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=IWU2apDkkaPB6yiYr5hwpGkN5/P6cvaHSuf6cBOFDwk=; b=ZOyuLVAQFXoGvj/Wdj7VvwRKzuS+0sTtZuK458l4YCvxxbbpr/b+LkNeTai7NtZSOfyaSw GNxf/Q19CLQljVjwMbC2zK1Srjm8Hp9fFXRsu92X0G/flQaFvDVtS3ILbum7zeNanBe+6f kJr1Co/gGzAYf6enlQk9kim0HWD5qxPejyv47DdMXiF1N6yikP/cz0C4vaddx5ikJDxCm9 mX7QZnVdyiGWNYfD+gVH/caPIVO1GWLXtsw0gkiaNWctpz55q1h7Fx5/YYbRkHAa1h0Sak d218O9GSGkbh07yRJkrDYqjN3VAr+MNhjvNXKvydLznemchTff/mFwIfTuT0Hg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4W0q5F5v3Gz18bS; Fri, 14 Jun 2024 06:25:05 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 45E6P5JL069891; Fri, 14 Jun 2024 06:25:05 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 45E6P5UC069888; Fri, 14 Jun 2024 06:25:05 GMT (envelope-from git) Date: Fri, 14 Jun 2024 06:25:05 GMT Message-Id: <202406140625.45E6P5UC069888@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Fernando =?utf-8?Q?Apestegu=C3=ADa?= Subject: git: ae1b71bad01d - main - editors/vis: Update to 0.9 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-all@freebsd.org Sender: owner-dev-commits-ports-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fernape X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ae1b71bad01d9434535e34379a8c39dda24d299e Auto-Submitted: auto-generated The branch main has been updated by fernape: URL: https://cgit.FreeBSD.org/ports/commit/?id=ae1b71bad01d9434535e34379a8c39dda24d299e commit ae1b71bad01d9434535e34379a8c39dda24d299e Author: Jesús Daniel Colmenares Oviedo AuthorDate: 2024-06-12 06:39:31 +0000 Commit: Fernando Apesteguía CommitDate: 2024-06-14 06:24:21 +0000 editors/vis: Update to 0.9 ChangeLog: https://github.com/martanne/vis/blob/v0.9/CHANGELOG.md PR: 279689 Reported by: DtxdF@disroot.org (maintainer) --- editors/vis/Makefile | 29 ++++++++++++++++------------- editors/vis/distinfo | 10 +++++----- editors/vis/files/patch-configure | 30 ++++++++++++++---------------- editors/vis/files/patch-man_vis.1 | 24 ++++++++++++++---------- editors/vis/files/patch-vis-lua.c | 20 ++++++++++++++++++++ editors/vis/files/patch-vis-single.c | 11 +++++++++++ editors/vis/pkg-plist | 18 ++++++++++++++---- 7 files changed, 94 insertions(+), 48 deletions(-) diff --git a/editors/vis/Makefile b/editors/vis/Makefile index 72eb8c5c7690..5d50832f72ad 100644 --- a/editors/vis/Makefile +++ b/editors/vis/Makefile @@ -1,14 +1,11 @@ PORTNAME= vis -DISTVERSION= 0.8 +DISTVERSIONPREFIX= v +DISTVERSION= 0.9 CATEGORIES= editors -MASTER_SITES= https://github.com/martanne/${PORTNAME}/releases/download/v${VIS_VER}/:source \ - https://github.com/martanne/${PORTNAME}-test/releases/download/v${VIS_TEST_VER}/:test -DISTFILES= ${PORTNAME}-${VIS_VER}${EXTRACT_SUFX}:source \ - ${VIS_TEST_NAME}-${VIS_TEST_VER}${EXTRACT_SUFX}:test MAINTAINER= DtxdF@disroot.org COMMENT= Vi-like editor based on Plan 9's structural regular expressions -WWW= https://www.brain-dump.org/projects/vis/ +WWW= https://github.com/martanne/${PORTNAME} LICENSE= CC0-1.0 ISCL MIT LICENSE_COMB= multi @@ -18,6 +15,9 @@ LIB_DEPENDS+= libtermkey.so:devel/libtermkey TEST_DEPENDS= vim>0:editors/vim USES+= gmake lua pkgconfig +USE_GITHUB= yes +GH_ACCOUNT= martanne +GH_TAGNAME= b7074021b7bfb0932b889b9560dd22df31cef818:test HAS_CONFIGURE= yes CONFIGURE_ARGS= --prefix=${PREFIX} @@ -25,6 +25,8 @@ CONFIGURE_ARGS= --prefix=${PREFIX} INSTALL_TARGET= install-strip TEST_TARGET= test +REINPLACE_ARGS= -i '' + OPTIONS_DEFINE= LPEG NLS TRE OPTIONS_DEFAULT= LPEG TRE OPTIONS_RADIO= CLIPBOARD @@ -45,14 +47,15 @@ WL_COPY_RUN_DEPENDS= wl-clipboard>0:x11/wl-clipboard XCLIP_RUN_DEPENDS= xclip>0:x11/xclip XSEL_RUN_DEPENDS= xsel-conrad>0:x11/xsel-conrad -# To be consistent with VIS_TEST_VERSION. -VIS_VER= ${DISTVERSION} -VIS_TEST_VER= 0.5 -VIS_TEST_NAME= ${PORTNAME}-test - post-extract: - ${RMDIR} ${WRKSRC}/test - ${MV} ${WRKDIR}/${VIS_TEST_NAME}-${VIS_TEST_VER}/ ${WRKSRC}/test + ${CP} -a ${WRKSRC_test}/test/ ${WRKSRC}/test + +post-patch: + ${REINPLACE_CMD} -e 's,%%ETCDIR%%,${ETCDIR},1' \ + -e 's,%%PREFIX%%,${PREFIX},1' \ + ${WRKSRC}/man/vis.1 \ + ${WRKSRC}/vis-lua.c \ + ${WRKSRC}/vis-single.c post-install: @(cd ${STAGEDIR}${PREFIX}/bin; ${MV} vis vise) diff --git a/editors/vis/distinfo b/editors/vis/distinfo index a9e5ef1236f7..9600050f3735 100644 --- a/editors/vis/distinfo +++ b/editors/vis/distinfo @@ -1,5 +1,5 @@ -TIMESTAMP = 1677331839 -SHA256 (vis-0.8.tar.gz) = 61b10d40f15c4db2ce16e9acf291dbb762da4cbccf0cf2a80b28d9ac998a39bd -SIZE (vis-0.8.tar.gz) = 404496 -SHA256 (vis-test-0.5.tar.gz) = 0098ad933ec1f87bba4b2da9fa84e00cab5612ec3623622c1e5003a245aec7d1 -SIZE (vis-test-0.5.tar.gz) = 99314 +TIMESTAMP = 1718142435 +SHA256 (martanne-vis-v0.9_GH0.tar.gz) = bd37ffba5535e665c1e883c25ba5f4e3307569b6d392c60f3c7d5dedd2efcfca +SIZE (martanne-vis-v0.9_GH0.tar.gz) = 456713 +SHA256 (martanne-vis-b7074021b7bfb0932b889b9560dd22df31cef818_GH0.tar.gz) = 9e2a0f7d4c67075fd71f6461bb5a7753c11c36688185860b2e02e4ba42bb5410 +SIZE (martanne-vis-b7074021b7bfb0932b889b9560dd22df31cef818_GH0.tar.gz) = 558835 diff --git a/editors/vis/files/patch-configure b/editors/vis/files/patch-configure index e5068c93cec1..173004774e6c 100644 --- a/editors/vis/files/patch-configure +++ b/editors/vis/files/patch-configure @@ -1,19 +1,17 @@ ---- configure.orig 2023-02-25 11:16:23 UTC +--- configure.orig 2024-06-11 20:47:15 UTC +++ configure -@@ -236,7 +236,6 @@ esac - tryflag CFLAGS -pipe +@@ -233,14 +233,6 @@ esac + AIX) CFLAGS_STD="$CFLAGS_STD -D_ALL_SOURCE" ;; + esac - # Try flags to optimize binary size +-tryflag CFLAGS -pipe +- +-# Try flags to optimize binary size -tryflag CFLAGS -O2 - tryflag CFLAGS -ffunction-sections - tryflag CFLAGS -fdata-sections - tryldflag LDFLAGS_AUTO -Wl,--gc-sections -@@ -443,7 +442,7 @@ int main(int argc, char *argv[]) { - } - EOF - -- for liblua in lua lua5.4 lua5.3 lua5.2 lua-5.3 lua-5.2 lua54 lua53 lua52; do -+ for liblua in lua lua5.4 lua5.3 lua5.2 lua-5.4 lua-5.3 lua-5.2 lua54 lua53 lua52; do - printf " checking for %s... " "$liblua" - - if test "$have_pkgconfig" = "yes" ; then +-tryflag CFLAGS -ffunction-sections +-tryflag CFLAGS -fdata-sections +-tryldflag LDFLAGS_AUTO -Wl,--gc-sections +- + # Try hardening flags + tryflag CFLAGS -fPIE + tryflag CFLAGS_AUTO -fstack-protector-all diff --git a/editors/vis/files/patch-man_vis.1 b/editors/vis/files/patch-man_vis.1 index 93195eefb294..b5b5d238ad25 100644 --- a/editors/vis/files/patch-man_vis.1 +++ b/editors/vis/files/patch-man_vis.1 @@ -1,11 +1,15 @@ ---- man/vis.1.orig 2023-02-24 18:24:37 UTC +--- man/vis.1.orig 2024-05-01 19:49:18 UTC +++ man/vis.1 -@@ -260,7 +260,7 @@ currently defers regular expression matching to the un - It uses what POSIX refers to as - .Dq Extended Regular Expressions - as described in --.Xr regex 7 . -+.Xr re_format 7 . - The anchors - .Ic ^ - and +@@ -1548,10 +1548,10 @@ if unset. + if unset. + . + .It +-.Pa /etc/vis ++.Pa %%ETCDIR%% + for a system-wide configuration provided by administrator. + .It +-.Pa /usr/local/share/vis ++.Pa %%PREFIX%%/share/vis + or + .Pa /usr/share/vis + depending on the build configuration. diff --git a/editors/vis/files/patch-vis-lua.c b/editors/vis/files/patch-vis-lua.c new file mode 100644 index 000000000000..922f7cbbe976 --- /dev/null +++ b/editors/vis/files/patch-vis-lua.c @@ -0,0 +1,20 @@ +--- vis-lua.c.orig 2024-05-01 19:49:18 UTC ++++ vis-lua.c +@@ -27,7 +27,7 @@ + #include "util.h" + + #ifndef VIS_PATH +-#define VIS_PATH "/usr/local/share/vis" ++#define VIS_PATH "%%PREFIX%%/share/vis" + #endif + + #define VIS_LUA_TYPE_VIS "vis" +@@ -3248,7 +3248,7 @@ void vis_lua_init(Vis *vis) { + home = pw->pw_dir; + } + +- vis_lua_path_add(vis, "/etc/vis"); ++ vis_lua_path_add(vis, "%%ETCDIR%%"); + + const char *xdg_config = getenv("XDG_CONFIG_HOME"); + if (xdg_config) { diff --git a/editors/vis/files/patch-vis-single.c b/editors/vis/files/patch-vis-single.c new file mode 100644 index 000000000000..207f4b8edf13 --- /dev/null +++ b/editors/vis/files/patch-vis-single.c @@ -0,0 +1,11 @@ +--- vis-single.c.orig 2024-06-11 22:03:34 UTC ++++ vis-single.c +@@ -29,7 +29,7 @@ + + #ifndef VIS_TERMINFO + #define VIS_TERMINFO "/etc/terminfo:/lib/terminfo:/usr/share/terminfo:" \ +- "/usr/lib/terminfo:/usr/local/share/terminfo:/usr/local/lib/terminfo" ++ "/usr/lib/terminfo:%%PREFIX%%/share/terminfo:%%PREFIX%%/lib/terminfo" + #endif + + static lzma_stream strm = LZMA_STREAM_INIT; diff --git a/editors/vis/pkg-plist b/editors/vis/pkg-plist index 935db2dbb310..7209cc25ad94 100644 --- a/editors/vis/pkg-plist +++ b/editors/vis/pkg-plist @@ -163,12 +163,22 @@ share/man/man1/vise.1.gz %%TRE%%%%DATADIR%%/plugins/filetype.lua %%TRE%%%%DATADIR%%/plugins/number-inc-dec.lua %%TRE%%%%DATADIR%%/plugins/textobject-lexer.lua -%%TRE%%%%DATADIR%%/themes/dark-16.lua -%%TRE%%%%DATADIR%%/themes/default-16.lua -%%TRE%%%%DATADIR%%/themes/default-256.lua -%%TRE%%%%DATADIR%%/themes/light-16.lua %%TRE%%%%DATADIR%%/themes/solarized.lua %%TRE%%%%DATADIR%%/themes/zenburn.lua %%TRE%%%%DATADIR%%/vis-std.lua %%TRE%%%%DATADIR%%/vis.lua %%TRE%%%%DATADIR%%/visrc.lua +%%DATADIR%%/lexers/autohotkey.lua +%%DATADIR%%/lexers/gleam.lua +%%DATADIR%%/lexers/hare.lua +%%DATADIR%%/lexers/jq.lua +%%DATADIR%%/lexers/mediawiki.lua +%%DATADIR%%/lexers/objeck.lua +%%DATADIR%%/lexers/output.lua +%%DATADIR%%/lexers/rpmspec.lua +%%DATADIR%%/lexers/template.txt +%%DATADIR%%/lexers/troff.lua +%%DATADIR%%/lexers/txt2tags.lua +%%DATADIR%%/lexers/typescript.lua +%%DATADIR%%/themes/base-16.lua +%%DATADIR%%/themes/default.lua