pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/superdiff devel/superdiff: import package
details: https://anonhg.NetBSD.org/pkgsrc/rev/ed49ab541b4c
branches: trunk
changeset: 390777:ed49ab541b4c
user: pin <pin%pkgsrc.org@localhost>
date: Thu Dec 29 08:07:22 2022 +0000
description:
devel/superdiff: import package
Are you working to eliminate similar/duplicate code from your files?
Do you have a suspicion that chunks of code are copy-pasted, but are slightly
different s.t. normal diff methods don't work?
Are you tired of visually going through and inspecting your code for repeating
chunks?
If so, this might be the tool for you!
Features
- Finds duplicate code slices
- Finds similar-enough code slices
- JSON reporting for jq integeration
- Fast enough (00:03:39 for a 17k LOC with block size 10 and Levenshtein
threshold 10)
- Can check for duplicate code across multiple files
- Vim integration!
Limitations
- Not instantaneous for large files
- Single-threaded
diffstat:
devel/superdiff/DESCR | 22 +++++++++
devel/superdiff/Makefile | 22 +++++++++
devel/superdiff/PLIST | 2 +
devel/superdiff/cargo-depends.mk | 32 +++++++++++++
devel/superdiff/distinfo | 95 ++++++++++++++++++++++++++++++++++++++++
5 files changed, 173 insertions(+), 0 deletions(-)
diffs (193 lines):
diff -r 5c080ffd1fd5 -r ed49ab541b4c devel/superdiff/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/superdiff/DESCR Thu Dec 29 08:07:22 2022 +0000
@@ -0,0 +1,22 @@
+Are you working to eliminate similar/duplicate code from your files?
+
+Do you have a suspicion that chunks of code are copy-pasted, but are slightly
+different s.t. normal diff methods don't work?
+
+Are you tired of visually going through and inspecting your code for repeating
+chunks?
+
+If so, this might be the tool for you!
+
+Features
+- Finds duplicate code slices
+- Finds similar-enough code slices
+- JSON reporting for jq integeration
+- Fast enough (00:03:39 for a 17k LOC with block size 10 and Levenshtein
+ threshold 10)
+- Can check for duplicate code across multiple files
+- Vim integration!
+
+Limitations
+- Not instantaneous for large files
+- Single-threaded
diff -r 5c080ffd1fd5 -r ed49ab541b4c devel/superdiff/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/superdiff/Makefile Thu Dec 29 08:07:22 2022 +0000
@@ -0,0 +1,22 @@
+# $NetBSD: Makefile,v 1.1 2022/12/29 08:07:22 pin Exp $
+
+DISTNAME= superdiff-2.0.3
+CATEGORIES= devel
+MASTER_SITES= ${MASTER_SITE_GITHUB:=cheukyin699/}
+GITHUB_TAG= 24af81652102a178e8c240474d69ce9fb765ab82
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://github.com/cheukyin699/superdiff/
+COMMENT= Find duplicate code blocks in a file
+LICENSE= gnu-gpl-v3
+
+.include "cargo-depends.mk"
+
+INSTALLATION_DIRS= bin
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/target/release/superdiff \
+ ${DESTDIR}${PREFIX}/bin
+
+.include "../../lang/rust/cargo.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 5c080ffd1fd5 -r ed49ab541b4c devel/superdiff/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/superdiff/PLIST Thu Dec 29 08:07:22 2022 +0000
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2022/12/29 08:07:22 pin Exp $
+bin/superdiff
diff -r 5c080ffd1fd5 -r ed49ab541b4c devel/superdiff/cargo-depends.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/superdiff/cargo-depends.mk Thu Dec 29 08:07:22 2022 +0000
@@ -0,0 +1,32 @@
+# $NetBSD: cargo-depends.mk,v 1.1 2022/12/29 08:07:22 pin Exp $
+
+CARGO_CRATE_DEPENDS+= atty-0.2.14
+CARGO_CRATE_DEPENDS+= bitflags-1.3.2
+CARGO_CRATE_DEPENDS+= clap-4.0.15
+CARGO_CRATE_DEPENDS+= clap_derive-4.0.13
+CARGO_CRATE_DEPENDS+= clap_lex-0.3.0
+CARGO_CRATE_DEPENDS+= either-1.8.0
+CARGO_CRATE_DEPENDS+= heck-0.4.0
+CARGO_CRATE_DEPENDS+= hermit-abi-0.1.19
+CARGO_CRATE_DEPENDS+= itertools-0.10.5
+CARGO_CRATE_DEPENDS+= itoa-1.0.4
+CARGO_CRATE_DEPENDS+= libc-0.2.135
+CARGO_CRATE_DEPENDS+= once_cell-1.15.0
+CARGO_CRATE_DEPENDS+= os_str_bytes-6.3.0
+CARGO_CRATE_DEPENDS+= proc-macro-error-1.0.4
+CARGO_CRATE_DEPENDS+= proc-macro-error-attr-1.0.4
+CARGO_CRATE_DEPENDS+= proc-macro2-1.0.47
+CARGO_CRATE_DEPENDS+= quote-1.0.21
+CARGO_CRATE_DEPENDS+= ryu-1.0.11
+CARGO_CRATE_DEPENDS+= serde-1.0.147
+CARGO_CRATE_DEPENDS+= serde_derive-1.0.147
+CARGO_CRATE_DEPENDS+= serde_json-1.0.87
+CARGO_CRATE_DEPENDS+= strsim-0.10.0
+CARGO_CRATE_DEPENDS+= syn-1.0.102
+CARGO_CRATE_DEPENDS+= termcolor-1.1.3
+CARGO_CRATE_DEPENDS+= unicode-ident-1.0.5
+CARGO_CRATE_DEPENDS+= version_check-0.9.4
+CARGO_CRATE_DEPENDS+= winapi-0.3.9
+CARGO_CRATE_DEPENDS+= winapi-i686-pc-windows-gnu-0.4.0
+CARGO_CRATE_DEPENDS+= winapi-util-0.1.5
+CARGO_CRATE_DEPENDS+= winapi-x86_64-pc-windows-gnu-0.4.0
diff -r 5c080ffd1fd5 -r ed49ab541b4c devel/superdiff/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/superdiff/distinfo Thu Dec 29 08:07:22 2022 +0000
@@ -0,0 +1,95 @@
+$NetBSD: distinfo,v 1.1 2022/12/29 08:07:22 pin Exp $
+
+BLAKE2s (atty-0.2.14.crate) = 8a58145c7b668aa6caf8d749e37857ff202211e1bfa9e441f130ff02feb68405
+SHA512 (atty-0.2.14.crate) = d7b6c4b9a0f898d91ddbc41a5ee45bbf45d1d269508c8cc87ee3e3990500e41e0ec387afb1f3bc7db55bedac396dd86c6509f4bf9e5148d809c3802edcc5e1d9
+Size (atty-0.2.14.crate) = 5470 bytes
+BLAKE2s (bitflags-1.3.2.crate) = e3a3b45a4403823875a03dbda329ca16068fa8f847cef81987c6b780101f2415
+SHA512 (bitflags-1.3.2.crate) = 3c698f757b5cc62f815f9a1cce365c3d2dd88e4db71f331dff8bba86c2865f755b81cb4c9bfc59bd86b7643b0943f9e09a7c4f8ad75eb2ab0e714803d0129f62
+Size (bitflags-1.3.2.crate) = 23021 bytes
+BLAKE2s (clap-4.0.15.crate) = 053e4f7968852e696c1f2c63117b02f0c30488ac7525ce4ae901fd308f64a4f5
+SHA512 (clap-4.0.15.crate) = d0622b6200fc45e4998100158005d73ee325e48682f26e07b096f914205e5abe0cbb3c7472e04aab76f44a345fa8b8f5c213327375c6b8ef2f643b8b43d126d2
+Size (clap-4.0.15.crate) = 204761 bytes
+BLAKE2s (clap_derive-4.0.13.crate) = 5de81eae2ecf075adf76728060a489e65b2b3e156281cb6f034b852eec13782c
+SHA512 (clap_derive-4.0.13.crate) = 2bdfe728e61786350dbca12b9d6f3e4067e21e8595734218f8d6b7d01b44e538c8ebb3762bee87d4705fb26d1e39977b3857066127569c85d72f92e564185e5b
+Size (clap_derive-4.0.13.crate) = 27324 bytes
+BLAKE2s (clap_lex-0.3.0.crate) = ac411bb59e5fd533a6005707abcdc90ec0c6f33f60a05c82b8880fde255c2554
+SHA512 (clap_lex-0.3.0.crate) = 5e601d540e46e527f6a2ea1959fa5aa035ad823008806f3a5adb4785f1928de4c9fe04e61680c64bcb87ed32b2e991951ec27c5cc5acdcfae51cdc61767ff100
+Size (clap_lex-0.3.0.crate) = 9671 bytes
+BLAKE2s (either-1.8.0.crate) = 1de907e00592eaab6463081f07dbb9bf7d7a11b84b8a53d55f14bd9bd0f0b055
+SHA512 (either-1.8.0.crate) = 5089b218af067b51ee39c085568a1a6f542e8f68b362207bd7126cbcd2b76783cd21cc1517a1d088ce4dad1714be03a3660f50e9498a0bb43a8676cd7ec490d2
+Size (either-1.8.0.crate) = 15992 bytes
+BLAKE2s (heck-0.4.0.crate) = 0bbfc0807fe42d68570dab10b6cdfeabd24e6c732caebcec1880c2b9efeb36b5
+SHA512 (heck-0.4.0.crate) = 33bdbf4ff9ecc4f4d74cf06590e056f4d96bf0d990d5381b9da5b65682b2495ed74e27b45419c2afa986c1f6200909d5175b137ae73ced5cc8ac869e4e1bce8f
+Size (heck-0.4.0.crate) = 11161 bytes
+BLAKE2s (hermit-abi-0.1.19.crate) = c731a42a9056a75a3ba26b5ab02c7c60c1fa2f21635d4152de66dc2eb407e097
+SHA512 (hermit-abi-0.1.19.crate) = 1c877fcd562b15d2de9c151fd6c5f3ea4bf48abcb799e6139a180ffad5d64b632f0000d5707bbd92ff23a0e5f349157b9e0f5be8b50f03680b0fa47315dbb78a
+Size (hermit-abi-0.1.19.crate) = 9979 bytes
+BLAKE2s (itertools-0.10.5.crate) = a445c07be8da5c4bdf8dd6fb0a92746438e9ee1767fc180b2da34b31daa4de8d
+SHA512 (itertools-0.10.5.crate) = d03c3cfba9841776913bbb6daad0c8945830c155f32ae4b48872e0f937c75a443f0ac9a0355f43b359ff75232f38b15f4f6d446b4be30b00b4209cf66ef770c3
+Size (itertools-0.10.5.crate) = 115354 bytes
+BLAKE2s (itoa-1.0.4.crate) = ab0312a13f0334af924aa09b538df57ac2728adc94f86f1f23a853737d00098b
+SHA512 (itoa-1.0.4.crate) = a70bb6fbdbcab27fbb5a84041bcbad8e0c8fda58d55ca7ac757f7be5cd373101be40df99e9acd6ae49e637e40de037c6bc59560f96c9adeccb2b2e0bf6531e42
+Size (itoa-1.0.4.crate) = 10601 bytes
+BLAKE2s (libc-0.2.135.crate) = 6f08595a8f92d03cdee171d634a56e146974ad8da47fa21dc805f326c4522fe1
+SHA512 (libc-0.2.135.crate) = dc8e8fc918c5184de6ae7414b523b06ae91cde252e837e863f8477e9722ccb206a0b27762ac204830e8d09071413029c03802a3ed93bff274c33b2a4055e7806
+Size (libc-0.2.135.crate) = 604591 bytes
+BLAKE2s (once_cell-1.15.0.crate) = bb7a35ae1252f0ceeb7f7c8ff715940c986430728d4891dcf369ef493c93bed6
+SHA512 (once_cell-1.15.0.crate) = 934a7c3631e9ca4fa78d9577b6672ca0b2f926a8d6c3be9542b906c5968033446f98f76ae6f368a1a5b92ab9064c31a57d74ab6d2097108029a7ea951541ff7e
+Size (once_cell-1.15.0.crate) = 31460 bytes
+BLAKE2s (os_str_bytes-6.3.0.crate) = 2b32aa3fcf6070d01ce76f8420116f64158cf5a41ac0060c0527ce9b70b32f92
+SHA512 (os_str_bytes-6.3.0.crate) = 34f861a15543933c9fcb560a835bd943231ffcef2c68126d8633f8e792d2d59a20765947feddb0c795a15329d74260d6c2bf74a1f10ee88f355f47240acbb42e
+Size (os_str_bytes-6.3.0.crate) = 22928 bytes
+BLAKE2s (proc-macro-error-1.0.4.crate) = 2877169f24a0bf3a09d9bfd388ac5d39082672d9258c1c96a851c1bc166b234a
+SHA512 (proc-macro-error-1.0.4.crate) = 8a47bc9d3e24e9561d1e384d8f5a633284c2cf9b5e6733c5f9d1dbfe1870ccc8e2152482852e50b551cecb68e009148585b910ffb0508a7b4875598eaf8657db
+Size (proc-macro-error-1.0.4.crate) = 25293 bytes
+BLAKE2s (proc-macro-error-attr-1.0.4.crate) = 3204ef6b947e06798ac6e978bd1a40f2f7e81de7d3079fd7b639242f8ed032a8
+SHA512 (proc-macro-error-attr-1.0.4.crate) = 2606afa9ec78d7dad4500c98d3a5ecbd02c6b53ab829c742bed7f57b322a95238ab4e01cf268746815f1424fd9b02eddfa30e72f98c66106f57765f3d3116495
+Size (proc-macro-error-attr-1.0.4.crate) = 7971 bytes
+BLAKE2s (proc-macro2-1.0.47.crate) = ef333dc55763f2a4f83c0f2c5abc653e565fc682dcbdacf61b4d892b1bd56a91
+SHA512 (proc-macro2-1.0.47.crate) = 60c5d0dcbdee7ddab40664882d3cf5a868f7ea5b49ebab3b4419c3f325582b816625e73e0d1737bbd46bd7d765ece6c81c2ff4be894555d4b255f5cb9255e931
+Size (proc-macro2-1.0.47.crate) = 41955 bytes
+BLAKE2s (quote-1.0.21.crate) = 35d526b76a740996fdcd393d2d077d4929f971b5f341498682b878c7cac7ebc0
+SHA512 (quote-1.0.21.crate) = 0728eb4df7e1f7c4d32ab08c901c2c969db8eb46b03bcec3e4956a4f6b360939d32abc6b6ebd7a31058e8e9b69c3d995a24cb484f93656f05b4ee963be1c74fc
+Size (quote-1.0.21.crate) = 28030 bytes
+BLAKE2s (ryu-1.0.11.crate) = c841c8e79156cd93f854becdd930c83978f5d2c0caef4844a04a900020b6fc89
+SHA512 (ryu-1.0.11.crate) = dd2642aab2d3017c31432436226d5350b894c8b88a09395eb7de6350964b3cc48451a829ce78b04a9e4e0480076fe1bddd0604f4e57700faa2d60cac6e361408
+Size (ryu-1.0.11.crate) = 47007 bytes
+BLAKE2s (serde-1.0.147.crate) = 0d1e68a65a87e2f11520ce29b446289c1382d0cdd1138dd4fe77531e22e94f02
+SHA512 (serde-1.0.147.crate) = d993bd86c61bba602faf7286ff21d36c5d8c83176c5bbb203cb284a3f89dbc8a1ca893a09eb2657f9e98ccb5c5287f44aac06d2e60db96e78d99ee40bd1fe1b0
+Size (serde-1.0.147.crate) = 76697 bytes
+BLAKE2s (serde_derive-1.0.147.crate) = 2c0f0f616403d6d716e44b5945edce17d714775c34667f0c11e318a97eaa1fd0
+SHA512 (serde_derive-1.0.147.crate) = 434d65dc0d78c7c1c3f8832221389dc4b0c5d74d605ce1d2d660c2df9a92f5e5d0c6d543763e1462c58d6ea18001c823ca594e3dac92a47d8fe48319a5c52e59
+Size (serde_derive-1.0.147.crate) = 54861 bytes
+BLAKE2s (serde_json-1.0.87.crate) = d65fc8cb44fcc64160de7d5fdba7ce938b5b054d3df50805b7172222d66ed5d4
+SHA512 (serde_json-1.0.87.crate) = 77b90340aaaa0fb477b33e6628ed2ea0fb53cff1e2b5724a3474e24b2bfc9bff077633d9581e41dd96b2a0e167549e992d238bb09c627fb5680996b39583c4cc
+Size (serde_json-1.0.87.crate) = 144383 bytes
+BLAKE2s (strsim-0.10.0.crate) = 4893490aaecbb97be0d8268c4ad5653b22237927bc9f08196717dc9a5160de50
+SHA512 (strsim-0.10.0.crate) = 78b318532addfcf5c1ccc1e14539e258aab9d3cd893cc45d82342549bde838c177d90f13c560671f8f32929af47d0b467db35e6876bd7697d8b3f9e055aeeac1
+Size (strsim-0.10.0.crate) = 11355 bytes
+BLAKE2s (superdiff-2.0.3-24af81652102a178e8c240474d69ce9fb765ab82.tar.gz) = 6d7aaafbdb6cb5b3a73754158a4897071c446f064ada9c6727997b485979f4f8
+SHA512 (superdiff-2.0.3-24af81652102a178e8c240474d69ce9fb765ab82.tar.gz) =
9af4713298abf7f6ced08161cb3a03d4f8793cdf21bb3339178f438bcd5273a314d3227207c019651bd23b0d0f1c642cc7e92109d60b61733341091e9bd3e6cc
+Size (superdiff-2.0.3-24af81652102a178e8c240474d69ce9fb765ab82.tar.gz) = 13377 bytes
+BLAKE2s (syn-1.0.102.crate) = 7cb38c23b1ac82e85ba155d9ac853d41b62d8237a16efd3f1c909062d33b5e1d
+SHA512 (syn-1.0.102.crate) = c9a2b2cf216c3d821decd488ebb49743f2f43940a879856e3a15d2352843c405e6f164c11225e904d18b32a5cd2bd7fcdfa74df40ec5567faeedffe5f523989c
+Size (syn-1.0.102.crate) = 235699 bytes
+BLAKE2s (termcolor-1.1.3.crate) = 883230b86f7f9bd79101af7c2fe83f0b3b76831712b963ae422d7609ee7c5f12
+SHA512 (termcolor-1.1.3.crate) = 5838fcbfd70f300cb4b62aab50565db52074c56b152ccc8ac1173e4676c0d5a636271bf5a645a77da6e1d4edbf0091af2cd4dd6d73b85c3d198c760898c06f3a
+Size (termcolor-1.1.3.crate) = 17242 bytes
+BLAKE2s (unicode-ident-1.0.5.crate) = f6ef43eb4434b40a5cdc6df4d7706a63544a01ea7a54d96083cbf0442442dcfc
+SHA512 (unicode-ident-1.0.5.crate) = d355370daac356d900cd4c0a792d6c0eff114524c4bffce4d7e74469fe2117883ee00bf0e27d950b72e88739473f2045d5f83440a0aedfede97b4d9163b64a6c
+Size (unicode-ident-1.0.5.crate) = 35455 bytes
+BLAKE2s (version_check-0.9.4.crate) = a26f24d5e2c5e631462ebe434aa239957f5102009d3824d5dff2bc90d3c79fb0
+SHA512 (version_check-0.9.4.crate) = b172dc9a3759a4a683ffc39b9a40b03b9974b626a088217de87090466cef695226557c226cf3e469b2b25ee7297b7eb0d7719878cab42457f80146a81943c0c8
+Size (version_check-0.9.4.crate) = 14895 bytes
+BLAKE2s (winapi-0.3.9.crate) = 295083bd8c53c7decc4187da324a1284ad05cbccc9198d31facb6a42e34867ce
+SHA512 (winapi-0.3.9.crate) = ff8b7b78065f3d8999ec03c725a0460ebc059771bf071c7a3df3f0ecd733edf3b0a2450024d4e24e1aedddaecd9038ce1376c0d8bbf45132068cf45cf4a53a97
+Size (winapi-0.3.9.crate) = 1200382 bytes
+BLAKE2s (winapi-i686-pc-windows-gnu-0.4.0.crate) = 3ef20321fea464773f9e73ac16ada3a0e8101a8c3c0ebab763049f2ab269eb1a
+SHA512 (winapi-i686-pc-windows-gnu-0.4.0.crate) = a672ccefd0730a8166fef1d4e39f9034d9ae426a3f5e28d1f4169fa5c5790767693f281d890e7804773b34acdb0ae1febac33cde8c50c0044a5a6152c7209ec2
+Size (winapi-i686-pc-windows-gnu-0.4.0.crate) = 2918815 bytes
+BLAKE2s (winapi-util-0.1.5.crate) = 0bbadc89bd260c16095f1d19c2dc0f5acbd24d64dc1dcada628bf4acb003c6cc
+SHA512 (winapi-util-0.1.5.crate) = 7baeb661f397c4693dfa001fdc774b323c51a7c55caad40f2de5112a1cefd1d6151e3df41fa4ee193460a5905917c83d2b1de5fa10b4bd014ad96690af95c0fd
+Size (winapi-util-0.1.5.crate) = 10164 bytes
+BLAKE2s (winapi-x86_64-pc-windows-gnu-0.4.0.crate) = 85ecec73b9874f5f443e29d99f93a11889e74ddf5a4bfeb929e2355a7cee32f1
+SHA512 (winapi-x86_64-pc-windows-gnu-0.4.0.crate) = 4a654af6a5d649dc87e00497245096b35a2894ae66f155cb62389902c3b93ddcc5cf7d0d8b9dd97b291d2d80bc686af2298e80abef6ac69883f4a54e79712513
+Size (winapi-x86_64-pc-windows-gnu-0.4.0.crate) = 2947998 bytes
Home |
Main Index |
Thread Index |
Old Index