mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-19 00:13:33 +00:00
89ab81d0e2
PR: 281300
51 lines
1.9 KiB
Makefile
51 lines
1.9 KiB
Makefile
PORTNAME= rust-coreutils
|
|
DISTVERSION= 0.0.27
|
|
PORTREVISION= 2
|
|
CATEGORIES= sysutils
|
|
|
|
MAINTAINER= pkubaj@FreeBSD.org
|
|
COMMENT= Cross-platform Rust rewrite of the GNU coreutils
|
|
WWW= https://crates.io/crates/coreutils
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
LIB_DEPENDS= libonig.so:devel/oniguruma
|
|
|
|
USES= cargo pkgconfig
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= uutils
|
|
GH_PROJECT= coreutils
|
|
|
|
CARGO_FEATURES= unix
|
|
BINPREFIX= uu-
|
|
PLIST_SUB= BINPREFIX=${BINPREFIX}
|
|
|
|
post-build:
|
|
${INSTALL_SCRIPT} ${FILESDIR}/symlink-install-helper.sh.in ${CARGO_TARGET_DIR}/${CARGO_BUILD_TARGET}/symlink-install-helper.sh
|
|
@${REINPLACE_CMD} -e 's|%%GREP%%|${GREP}|g' \
|
|
${CARGO_TARGET_DIR}/${CARGO_BUILD_TARGET}/symlink-install-helper.sh
|
|
@${REINPLACE_CMD} -e 's|%%CARGO_TARGET_DIR%%|${CARGO_TARGET_DIR}|g' \
|
|
${CARGO_TARGET_DIR}/${CARGO_BUILD_TARGET}/symlink-install-helper.sh
|
|
@${REINPLACE_CMD} -e 's|%%CARGO_BUILD_TARGET%%|${CARGO_BUILD_TARGET}|g' \
|
|
${CARGO_TARGET_DIR}/${CARGO_BUILD_TARGET}/symlink-install-helper.sh
|
|
@${REINPLACE_CMD} -e 's|%%SED%%|${SED}|g' \
|
|
${CARGO_TARGET_DIR}/${CARGO_BUILD_TARGET}/symlink-install-helper.sh
|
|
@${REINPLACE_CMD} -e 's|%%TR%%|${TR}|g' \
|
|
${CARGO_TARGET_DIR}/${CARGO_BUILD_TARGET}/symlink-install-helper.sh
|
|
@${REINPLACE_CMD} -e 's|%%RLN%%|${RLN}|g' \
|
|
${CARGO_TARGET_DIR}/${CARGO_BUILD_TARGET}/symlink-install-helper.sh
|
|
@${REINPLACE_CMD} -e 's|%%STAGEDIR%%|${STAGEDIR}|g' \
|
|
${CARGO_TARGET_DIR}/${CARGO_BUILD_TARGET}/symlink-install-helper.sh
|
|
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \
|
|
${CARGO_TARGET_DIR}/${CARGO_BUILD_TARGET}/symlink-install-helper.sh
|
|
@${REINPLACE_CMD} -e 's|%%BINPREFIX%%|${BINPREFIX}|g' \
|
|
${CARGO_TARGET_DIR}/${CARGO_BUILD_TARGET}/symlink-install-helper.sh
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${CARGO_TARGET_DIR}/${CARGO_BUILD_TARGET}/release/coreutils \
|
|
${STAGEDIR}${PREFIX}/bin/${BINPREFIX}coreutils
|
|
${CARGO_TARGET_DIR}/${CARGO_BUILD_TARGET}/symlink-install-helper.sh
|
|
|
|
.include <bsd.port.mk>
|