Date: Tue, 29 Aug 2023 19:37:23 GMT From: Yuri Victorovich <yuri@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 042f67f1ddd6 - main - textproc/riffdiff: New port: Diff filter highlighting which line parts have changed Message-ID: <202308291937.37TJbN1p072794@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=042f67f1ddd6938387c327696052852efffd0b80 commit 042f67f1ddd6938387c327696052852efffd0b80 Author: Yuri Victorovich <yuri@FreeBSD.org> AuthorDate: 2023-08-29 15:49:03 +0000 Commit: Yuri Victorovich <yuri@FreeBSD.org> CommitDate: 2023-08-29 19:37:19 +0000 textproc/riffdiff: New port: Diff filter highlighting which line parts have changed --- textproc/Makefile | 1 + textproc/riffdiff/Makefile | 84 +++++++++++++++++++++++++++++++ textproc/riffdiff/distinfo | 119 ++++++++++++++++++++++++++++++++++++++++++++ textproc/riffdiff/pkg-descr | 7 +++ 4 files changed, 211 insertions(+) diff --git a/textproc/Makefile b/textproc/Makefile index 3aec571f56ee..6884daa60d2c 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -1666,6 +1666,7 @@ SUBDIR += resume SUBDIR += resume-extensions SUBDIR += rfcdiff + SUBDIR += riffdiff SUBDIR += ripgrep SUBDIR += ripgrep-all SUBDIR += ripole diff --git a/textproc/riffdiff/Makefile b/textproc/riffdiff/Makefile new file mode 100644 index 000000000000..6360d9b7ec68 --- /dev/null +++ b/textproc/riffdiff/Makefile @@ -0,0 +1,84 @@ +PORTNAME= riffdiff +DISTVERSION= 2.25.2 +CATEGORIES= textproc + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Diff filter highlighting which line parts have changed +WWW= https://github.com/walles/riff + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= moar:textproc/moar + +USES= cargo + +USE_GITHUB= yes +GH_ACCOUNT= walles +GH_PROJECT= riff + +CARGO_CRATES= addr2line-0.14.0 \ + adler-0.2.3 \ + aho-corasick-0.7.18 \ + ansi_term-0.11.0 \ + autocfg-1.0.1 \ + backtrace-0.3.54 \ + bitflags-1.3.2 \ + bytecount-0.6.2 \ + cc-1.0.79 \ + cfg-if-1.0.0 \ + ctor-0.1.16 \ + difference-2.0.0 \ + diffus-0.10.0 \ + either-1.6.1 \ + errno-0.2.8 \ + errno-dragonfly-0.1.2 \ + fastrand-1.9.0 \ + gimli-0.23.0 \ + git-version-0.3.4 \ + git-version-macro-0.3.4 \ + hermit-abi-0.1.19 \ + instant-0.1.12 \ + io-lifetimes-1.0.6 \ + itertools-0.10.1 \ + lazy_static-1.4.0 \ + libc-0.2.140 \ + linux-raw-sys-0.1.4 \ + memchr-2.5.0 \ + miniz_oxide-0.4.3 \ + num_cpus-1.13.0 \ + object-0.22.0 \ + output_vt100-0.1.2 \ + pretty_assertions-0.6.1 \ + proc-macro-hack-0.5.19 \ + proc-macro2-1.0.24 \ + quote-1.0.7 \ + redox_syscall-0.2.10 \ + regex-1.5.5 \ + regex-syntax-0.6.26 \ + rustc-demangle-0.1.18 \ + rustix-0.36.9 \ + syn-1.0.48 \ + tempfile-3.4.0 \ + threadpool-1.8.1 \ + unicode-xid-0.2.1 \ + winapi-0.3.9 \ + winapi-i686-pc-windows-gnu-0.4.0 \ + winapi-x86_64-pc-windows-gnu-0.4.0 \ + windows-sys-0.42.0 \ + windows-sys-0.45.0 \ + windows-targets-0.42.1 \ + windows_aarch64_gnullvm-0.42.1 \ + windows_aarch64_msvc-0.42.1 \ + windows_i686_gnu-0.42.1 \ + windows_i686_msvc-0.42.1 \ + windows_x86_64_gnu-0.42.1 \ + windows_x86_64_gnullvm-0.42.1 \ + windows_x86_64_msvc-0.42.1 + +PLIST_FILES= bin/riff + +post-install: + @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/riff + +.include <bsd.port.mk> diff --git a/textproc/riffdiff/distinfo b/textproc/riffdiff/distinfo new file mode 100644 index 000000000000..556b1c223dc8 --- /dev/null +++ b/textproc/riffdiff/distinfo @@ -0,0 +1,119 @@ +TIMESTAMP = 1693335647 +SHA256 (rust/crates/addr2line-0.14.0.crate) = 7c0929d69e78dd9bf5408269919fcbcaeb2e35e5d43e5815517cdc6a8e11a423 +SIZE (rust/crates/addr2line-0.14.0.crate) = 30065 +SHA256 (rust/crates/adler-0.2.3.crate) = ee2a4ec343196209d6594e19543ae87a39f96d5534d7174822a3ad825dd6ed7e +SIZE (rust/crates/adler-0.2.3.crate) = 12168 +SHA256 (rust/crates/aho-corasick-0.7.18.crate) = 1e37cfd5e7657ada45f742d6e99ca5788580b5c529dc78faf11ece6dc702656f +SIZE (rust/crates/aho-corasick-0.7.18.crate) = 112923 +SHA256 (rust/crates/ansi_term-0.11.0.crate) = ee49baf6cb617b853aa8d93bf420db2383fab46d314482ca2803b40d5fde979b +SIZE (rust/crates/ansi_term-0.11.0.crate) = 17087 +SHA256 (rust/crates/autocfg-1.0.1.crate) = cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a +SIZE (rust/crates/autocfg-1.0.1.crate) = 12908 +SHA256 (rust/crates/backtrace-0.3.54.crate) = 2baad346b2d4e94a24347adeee9c7a93f412ee94b9cc26e5b59dea23848e9f28 +SIZE (rust/crates/backtrace-0.3.54.crate) = 72827 +SHA256 (rust/crates/bitflags-1.3.2.crate) = bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a +SIZE (rust/crates/bitflags-1.3.2.crate) = 23021 +SHA256 (rust/crates/bytecount-0.6.2.crate) = 72feb31ffc86498dacdbd0fcebb56138e7177a8cc5cea4516031d15ae85a742e +SIZE (rust/crates/bytecount-0.6.2.crate) = 12347 +SHA256 (rust/crates/cc-1.0.79.crate) = 50d30906286121d95be3d479533b458f87493b30a4b5f79a607db8f5d11aa91f +SIZE (rust/crates/cc-1.0.79.crate) = 62624 +SHA256 (rust/crates/cfg-if-1.0.0.crate) = baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd +SIZE (rust/crates/cfg-if-1.0.0.crate) = 7934 +SHA256 (rust/crates/ctor-0.1.16.crate) = 7fbaabec2c953050352311293be5c6aba8e141ba19d6811862b232d6fd020484 +SIZE (rust/crates/ctor-0.1.16.crate) = 4770 +SHA256 (rust/crates/difference-2.0.0.crate) = 524cbf6897b527295dff137cec09ecf3a05f4fddffd7dfcd1585403449e74198 +SIZE (rust/crates/difference-2.0.0.crate) = 147616 +SHA256 (rust/crates/diffus-0.10.0.crate) = 3c0ff24a73b51d9009c40897faf87d31b77345c90ffbf4dc3a1d2957032c5653 +SIZE (rust/crates/diffus-0.10.0.crate) = 6972 +SHA256 (rust/crates/either-1.6.1.crate) = e78d4f1cc4ae33bbfc157ed5d5a5ef3bc29227303d595861deb238fcec4e9457 +SIZE (rust/crates/either-1.6.1.crate) = 13641 +SHA256 (rust/crates/errno-0.2.8.crate) = f639046355ee4f37944e44f60642c6f3a7efa3cf6b78c78a0d989a8ce6c396a1 +SIZE (rust/crates/errno-0.2.8.crate) = 9276 +SHA256 (rust/crates/errno-dragonfly-0.1.2.crate) = aa68f1b12764fab894d2755d2518754e71b4fd80ecfb822714a1206c2aab39bf +SIZE (rust/crates/errno-dragonfly-0.1.2.crate) = 1810 +SHA256 (rust/crates/fastrand-1.9.0.crate) = e51093e27b0797c359783294ca4f0a911c270184cb10f85783b118614a1501be +SIZE (rust/crates/fastrand-1.9.0.crate) = 11910 +SHA256 (rust/crates/gimli-0.23.0.crate) = f6503fe142514ca4799d4c26297c4248239fe8838d827db6bd6065c6ed29a6ce +SIZE (rust/crates/gimli-0.23.0.crate) = 702175 +SHA256 (rust/crates/git-version-0.3.4.crate) = 94918e83f1e01dedc2e361d00ce9487b14c58c7f40bab148026fa39d42cb41e2 +SIZE (rust/crates/git-version-0.3.4.crate) = 3237 +SHA256 (rust/crates/git-version-macro-0.3.4.crate) = 34a97a52fdee1870a34fa6e4b77570cba531b27d1838874fef4429a791a3d657 +SIZE (rust/crates/git-version-macro-0.3.4.crate) = 3608 +SHA256 (rust/crates/hermit-abi-0.1.19.crate) = 62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33 +SIZE (rust/crates/hermit-abi-0.1.19.crate) = 9979 +SHA256 (rust/crates/instant-0.1.12.crate) = 7a5bbe824c507c5da5956355e86a746d82e0e1464f65d862cc5e71da70e94b2c +SIZE (rust/crates/instant-0.1.12.crate) = 6128 +SHA256 (rust/crates/io-lifetimes-1.0.6.crate) = cfa919a82ea574332e2de6e74b4c36e74d41982b335080fa59d4ef31be20fdf3 +SIZE (rust/crates/io-lifetimes-1.0.6.crate) = 36068 +SHA256 (rust/crates/itertools-0.10.1.crate) = 69ddb889f9d0d08a67338271fa9b62996bc788c7796a5c18cf057420aaed5eaf +SIZE (rust/crates/itertools-0.10.1.crate) = 116219 +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.140.crate) = 99227334921fae1a979cf0bfdfcc6b3e5ce376ef57e16fb6fb3ea2ed6095f80c +SIZE (rust/crates/libc-0.2.140.crate) = 669153 +SHA256 (rust/crates/linux-raw-sys-0.1.4.crate) = f051f77a7c8e6957c0696eac88f26b0117e54f52d3fc682ab19397a8812846a4 +SIZE (rust/crates/linux-raw-sys-0.1.4.crate) = 878981 +SHA256 (rust/crates/memchr-2.5.0.crate) = 2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d +SIZE (rust/crates/memchr-2.5.0.crate) = 65812 +SHA256 (rust/crates/miniz_oxide-0.4.3.crate) = 0f2d26ec3309788e423cfbf68ad1800f061638098d76a83681af979dc4eda19d +SIZE (rust/crates/miniz_oxide-0.4.3.crate) = 50058 +SHA256 (rust/crates/num_cpus-1.13.0.crate) = 05499f3756671c15885fee9034446956fff3f243d6077b91e5767df161f766b3 +SIZE (rust/crates/num_cpus-1.13.0.crate) = 14704 +SHA256 (rust/crates/object-0.22.0.crate) = 8d3b63360ec3cb337817c2dbd47ab4a0f170d285d8e5a2064600f3def1402397 +SIZE (rust/crates/object-0.22.0.crate) = 181505 +SHA256 (rust/crates/output_vt100-0.1.2.crate) = 53cdc5b785b7a58c5aad8216b3dfa114df64b0b06ae6e1501cef91df2fbdf8f9 +SIZE (rust/crates/output_vt100-0.1.2.crate) = 4062 +SHA256 (rust/crates/pretty_assertions-0.6.1.crate) = 3f81e1644e1b54f5a68959a29aa86cde704219254669da328ecfdf6a1f09d427 +SIZE (rust/crates/pretty_assertions-0.6.1.crate) = 61551 +SHA256 (rust/crates/proc-macro-hack-0.5.19.crate) = dbf0c48bc1d91375ae5c3cd81e3722dff1abcf81a30960240640d223f59fe0e5 +SIZE (rust/crates/proc-macro-hack-0.5.19.crate) = 15556 +SHA256 (rust/crates/proc-macro2-1.0.24.crate) = 1e0704ee1a7e00d7bb417d0770ea303c1bccbabf0ef1667dae92b5967f5f8a71 +SIZE (rust/crates/proc-macro2-1.0.24.crate) = 37716 +SHA256 (rust/crates/quote-1.0.7.crate) = aa563d17ecb180e500da1cfd2b028310ac758de548efdd203e18f283af693f37 +SIZE (rust/crates/quote-1.0.7.crate) = 25170 +SHA256 (rust/crates/redox_syscall-0.2.10.crate) = 8383f39639269cde97d255a32bdb68c047337295414940c68bdd30c2e13203ff +SIZE (rust/crates/redox_syscall-0.2.10.crate) = 23582 +SHA256 (rust/crates/regex-1.5.5.crate) = 1a11647b6b25ff05a515cb92c365cec08801e83423a235b51e231e1808747286 +SIZE (rust/crates/regex-1.5.5.crate) = 238119 +SHA256 (rust/crates/regex-syntax-0.6.26.crate) = 49b3de9ec5dc0a3417da371aab17d729997c15010e7fd24ff707773a33bddb64 +SIZE (rust/crates/regex-syntax-0.6.26.crate) = 293912 +SHA256 (rust/crates/rustc-demangle-0.1.18.crate) = 6e3bad0ee36814ca07d7968269dd4b7ec89ec2da10c4bb613928d3077083c232 +SIZE (rust/crates/rustc-demangle-0.1.18.crate) = 19913 +SHA256 (rust/crates/rustix-0.36.9.crate) = fd5c6ff11fecd55b40746d1995a02f2eb375bf8c00d192d521ee09f42bef37bc +SIZE (rust/crates/rustix-0.36.9.crate) = 293797 +SHA256 (rust/crates/syn-1.0.48.crate) = cc371affeffc477f42a221a1e4297aedcea33d47d19b61455588bd9d8f6b19ac +SIZE (rust/crates/syn-1.0.48.crate) = 225747 +SHA256 (rust/crates/tempfile-3.4.0.crate) = af18f7ae1acd354b992402e9ec5864359d693cd8a79dcbef59f76891701c1e95 +SIZE (rust/crates/tempfile-3.4.0.crate) = 30591 +SHA256 (rust/crates/threadpool-1.8.1.crate) = d050e60b33d41c19108b32cea32164033a9013fe3b46cbd4457559bfbf77afaa +SIZE (rust/crates/threadpool-1.8.1.crate) = 14408 +SHA256 (rust/crates/unicode-xid-0.2.1.crate) = f7fe0bb3479651439c9112f72b6c505038574c9fbb575ed1bf3b797fa39dd564 +SIZE (rust/crates/unicode-xid-0.2.1.crate) = 14392 +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-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 (rust/crates/windows-sys-0.42.0.crate) = 5a3e1820f08b8513f676f7ab6c1f99ff312fb97b553d30ff4dd86f9f15728aa7 +SIZE (rust/crates/windows-sys-0.42.0.crate) = 3006791 +SHA256 (rust/crates/windows-sys-0.45.0.crate) = 75283be5efb2831d37ea142365f009c02ec203cd29a3ebecbc093d52315b66d0 +SIZE (rust/crates/windows-sys-0.45.0.crate) = 2568659 +SHA256 (rust/crates/windows-targets-0.42.1.crate) = 8e2522491fbfcd58cc84d47aeb2958948c4b8982e9a2d8a2a35bbaed431390e7 +SIZE (rust/crates/windows-targets-0.42.1.crate) = 5524 +SHA256 (rust/crates/windows_aarch64_gnullvm-0.42.1.crate) = 8c9864e83243fdec7fc9c5444389dcbbfd258f745e7853198f365e3c4968a608 +SIZE (rust/crates/windows_aarch64_gnullvm-0.42.1.crate) = 362795 +SHA256 (rust/crates/windows_aarch64_msvc-0.42.1.crate) = 4c8b1b673ffc16c47a9ff48570a9d85e25d265735c503681332589af6253c6c7 +SIZE (rust/crates/windows_aarch64_msvc-0.42.1.crate) = 664655 +SHA256 (rust/crates/windows_i686_gnu-0.42.1.crate) = de3887528ad530ba7bdbb1faa8275ec7a1155a45ffa57c37993960277145d640 +SIZE (rust/crates/windows_i686_gnu-0.42.1.crate) = 733428 +SHA256 (rust/crates/windows_i686_msvc-0.42.1.crate) = bf4d1122317eddd6ff351aa852118a2418ad4214e6613a50e0191f7004372605 +SIZE (rust/crates/windows_i686_msvc-0.42.1.crate) = 722583 +SHA256 (rust/crates/windows_x86_64_gnu-0.42.1.crate) = c1040f221285e17ebccbc2591ffdc2d44ee1f9186324dd3e84e99ac68d699c45 +SIZE (rust/crates/windows_x86_64_gnu-0.42.1.crate) = 697614 +SHA256 (rust/crates/windows_x86_64_gnullvm-0.42.1.crate) = 628bfdf232daa22b0d64fdb62b09fcc36bb01f05a3939e20ab73aaf9470d0463 +SIZE (rust/crates/windows_x86_64_gnullvm-0.42.1.crate) = 362788 +SHA256 (rust/crates/windows_x86_64_msvc-0.42.1.crate) = 447660ad36a13288b1db4d4248e857b510e8c3a225c822ba4fb748c0aafecffd +SIZE (rust/crates/windows_x86_64_msvc-0.42.1.crate) = 664606 +SHA256 (walles-riff-2.25.2_GH0.tar.gz) = ea108289c0516ecabd35974208d360b189be1ad07f3d67883ff8784c8776b21c +SIZE (walles-riff-2.25.2_GH0.tar.gz) = 492796 diff --git a/textproc/riffdiff/pkg-descr b/textproc/riffdiff/pkg-descr new file mode 100644 index 000000000000..57bf7b116c04 --- /dev/null +++ b/textproc/riffdiff/pkg-descr @@ -0,0 +1,7 @@ +Riff is a wrapper around 'diff' that highlights which parts of lines have +changed. + +Much like 'git', riff sends its output to a pager, trying these in order: +1. whatever is specified in the '$PAGER' environment variable +2. 'moar' because it is nice +3. 'less' because it is ubiquitous
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202308291937.37TJbN1p072794>