head	1.1;
access;
symbols;
locks; strict;
comment	@# @;


1.1
date	2026.04.07.18.42.23;	author pin;	state Exp;
branches;
next	;
commitid	2a7vLdg6ouAVE3BG;


desc
@@


1.1
log
@sysutils/uutils-coreutils: import package

uutils coreutils is a cross-platform reimplementation of the GNU coreutils in
Rust. While all programs have been implemented, some options might be missing
or different behavior might be experienced.

This project aims to be a drop-in replacement for the GNU utils. Differences
with GNU are treated as bugs.

uutils aims to work on as many platforms as possible, to be able to use the
same utils on Linux, Mac, Windows and other platforms. This ensures, for
example, that scripts can be easily transferred between platforms.
@
text
@# $NetBSD$

DISTNAME=	coreutils-0.8.0
PKGNAME=	uutils-${DISTNAME}
CATEGORIES=	sysutils
MASTER_SITES=	${MASTER_SITE_GITHUB:=uutils/}
GITHUB_PROJECT=	coreutils

MAINTAINER=	pkgsrc-users@@NetBSD.org
HOMEPAGE=	https://uutils.github.io/coreutils/
COMMENT=	Cross-platform Rust rewrite of the GNU coreutils
LICENSE=	mit

RUST_REQ=	1.88.0

PROGS+=		arch b2sum base32 base64 basename basenc cat chgrp chmod chown chroot cksum \
		comm cp csplit cut date dd df dir dircolors dirname du echo env expand expr \
		factor false fmt fold groups head hostid hostname id install join kill link ln \
		logname ls md5sum mkdir mkfifo mknod mktemp more mv nice nl nohup nproc numfmt \
		od paste pathchk pinky pr printenv printf ptx pwd readlink realpath rm rmdir \
		seq sha1sum sha224sum sha256sum sha384sum sha512sum shred shuf sleep sort \
		split stat stdbuf stty sum sync tac tail tee test timeout touch tr true \
		truncate tsort tty uname unexpand uniq unlink uptime users vdir wc who whoami \
		yes

INSTALLATION_DIRS+=	uutils-coreutils/bin

CARGO_NO_DEFAULT_FEATURES=	YES
CARGO_FEATURES+=		feat_os_unix

post-install:
.for program in ${PROGS}
	cd ${DESTDIR}${PREFIX}/bin && ${LN} coreutils uu-${program}
	cd ${DESTDIR}${PREFIX}/bin && ${LN} coreutils ../uutils-coreutils/bin/${program}
.endfor

.include "cargo-depends.mk"

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