[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / editors / bred

File: [cvs.NetBSD.org] / pkgsrc / editors / bred / Attic / Makefile (download)

Revision 1.1, Sun Oct 9 16:12:17 2022 UTC (18 months ago) by pin
Branch: MAIN

editors/bred: import package

A simple binary file reader that dumps the output to stdout.

To use, simply input a file (stdin support coming soon), and add any desired
options.
 --length option changes how many characters to print (not including any
   formatting like offsets and borders).
 --chunk option changes how large the buffer array should be; the bigger it is,
   the faster but uses more memory.
 --hex option simply prints the file in hexadecimal.
 --color option uses colors to differentiate between letters (\0 are gray,
   others indicate how large the character code is, and orange is non-ascii
   characters). Note, make sure you use a terminal emulator that supports ANSI
   256-color mode.
 --space option replaces all the spaces (0x20) with a green-colored _.
   This also affects the hex output.

# $NetBSD: Makefile,v 1.1 2022/10/09 16:12:17 pin Exp $

DISTNAME=	bred-0.2.2
CATEGORIES=	editors
MASTER_SITES=	${MASTER_SITE_GITHUB:=manorajesh/}
GITHUB_TAG=	86810429b9e2d590b45d3d58b8863e2850d0e80f

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://github.com/manorajesh/bred/
COMMENT=	Simple binary file reader
LICENSE=	mit

.include "cargo-depends.mk"

INSTALLATION_DIRS=	bin

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/target/release/bred \
		${DESTDIR}${PREFIX}/bin

.include "../../lang/rust/cargo.mk"
.include "../../mk/bsd.pkg.mk"