pkgsrc/textproc/sd/Makefile
pin 5c3e5b4d7e textproc/sd: import package
sd, s[earch] & d[isplace] is an intuitive find & replace CLI.
sd uses regex syntax that you already know from JavaScript and Python.
Forget about dealing with quirks of sed or awk and get productive immediately.

Non-regex find & replace. No more backslashes or remembering which characters
are special and need to be escaped.

Find & replace expressions are split up, which makes them easy to read and
write. No more messing with unclosed and escaped slashes.

While sed does a whole lot more, sd focuses on doing just one thing and doing
it well.
2021-01-31 15:57:00 +00:00

23 lines
557 B
Makefile

# $NetBSD: Makefile,v 1.1 2021/01/31 15:57:00 pin Exp $
DISTNAME= sd-0.7.6
CATEGORIES= textproc
MASTER_SITES= ${MASTER_SITE_GITHUB:=chmln/}
GITHUB_TAG= v${PKGVERSION_NOREV}
MAINTAINER= pin@NetBSD.org
HOMEPAGE= https://github.com/chmln/sd/
COMMENT= Intuitive find and replace CLI
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/sd ${DESTDIR}${PREFIX}/bin
.include "../../lang/rust/cargo.mk"
.include "../../mk/bsd.pkg.mk"