pkgsrc-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0e58e158cd4f
branches:  trunk
changeset: 453408:0e58e158cd4f
user:      pin <pin%pkgsrc.org@localhost>
date:      Sat May 29 17:21:42 2021 +0000

description:
textproc/molybdenum: import package

Recursive _search and replace_ CLI application.

Powerful search can be found without problems, eg, grep, ack, ag, ripgrep
or broot.

Tools for replacing recursively in a folder are more difficult to find,
although some exist: fart-it. Typically, people use a combination of searching,
xargs and a replacement tool like sed or rpl.

I use code searching a lot to investigate a large source code base before
attempting a replace. Even with 100k files, search is fast and fairly easy.
Recursively replacing text is much more dangerous, especially if it requires
the combination of several less frequently used tools; it's difficult to
remember a search-xargs-replace combination if not used on a daily basis.
On top of this, the search tool used to filter the set of files and perform a
dry-run, is not per-se using the same search query as the replace tool.
After all, these are different tools. It would be better if a single tool could
be used for every-day searching and replacing.
This is exactly what The Molybdenum Replacer intends to achieve.

diffstat:

 textproc/molybdenum/DESCR            |  19 ++++++++++++
 textproc/molybdenum/Makefile         |  23 +++++++++++++++
 textproc/molybdenum/PLIST            |   2 +
 textproc/molybdenum/cargo-depends.mk |  14 +++++++++
 textproc/molybdenum/distinfo         |  54 ++++++++++++++++++++++++++++++++++++
 5 files changed, 112 insertions(+), 0 deletions(-)

diffs (132 lines):

diff -r 28a24d07dfcd -r 0e58e158cd4f textproc/molybdenum/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/molybdenum/DESCR Sat May 29 17:21:42 2021 +0000
@@ -0,0 +1,19 @@
+Recursive _search and replace_ CLI application.
+
+Powerful search can be found without problems, eg, grep, ack, ag, ripgrep
+or broot.
+
+Tools for replacing recursively in a folder are more difficult to find,
+although some exist: fart-it. Typically, people use a combination of searching,
+xargs and a replacement tool like sed or rpl.
+
+I use code searching a lot to investigate a large source code base before
+attempting a replace. Even with 100k files, search is fast and fairly easy.
+Recursively replacing text is much more dangerous, especially if it requires
+the combination of several less frequently used tools; it's difficult to
+remember a search-xargs-replace combination if not used on a daily basis.
+On top of this, the search tool used to filter the set of files and perform a
+dry-run, is not per-se using the same search query as the replace tool.
+After all, these are different tools. It would be better if a single tool could
+be used for every-day searching and replacing.
+This is exactly what The Molybdenum Replacer intends to achieve.
diff -r 28a24d07dfcd -r 0e58e158cd4f textproc/molybdenum/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/molybdenum/Makefile      Sat May 29 17:21:42 2021 +0000
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile,v 1.1 2021/05/29 17:21:42 pin Exp $
+
+DISTNAME=      molybdenum-0.1.3
+CATEGORIES=    textproc
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=gfannes/}
+GITHUB_TAG=    9b9eea50996feb7a5171c7182bd691a5a477fe43
+
+MAINTAINER=    pin%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/gfannes/molybdenum/
+COMMENT=       Recursive search and replace CLI application
+LICENSE=       eupl-v1.1
+
+.include "cargo-depends.mk"
+
+USE_LANGUAGES=         c
+
+INSTALLATION_DIRS=     bin
+
+do-install:
+       ${INSTALL_PROGRAM} ${WRKSRC}/target/release/mo ${DESTDIR}${PREFIX}/bin
+
+.include "../../lang/rust/cargo.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 28a24d07dfcd -r 0e58e158cd4f textproc/molybdenum/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/molybdenum/PLIST Sat May 29 17:21:42 2021 +0000
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2021/05/29 17:21:42 pin Exp $
+bin/mo
diff -r 28a24d07dfcd -r 0e58e158cd4f textproc/molybdenum/cargo-depends.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/molybdenum/cargo-depends.mk      Sat May 29 17:21:42 2021 +0000
@@ -0,0 +1,14 @@
+# $NetBSD: cargo-depends.mk,v 1.1 2021/05/29 17:21:42 pin Exp $
+
+CARGO_CRATE_DEPENDS+=  aho-corasick-0.7.18
+CARGO_CRATE_DEPENDS+=  atty-0.2.14
+CARGO_CRATE_DEPENDS+=  colored-2.0.0
+CARGO_CRATE_DEPENDS+=  hermit-abi-0.1.18
+CARGO_CRATE_DEPENDS+=  lazy_static-1.4.0
+CARGO_CRATE_DEPENDS+=  libc-0.2.94
+CARGO_CRATE_DEPENDS+=  memchr-2.4.0
+CARGO_CRATE_DEPENDS+=  regex-1.5.4
+CARGO_CRATE_DEPENDS+=  regex-syntax-0.6.25
+CARGO_CRATE_DEPENDS+=  winapi-0.3.9
+CARGO_CRATE_DEPENDS+=  winapi-i686-pc-windows-gnu-0.4.0
+CARGO_CRATE_DEPENDS+=  winapi-x86_64-pc-windows-gnu-0.4.0
diff -r 28a24d07dfcd -r 0e58e158cd4f textproc/molybdenum/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/molybdenum/distinfo      Sat May 29 17:21:42 2021 +0000
@@ -0,0 +1,54 @@
+$NetBSD: distinfo,v 1.1 2021/05/29 17:21:42 pin Exp $
+
+SHA1 (aho-corasick-0.7.18.crate) = 0e3f242614a732b703e12fc3c4456c53b0536fb8
+RMD160 (aho-corasick-0.7.18.crate) = b0dc4b0030152d0db9483ea816548ec9c330b211
+SHA512 (aho-corasick-0.7.18.crate) = 7a23b16231a90d23ee60ad4c81bc225410599a4560d33d3a203138fc540c39cf1000100fed3aed40dcc371c3635656a3792545dca5dd1aefbde00d8774eebd00
+Size (aho-corasick-0.7.18.crate) = 112923 bytes
+SHA1 (atty-0.2.14.crate) = 9b4bfe6daebdd3d13a8a605bf44f64d4e831e804
+RMD160 (atty-0.2.14.crate) = 63c38cbe0fc07a4533253427a164612b456094cf
+SHA512 (atty-0.2.14.crate) = d7b6c4b9a0f898d91ddbc41a5ee45bbf45d1d269508c8cc87ee3e3990500e41e0ec387afb1f3bc7db55bedac396dd86c6509f4bf9e5148d809c3802edcc5e1d9
+Size (atty-0.2.14.crate) = 5470 bytes
+SHA1 (colored-2.0.0.crate) = 4a1a38a4ee78f4d6b24f572ef57020264d537079
+RMD160 (colored-2.0.0.crate) = f451ffbcfa2c1fab334781c073eb6ab26aebadbb
+SHA512 (colored-2.0.0.crate) = c9ee830c1e8a32372ab8c7ce569701deaa6533fa369fc1b4c04bed57b1e686ed775fc76c3d9815ad21ee69cfc7c30d645abcbacad39081c7e37ff83ebb6d9e8a
+Size (colored-2.0.0.crate) = 21619 bytes
+SHA1 (hermit-abi-0.1.18.crate) = ee6677332b5c19c10d8e19b8da73c3265a3efd6c
+RMD160 (hermit-abi-0.1.18.crate) = 3bccd7ee4d6d12fec60d64949db05811ed7e7fea
+SHA512 (hermit-abi-0.1.18.crate) = 54f060c6c1c80d41f40cec7102345147efb535aff9fa5cc0ed4ccd7f010bfdb6daaf40626fd5069af60ceb42058452803b59d4bbcfbed4c5546c79b57ae0f914
+Size (hermit-abi-0.1.18.crate) = 9936 bytes
+SHA1 (lazy_static-1.4.0.crate) = 3e8852a6967dc257753fe75a13112a04bc03dfc0
+RMD160 (lazy_static-1.4.0.crate) = 6c74661c140113ff3b1d660bba095259398bbb55
+SHA512 (lazy_static-1.4.0.crate) = e124c0521ec7c950f3c4a066821918da7a9c6e711115d98009ae7c351928fdddead852e7596fea5937a9c30e4e4ce8eee7099b20248b5d6e3b2494b6a6d88cb8
+Size (lazy_static-1.4.0.crate) = 10443 bytes
+SHA1 (libc-0.2.94.crate) = 27ac5fa7040722f5d52d88291a046bf4bbd1b613
+RMD160 (libc-0.2.94.crate) = 15179d9bd17b7e0de5c89eec9dcdc78000b5354f
+SHA512 (libc-0.2.94.crate) = 316717d2e46b57c200d67d0ebb4fb162cb1f0b688895b9eb6075924cda3be8ba7fae85319692682178b6fc5cb2764e8b3a9d3e7ce234fd8a21a0a9c453ca174c
+Size (libc-0.2.94.crate) = 511713 bytes
+SHA1 (memchr-2.4.0.crate) = f2846cf56edc7a10d2d422fdc008bbe569abdef9
+RMD160 (memchr-2.4.0.crate) = d0c86b970afcfac3f735ec87a0dc2e4b500a2856
+SHA512 (memchr-2.4.0.crate) = b142e308a5aef8e45910411789031e194349ee540c4ced0e2384d864dc1913299fb63a161ceb5228256e97d0949661b7f83a169ef9d4b78afbd9004cb7b8a2fb
+Size (memchr-2.4.0.crate) = 63392 bytes
+SHA1 (molybdenum-0.1.3-9b9eea50996feb7a5171c7182bd691a5a477fe43.tar.gz) = 85fefd3e7c6afd555e88a6a0b0e26a7b3d9b8054
+RMD160 (molybdenum-0.1.3-9b9eea50996feb7a5171c7182bd691a5a477fe43.tar.gz) = 18274e30482523d718c63a66d1aefdcbb17effc6
+SHA512 (molybdenum-0.1.3-9b9eea50996feb7a5171c7182bd691a5a477fe43.tar.gz) = 
9a49c8833be03886a820b17cd3a4e8466d240e89e3e276c2f7cc9ac54ea75d3fbe51cf298ecbaade36dc6ec5929dd10b4e7988f454f3c4e2dd3c937315a198d0
+Size (molybdenum-0.1.3-9b9eea50996feb7a5171c7182bd691a5a477fe43.tar.gz) = 12840 bytes
+SHA1 (regex-1.5.4.crate) = acbb2cbc00153ec73ad691ef933420671f3c8304
+RMD160 (regex-1.5.4.crate) = 69e5cf426986d7aaf25357094d43ea27e8f1f756
+SHA512 (regex-1.5.4.crate) = 1a9208358c4ab87c19ec91bcf5c1e35dede46f3a0c0097061b7b53fa77a1e5ad38090d243aab274956f09c491e5fbe3b3b35a91db079b82a2dde2fd9fbad4c19
+Size (regex-1.5.4.crate) = 236581 bytes
+SHA1 (regex-syntax-0.6.25.crate) = 71d3cdfa21a979ef5e388b3134e17281c4ef161d
+RMD160 (regex-syntax-0.6.25.crate) = 85dc62aa0c58268de7b5446598208570973b0108
+SHA512 (regex-syntax-0.6.25.crate) = a3d31f82aadc6be1796f76c03152ff24f37fe42d6ce27fb98e2f55ab102f86502bc37ccd563f6e0eba61aab20d002184c618517b678b3b93cb8f0497cc046ca5
+Size (regex-syntax-0.6.25.crate) = 293293 bytes
+SHA1 (winapi-0.3.9.crate) = 25c427fe8e3df07658e2552d2585d2f167ba3125
+RMD160 (winapi-0.3.9.crate) = 37e72db32b20588d61821e9bc5e72fb31b1ed089
+SHA512 (winapi-0.3.9.crate) = ff8b7b78065f3d8999ec03c725a0460ebc059771bf071c7a3df3f0ecd733edf3b0a2450024d4e24e1aedddaecd9038ce1376c0d8bbf45132068cf45cf4a53a97
+Size (winapi-0.3.9.crate) = 1200382 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-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