git: 3ecce0c67e63 - main - devel/tagref: New port: Tagref helps you maintain cross-references in your code

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Fri, 06 Jan 2023 07:18:08 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=3ecce0c67e63c94d255dbdd9c76650febc48d883

commit 3ecce0c67e63c94d255dbdd9c76650febc48d883
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-01-06 06:29:21 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-01-06 07:17:56 +0000

    devel/tagref: New port: Tagref helps you maintain cross-references in your code
---
 devel/Makefile         |  1 +
 devel/tagref/Makefile  | 57 +++++++++++++++++++++++++++++++++++++++++
 devel/tagref/distinfo  | 69 ++++++++++++++++++++++++++++++++++++++++++++++++++
 devel/tagref/pkg-descr |  8 ++++++
 4 files changed, 135 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 899f0eed080c..3450a9c842be 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -7353,6 +7353,7 @@
     SUBDIR += ta-lib
     SUBDIR += tablist
     SUBDIR += tabulate
+    SUBDIR += tagref
     SUBDIR += tailor
     SUBDIR += talloc
     SUBDIR += tarpaulin
diff --git a/devel/tagref/Makefile b/devel/tagref/Makefile
new file mode 100644
index 000000000000..aa003bb76d37
--- /dev/null
+++ b/devel/tagref/Makefile
@@ -0,0 +1,57 @@
+PORTNAME=	tagref
+DISTVERSIONPREFIX=	v
+DISTVERSION=	1.5.0
+CATEGORIES=	devel
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Tagref helps you maintain cross-references in your code
+WWW=		https://github.com/stepchowfun/tagref
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE.md
+
+USES=		cargo
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	stepchowfun
+
+CARGO_CRATES=	aho-corasick-0.7.15 \
+		ansi_term-0.11.0 \
+		atty-0.2.14 \
+		autocfg-1.0.1 \
+		bitflags-1.2.1 \
+		bstr-0.2.15 \
+		cfg-if-1.0.0 \
+		clap-2.33.3 \
+		colored-1.9.3 \
+		crossbeam-utils-0.8.3 \
+		fnv-1.0.7 \
+		globset-0.4.6 \
+		hermit-abi-0.1.18 \
+		ignore-0.4.17 \
+		lazy_static-1.4.0 \
+		libc-0.2.93 \
+		log-0.4.14 \
+		memchr-2.3.4 \
+		once_cell-1.7.2 \
+		regex-1.4.5 \
+		regex-syntax-0.6.23 \
+		same-file-1.0.6 \
+		strsim-0.8.0 \
+		term_size-0.3.2 \
+		textwrap-0.11.0 \
+		thread_local-1.1.3 \
+		unicode-width-0.1.8 \
+		vec_map-0.8.2 \
+		walkdir-2.3.2 \
+		winapi-0.3.9 \
+		winapi-i686-pc-windows-gnu-0.4.0 \
+		winapi-util-0.1.5 \
+		winapi-x86_64-pc-windows-gnu-0.4.0
+
+PLIST_FILES=	bin/${PORTNAME}
+
+post-install:
+	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
+
+.include <bsd.port.mk>
diff --git a/devel/tagref/distinfo b/devel/tagref/distinfo
new file mode 100644
index 000000000000..349b180dd7be
--- /dev/null
+++ b/devel/tagref/distinfo
@@ -0,0 +1,69 @@
+TIMESTAMP = 1672980945
+SHA256 (rust/crates/aho-corasick-0.7.15.crate) = 7404febffaa47dac81aa44dba71523c9d069b1bdc50a77db41195149e17f68e5
+SIZE (rust/crates/aho-corasick-0.7.15.crate) = 113071
+SHA256 (rust/crates/ansi_term-0.11.0.crate) = ee49baf6cb617b853aa8d93bf420db2383fab46d314482ca2803b40d5fde979b
+SIZE (rust/crates/ansi_term-0.11.0.crate) = 17087
+SHA256 (rust/crates/atty-0.2.14.crate) = d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8
+SIZE (rust/crates/atty-0.2.14.crate) = 5470
+SHA256 (rust/crates/autocfg-1.0.1.crate) = cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a
+SIZE (rust/crates/autocfg-1.0.1.crate) = 12908
+SHA256 (rust/crates/bitflags-1.2.1.crate) = cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693
+SIZE (rust/crates/bitflags-1.2.1.crate) = 16745
+SHA256 (rust/crates/bstr-0.2.15.crate) = a40b47ad93e1a5404e6c18dec46b628214fee441c70f4ab5d6942142cc268a3d
+SIZE (rust/crates/bstr-0.2.15.crate) = 344206
+SHA256 (rust/crates/cfg-if-1.0.0.crate) = baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd
+SIZE (rust/crates/cfg-if-1.0.0.crate) = 7934
+SHA256 (rust/crates/clap-2.33.3.crate) = 37e58ac78573c40708d45522f0d80fa2f01cc4f9b4e2bf749807255454312002
+SIZE (rust/crates/clap-2.33.3.crate) = 201925
+SHA256 (rust/crates/colored-1.9.3.crate) = f4ffc801dacf156c5854b9df4f425a626539c3a6ef7893cc0c5084a23f0b6c59
+SIZE (rust/crates/colored-1.9.3.crate) = 20062
+SHA256 (rust/crates/crossbeam-utils-0.8.3.crate) = e7e9d99fa91428effe99c5c6d4634cdeba32b8cf784fc428a2a687f61a952c49
+SIZE (rust/crates/crossbeam-utils-0.8.3.crate) = 37268
+SHA256 (rust/crates/fnv-1.0.7.crate) = 3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1
+SIZE (rust/crates/fnv-1.0.7.crate) = 11266
+SHA256 (rust/crates/globset-0.4.6.crate) = c152169ef1e421390738366d2f796655fec62621dabbd0fd476f905934061e4a
+SIZE (rust/crates/globset-0.4.6.crate) = 22893
+SHA256 (rust/crates/hermit-abi-0.1.18.crate) = 322f4de77956e22ed0e5032c359a0f1273f1f7f0d79bfa3b8ffbc730d7fbcc5c
+SIZE (rust/crates/hermit-abi-0.1.18.crate) = 9936
+SHA256 (rust/crates/ignore-0.4.17.crate) = b287fb45c60bb826a0dc68ff08742b9d88a2fea13d6e0c286b3172065aaf878c
+SIZE (rust/crates/ignore-0.4.17.crate) = 53056
+SHA256 (rust/crates/lazy_static-1.4.0.crate) = e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646
+SIZE (rust/crates/lazy_static-1.4.0.crate) = 10443
+SHA256 (rust/crates/libc-0.2.93.crate) = 9385f66bf6105b241aa65a61cb923ef20efc665cb9f9bb50ac2f0c4b7f378d41
+SIZE (rust/crates/libc-0.2.93.crate) = 510944
+SHA256 (rust/crates/log-0.4.14.crate) = 51b9bbe6c47d51fc3e1a9b945965946b4c44142ab8792c50835a980d362c2710
+SIZE (rust/crates/log-0.4.14.crate) = 34582
+SHA256 (rust/crates/memchr-2.3.4.crate) = 0ee1c47aaa256ecabcaea351eae4a9b01ef39ed810004e298d2511ed284b1525
+SIZE (rust/crates/memchr-2.3.4.crate) = 23077
+SHA256 (rust/crates/once_cell-1.7.2.crate) = af8b08b04175473088b46763e51ee54da5f9a164bc162f615b91bc179dbf15a3
+SIZE (rust/crates/once_cell-1.7.2.crate) = 28250
+SHA256 (rust/crates/regex-1.4.5.crate) = 957056ecddbeba1b26965114e191d2e8589ce74db242b6ea25fc4062427a5c19
+SIZE (rust/crates/regex-1.4.5.crate) = 241716
+SHA256 (rust/crates/regex-syntax-0.6.23.crate) = 24d5f089152e60f62d28b835fbff2cd2e8dc0baf1ac13343bef92ab7eed84548
+SIZE (rust/crates/regex-syntax-0.6.23.crate) = 293195
+SHA256 (rust/crates/same-file-1.0.6.crate) = 93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502
+SIZE (rust/crates/same-file-1.0.6.crate) = 10183
+SHA256 (rust/crates/strsim-0.8.0.crate) = 8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a
+SIZE (rust/crates/strsim-0.8.0.crate) = 9309
+SHA256 (rust/crates/term_size-0.3.2.crate) = 1e4129646ca0ed8f45d09b929036bafad5377103edd06e50bf574b353d2b08d9
+SIZE (rust/crates/term_size-0.3.2.crate) = 10917
+SHA256 (rust/crates/textwrap-0.11.0.crate) = d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060
+SIZE (rust/crates/textwrap-0.11.0.crate) = 17322
+SHA256 (rust/crates/thread_local-1.1.3.crate) = 8018d24e04c95ac8790716a5987d0fec4f8b27249ffa0f7d33f1369bdfb88cbd
+SIZE (rust/crates/thread_local-1.1.3.crate) = 13111
+SHA256 (rust/crates/unicode-width-0.1.8.crate) = 9337591893a19b88d8d87f2cec1e73fad5cdfd10e5a6f349f498ad6ea2ffb1e3
+SIZE (rust/crates/unicode-width-0.1.8.crate) = 16732
+SHA256 (rust/crates/vec_map-0.8.2.crate) = f1bddf1187be692e79c5ffeab891132dfb0f236ed36a43c7ed39f1165ee20191
+SIZE (rust/crates/vec_map-0.8.2.crate) = 14466
+SHA256 (rust/crates/walkdir-2.3.2.crate) = 808cf2735cd4b6866113f648b791c6adc5714537bc222d9347bb203386ffda56
+SIZE (rust/crates/walkdir-2.3.2.crate) = 23516
+SHA256 (rust/crates/winapi-0.3.9.crate) = 5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419
+SIZE (rust/crates/winapi-0.3.9.crate) = 1200382
+SHA256 (rust/crates/winapi-i686-pc-windows-gnu-0.4.0.crate) = ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6
+SIZE (rust/crates/winapi-i686-pc-windows-gnu-0.4.0.crate) = 2918815
+SHA256 (rust/crates/winapi-util-0.1.5.crate) = 70ec6ce85bb158151cae5e5c87f95a8e97d2c0c4b001223f33a334e3ce5de178
+SIZE (rust/crates/winapi-util-0.1.5.crate) = 10164
+SHA256 (rust/crates/winapi-x86_64-pc-windows-gnu-0.4.0.crate) = 712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f
+SIZE (rust/crates/winapi-x86_64-pc-windows-gnu-0.4.0.crate) = 2947998
+SHA256 (stepchowfun-tagref-v1.5.0_GH0.tar.gz) = dd6321133c2bef64f9230d6aaddfba8a4327749236638c23c65d0832ca2fef48
+SIZE (stepchowfun-tagref-v1.5.0_GH0.tar.gz) = 19387
diff --git a/devel/tagref/pkg-descr b/devel/tagref/pkg-descr
new file mode 100644
index 000000000000..e6ad39cd3c5e
--- /dev/null
+++ b/devel/tagref/pkg-descr
@@ -0,0 +1,8 @@
+tagref helps to maintain code references in codebases.
+
+Tagref ensures such references remain valid. If someone tries to delete or
+rename the tag, Tagref will complain. More precisely, it checks the following:
+1. References actually point to tags. A tag cannot be deleted or renamed
+   without updating the references that point to it.
+2. Tags are distinct. There is never any ambiguity about which tag is being
+   referenced.