pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc/diffr textproc/diffr: import package



details:   https://anonhg.NetBSD.org/pkgsrc/rev/42bce1ac58ab
branches:  trunk
changeset: 442619:42bce1ac58ab
user:      pin <pin%pkgsrc.org@localhost>
date:      Thu Nov 26 21:43:43 2020 +0000

description:
textproc/diffr: import package

Reviewing changes involves reading diffs. Sometimes, a line-oriented
presentation of changes is not precise enough, especially when changes
involve long lines or very similar consecutive lines.

This program processes such diffs, and output them (in the console)
with additional diff information on top of the unified diff format,
using text attributes.

It works hunk by hunk, recomputing the diff on a word-by-word basis.

diffstat:

 textproc/diffr/DESCR            |   9 ++++
 textproc/diffr/Makefile         |  23 ++++++++++++
 textproc/diffr/PLIST            |   2 +
 textproc/diffr/cargo-depends.mk |  20 ++++++++++
 textproc/diffr/distinfo         |  78 +++++++++++++++++++++++++++++++++++++++++
 5 files changed, 132 insertions(+), 0 deletions(-)

diffs (152 lines):

diff -r 1580e6f0033c -r 42bce1ac58ab textproc/diffr/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/diffr/DESCR      Thu Nov 26 21:43:43 2020 +0000
@@ -0,0 +1,9 @@
+Reviewing changes involves reading diffs. Sometimes, a line-oriented
+presentation of changes is not precise enough, especially when changes
+involve long lines or very similar consecutive lines.
+
+This program processes such diffs, and output them (in the console)
+with additional diff information on top of the unified diff format,
+using text attributes.
+
+It works hunk by hunk, recomputing the diff on a word-by-word basis.
diff -r 1580e6f0033c -r 42bce1ac58ab textproc/diffr/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/diffr/Makefile   Thu Nov 26 21:43:43 2020 +0000
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile,v 1.1 2020/11/26 21:43:43 pin Exp $
+
+DISTNAME=      diffr-0.1.4
+CATEGORIES=    textproc
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=mookid/}
+GITHUB_TAG=    v${PKGVERSION_NOREV}
+
+MAINTAINER=    pin%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/mookid/diffr/
+COMMENT=       Yet another diff highlighting tool
+LICENSE=       mit
+
+.include "cargo-depends.mk"
+
+USE_LANGUAGES+=                        c # rust, but needs a toolchain to link
+
+INSTALLATION_DIRS=     bin
+
+do-install:
+       ${INSTALL_PROGRAM} ${WRKSRC}/target/release/diffr ${DESTDIR}${PREFIX}/bin
+
+.include "../../lang/rust/cargo.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 1580e6f0033c -r 42bce1ac58ab textproc/diffr/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/diffr/PLIST      Thu Nov 26 21:43:43 2020 +0000
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2020/11/26 21:43:43 pin Exp $
+bin/diffr
diff -r 1580e6f0033c -r 42bce1ac58ab textproc/diffr/cargo-depends.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/diffr/cargo-depends.mk   Thu Nov 26 21:43:43 2020 +0000
@@ -0,0 +1,20 @@
+# $NetBSD: cargo-depends.mk,v 1.1 2020/11/26 21:43:43 pin Exp $
+
+CARGO_CRATE_DEPENDS+=  ansi_term-0.11.0
+CARGO_CRATE_DEPENDS+=  atty-0.2.11
+CARGO_CRATE_DEPENDS+=  bitflags-1.1.0
+CARGO_CRATE_DEPENDS+=  clap-2.33.0
+CARGO_CRATE_DEPENDS+=  libc-0.2.58
+CARGO_CRATE_DEPENDS+=  numtoa-0.1.0
+CARGO_CRATE_DEPENDS+=  redox_syscall-0.1.54
+CARGO_CRATE_DEPENDS+=  redox_termios-0.1.1
+CARGO_CRATE_DEPENDS+=  strsim-0.8.0
+CARGO_CRATE_DEPENDS+=  termcolor-1.1.0
+CARGO_CRATE_DEPENDS+=  termion-1.5.3
+CARGO_CRATE_DEPENDS+=  textwrap-0.11.0
+CARGO_CRATE_DEPENDS+=  unicode-width-0.1.5
+CARGO_CRATE_DEPENDS+=  vec_map-0.8.1
+CARGO_CRATE_DEPENDS+=  winapi-0.3.7
+CARGO_CRATE_DEPENDS+=  winapi-i686-pc-windows-gnu-0.4.0
+CARGO_CRATE_DEPENDS+=  winapi-util-0.1.3
+CARGO_CRATE_DEPENDS+=  winapi-x86_64-pc-windows-gnu-0.4.0
diff -r 1580e6f0033c -r 42bce1ac58ab textproc/diffr/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/diffr/distinfo   Thu Nov 26 21:43:43 2020 +0000
@@ -0,0 +1,78 @@
+$NetBSD: distinfo,v 1.1 2020/11/26 21:43:43 pin Exp $
+
+SHA1 (ansi_term-0.11.0.crate) = 0c6f984f171ee890100780e038def5db2a8b7ab8
+RMD160 (ansi_term-0.11.0.crate) = 0bc10d826fc7a658ac1026dac333cc54f26f7c5b
+SHA512 (ansi_term-0.11.0.crate) = a637466a380748f939b3af090b8c0333f35581925bc03f4dda9b3f95d338836403cf5487ae3af9ff68f8245a837f8ab061aabe57a126a6a2c20f2e972c77d1fa
+Size (ansi_term-0.11.0.crate) = 17087 bytes
+SHA1 (atty-0.2.11.crate) = 1de1c341da9ff0dac035a1dc53112eab8a560ca9
+RMD160 (atty-0.2.11.crate) = 3276365dae3731cadede9ced14185178cc6f4ef9
+SHA512 (atty-0.2.11.crate) = 9d6417dc1e8abdb4969418525b36c451274fd76769adb57bef9875ef62ef521c50d58626ebc4f96d2bea32cbadb6999fd67653b570293d7253b403b6d0736c79
+Size (atty-0.2.11.crate) = 5916 bytes
+SHA1 (bitflags-1.1.0.crate) = f0b02e49f20427a004b5ee15c34bc778e037198b
+RMD160 (bitflags-1.1.0.crate) = f7c30bcec212f74d7b040f6bf8340f14c061308d
+SHA512 (bitflags-1.1.0.crate) = e3e611cf35a1ed4930727d530e6c78add895bd96636ca1354f1269b3d0e36e77fbb9ec850fe1f448a10f09ea2b2f89c2b16bb96b7da585851ce4c29a308968e3
+Size (bitflags-1.1.0.crate) = 16322 bytes
+SHA1 (clap-2.33.0.crate) = a46261c137ef5ae70c4e8b2bd2850d16707753ca
+RMD160 (clap-2.33.0.crate) = 348604c8483c354b6577ace03dc4ed9f115397cd
+SHA512 (clap-2.33.0.crate) = f1075031414d48e4340bfe308904a95a31b72460724773c52a0bc8c004e625a04c904a39fc5420cb8c26a633321f9b5f4f69019c7aae5ed89900b63ed8c21a91
+Size (clap-2.33.0.crate) = 196458 bytes
+SHA1 (diffr-0.1.4.tar.gz) = ab72a76b3c4a7a764bad144d590c7669ccb5264a
+RMD160 (diffr-0.1.4.tar.gz) = 0818ee5ed16e34a47d54c596edd23e8e37a993fe
+SHA512 (diffr-0.1.4.tar.gz) = 45bd19a91fe5353564efb94b65f4321e75b701f5a2089a5040fda4fa10c9d2487b4b22aec1fcaf7427a004f710147c717bcec8378010002ad8020b85203173e5
+Size (diffr-0.1.4.tar.gz) = 249020 bytes
+SHA1 (libc-0.2.58.crate) = 6b2dee62c33b2274598bec85c86683c113888d1d
+RMD160 (libc-0.2.58.crate) = cd0a5a28a89ff33f7f31a773fa85dcbd8e5b89c0
+SHA512 (libc-0.2.58.crate) = 9127ad9a94f75655740fc3a2278c7a17d5f03c4cd12c8833c1a1ecb7a860ec8581fbc969f5c2e23b8eecb9131d9d8271131ad6a675b785f18fb55d830bcc0491
+Size (libc-0.2.58.crate) = 409031 bytes
+SHA1 (numtoa-0.1.0.crate) = 41727c969993410625f6331fd3ba29361ba752f2
+RMD160 (numtoa-0.1.0.crate) = bf875a5ec424de4cf2c4a437a27858fccc23a7ae
+SHA512 (numtoa-0.1.0.crate) = 41b5c774048592c5867fba217c85d4ece4540e0f3ab0eea7dd1a6af340ba46dae42bbca62ea7fe3afdb258660f39a3d3082264c99dea67d3d1ae178d00a01354
+Size (numtoa-0.1.0.crate) = 8999 bytes
+SHA1 (redox_syscall-0.1.54.crate) = fe903bf355046da1fcc67d7915b18f30a662eec5
+RMD160 (redox_syscall-0.1.54.crate) = f9a4fe4ef3ab4362f89a5ea0a67d62536161a4c1
+SHA512 (redox_syscall-0.1.54.crate) = 38ee15c2fa470428329b3888fef1f1b5bc57ffae96b6ec505fc051f33a8da86512afddfeb6966cb2342382a5cbccb624a825767d3492b3d6d21d6f8e97e57e9e
+Size (redox_syscall-0.1.54.crate) = 15668 bytes
+SHA1 (redox_termios-0.1.1.crate) = c077c0ef5380aa5b4054d0f403b1818a71e70bae
+RMD160 (redox_termios-0.1.1.crate) = 4403f32fb5435279446c9b6acc54792d655d4f72
+SHA512 (redox_termios-0.1.1.crate) = 201d051900e919e2c6c6769ef252e51979d90133df16b6605e2a2f424cfb2e6e505e21add75ef5854fe5e0cab1ed1f1c1451010f072ae4bc8703c585a4323981
+Size (redox_termios-0.1.1.crate) = 3227 bytes
+SHA1 (strsim-0.8.0.crate) = 9a09b5df624d5e5cc4f9ae9f6d45e49b27e18834
+RMD160 (strsim-0.8.0.crate) = 980ec0eecba085ca6419d089af3743e23b27cd16
+SHA512 (strsim-0.8.0.crate) = 1d55a8d946cd55f5f37d06aea536549ded95739fa58c0f2da285a0041154c181f663682bdcac643aa198b3e762d694a04f058db985c62ebe22b5c16327ba6d34
+Size (strsim-0.8.0.crate) = 9309 bytes
+SHA1 (termcolor-1.1.0.crate) = 53b35ac5724a3781f1ce2eb70ad26c5a0e9e311d
+RMD160 (termcolor-1.1.0.crate) = 51edd9a9aa463d5afa507c9ea753fde7d30eeb48
+SHA512 (termcolor-1.1.0.crate) = 41b05b047cbfdd5e3990eb36f635dc8ccf26a42bd5403d6d14a9f3c341e92b61c3b8d4d5f4fcd29071a97b3d96280ed59b4557b63a769390e2729fc82ab39702
+Size (termcolor-1.1.0.crate) = 17193 bytes
+SHA1 (termion-1.5.3.crate) = 888fe31c4fae79ef6a33fd9cc0239f89adba4b52
+RMD160 (termion-1.5.3.crate) = 4e3fba8d80b5725fe237cd3732986735444d722a
+SHA512 (termion-1.5.3.crate) = 1cbe60f97d5f8b95e6a57ec9b7cfcf37459bc8dbcf8424b055f04b2ecdaf069e1bb52222364a2f380dc3f63039fe3823d424228af1c212a8b3790b7dd55d5deb
+Size (termion-1.5.3.crate) = 22080 bytes
+SHA1 (textwrap-0.11.0.crate) = 75648d4aa5657ab34a4df9c34a3645431fd2739f
+RMD160 (textwrap-0.11.0.crate) = 3a9a334e7c0c6cbb9f54e51ad991304da31caf2c
+SHA512 (textwrap-0.11.0.crate) = f5c0fe4f28ff1a3a0931e8e235b5157a45f67967985bcc752418c5ec3481fca44a8ae4800088889b37e8cd0533f53d3c456d5ffd19b767b3f83a87b49a2e209a
+Size (textwrap-0.11.0.crate) = 17322 bytes
+SHA1 (unicode-width-0.1.5.crate) = 82af5ff3b480cb5a3870da5e3b4762c3d6b7b888
+RMD160 (unicode-width-0.1.5.crate) = 360df9e831a6e20931c240d13747f3711dc568d9
+SHA512 (unicode-width-0.1.5.crate) = bd5ac5f0433953d79408074239edc7c43ce23d56659d467805d81ab01c576a3cf77ccedb3bba41d48bc4ad46a8905ac8a1927b99312053ef6295fd940a6766d2
+Size (unicode-width-0.1.5.crate) = 15761 bytes
+SHA1 (vec_map-0.8.1.crate) = 62fd3b709e0efbb9d984d8541d811deff5930e23
+RMD160 (vec_map-0.8.1.crate) = 60ade9d4a361db970dd5a27786e5de3b491a4b62
+SHA512 (vec_map-0.8.1.crate) = 026cf10dc7ba98ae51dd312fc847cbaea41c25f0da5db6e0e22c2ecf75584bbf876d7bd96035fbbcf6696d702d5a3f25977e02a2d77cf519aa21e3ed05710e40
+Size (vec_map-0.8.1.crate) = 14959 bytes
+SHA1 (winapi-0.3.7.crate) = 6b8a2cd6bed04be518b1d3d4fa31a3469d87a20b
+RMD160 (winapi-0.3.7.crate) = 23a1008eda3a544f6dfe1cd63241a456d7c3de19
+SHA512 (winapi-0.3.7.crate) = 6871b93ad8d48e39b90cb7b31b3132f84665f965b4dfe06fcebdfb873e7d099007cf3d7a50e832a941c3425ad2f39c3ab48a77151e60863685b97fc05c71d134
+Size (winapi-0.3.7.crate) = 1075776 bytes
+SHA1 (winapi-i686-pc-windows-gnu-0.4.0.crate) = cf2bc857823de6008e6da350ad2c97c7be564322
+RMD160 (winapi-i686-pc-windows-gnu-0.4.0.crate) = a7d1e9e7f940d2e376a1b6dede7f0a50ad191ab8
+SHA512 (winapi-i686-pc-windows-gnu-0.4.0.crate) = a672ccefd0730a8166fef1d4e39f9034d9ae426a3f5e28d1f4169fa5c5790767693f281d890e7804773b34acdb0ae1febac33cde8c50c0044a5a6152c7209ec2
+Size (winapi-i686-pc-windows-gnu-0.4.0.crate) = 2918815 bytes
+SHA1 (winapi-util-0.1.3.crate) = 085d3284429c81bbb3eaf33fc26c0b974c1164fa
+RMD160 (winapi-util-0.1.3.crate) = b52fa4e81261271589386d0f971c6bb4524c7203
+SHA512 (winapi-util-0.1.3.crate) = 55ed7996a8f63e2218e74e778e47450863b19170bf1f5375a36b094c5e34bb41b19f093157e40190e105a40cd1cd9bf90e95966fc3a7de71f6b74e272723a1b8
+Size (winapi-util-0.1.3.crate) = 9913 bytes
+SHA1 (winapi-x86_64-pc-windows-gnu-0.4.0.crate) = eadfdb146024d37b6887b5b9cb6a69f61473ed8a
+RMD160 (winapi-x86_64-pc-windows-gnu-0.4.0.crate) = 300417853d251d91cadb9650992a6aa98248619f
+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