freebsd-ports/sysutils/toybox/Makefile
Mikael Urankar 7b1a62f35e sysutils/toybox: Update to 0.8.4
Changelog:
- new commands: sha3sum and watchdog
- new command features:
  - sed -s flag
  - cpio --no-preserve-owner now affects archive creation
  - Elliott added tar -I and multi-type find -type a,b,c support
  - Mark Salyzyn added xargs -P to run parallel job
  - the ps and top commands now autodetect pid length
  - top adjusts units for memory display based on system size
  - toysh and mkroot: lots of new work on toysh: 29 commits to sh.c since
    last release, adding 1500 lines and deleting 700, plus a bunch of
    sh.tests entries). Implemented since last release:
  - wildcards
  - case/esac and select
  - brace expansion sequences (ala {1..10..2} and {a..z})
  - the remaining variable slice types ${a#y} ${a%y} ${a^y} ${a,y} ${a/search/replace}
  - the "source" shell builtin
  - the start of job control
  - several bugfixes

PR:		251507
Submitted by:	Vidar Karlsen (maintainer)
2020-12-01 16:56:56 +00:00

45 lines
1.1 KiB
Makefile

# $FreeBSD$
PORTNAME= toybox
PORTVERSION= 0.8.4
CATEGORIES= sysutils
MAINTAINER= vidar@karlsen.tech
COMMENT= All-in-one command line
LICENSE= 0BSD
LICENSE_NAME= BSD Zero Clause License
LICENSE_FILE= ${WRKSRC}/LICENSE
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
BUILD_DEPENDS= bash:shells/bash gsed:textproc/gsed
LIB_DEPENDS= libinotify.so:devel/libinotify
USES= gmake shebangfix
SHEBANG_FILES= scripts/bloatcheck scripts/mcm-buildall.sh \
scripts/change.sh scripts/findglobals.sh \
scripts/genconfig.sh scripts/install.sh \
scripts/make.sh scripts/mkroot.sh \
scripts/portability.sh scripts/record-commands \
scripts/runtest.sh scripts/single.sh \
scripts/test.sh configure \
tests/*
PLIST_FILES= bin/toybox
USE_GITHUB= yes
GH_ACCOUNT= landley
post-patch:
${REINPLACE_CMD} -e 's|<sys/inotify.h>|"${LOCALBASE}/include/sys/inotify.h"|' \
${WRKSRC}/lib/portability.c
${REINPLACE_CMD} -e 's|sed|gsed|' ${WRKSRC}/scripts/single.sh
do-configure:
cd ${WRKSRC} && HOSTCC=${CC} ${GMAKE} bsd_defconfig
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/toybox ${STAGEDIR}${PREFIX}/bin
.include <bsd.port.mk>