diff --git a/sysutils/rust-coreutils/Makefile b/sysutils/rust-coreutils/Makefile index 2e579a8894f7..9e1607a27a51 100644 --- a/sysutils/rust-coreutils/Makefile +++ b/sysutils/rust-coreutils/Makefile @@ -1,50 +1,48 @@ PORTNAME= rust-coreutils DISTVERSION= 0.0.28 PORTREVISION= 1 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}/symlink-install-helper.sh @${REINPLACE_CMD} -e 's|%%GREP%%|${GREP}|g' \ ${CARGO_TARGET_DIR}/symlink-install-helper.sh @${REINPLACE_CMD} -e 's|%%CARGO_TARGET_DIR%%|${CARGO_TARGET_DIR}|g' \ ${CARGO_TARGET_DIR}/symlink-install-helper.sh - @${REINPLACE_CMD} -e 's|%%CARGO_BUILD_TARGET%%|${CARGO_BUILD_TARGET}|g' \ - ${CARGO_TARGET_DIR}/symlink-install-helper.sh @${REINPLACE_CMD} -e 's|%%SED%%|${SED}|g' \ ${CARGO_TARGET_DIR}/symlink-install-helper.sh @${REINPLACE_CMD} -e 's|%%TR%%|${TR}|g' \ ${CARGO_TARGET_DIR}/symlink-install-helper.sh @${REINPLACE_CMD} -e 's|%%RLN%%|${RLN}|g' \ ${CARGO_TARGET_DIR}/symlink-install-helper.sh @${REINPLACE_CMD} -e 's|%%STAGEDIR%%|${STAGEDIR}|g' \ ${CARGO_TARGET_DIR}/symlink-install-helper.sh @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' \ ${CARGO_TARGET_DIR}/symlink-install-helper.sh @${REINPLACE_CMD} -e 's|%%BINPREFIX%%|${BINPREFIX}|g' \ ${CARGO_TARGET_DIR}/symlink-install-helper.sh do-install: ${INSTALL_PROGRAM} ${CARGO_TARGET_DIR}/release/coreutils \ ${STAGEDIR}${PREFIX}/bin/${BINPREFIX}coreutils ${CARGO_TARGET_DIR}/symlink-install-helper.sh .include diff --git a/sysutils/rust-coreutils/files/symlink-install-helper.sh.in b/sysutils/rust-coreutils/files/symlink-install-helper.sh.in index 981db5f277b8..6dc78677de58 100644 --- a/sysutils/rust-coreutils/files/symlink-install-helper.sh.in +++ b/sysutils/rust-coreutils/files/symlink-install-helper.sh.in @@ -1,2 +1,2 @@ #!/bin/sh -for i in $(%%GREP%% -o '".*"' %%CARGO_TARGET_DIR%%/%%CARGO_BUILD_TARGET%%/*/build/coreutils-*/out/uutils_map.rs | %%SED%% 's/"//g'| %%SED%% 's/$/ /g'| %%TR%% -d '\n'| %%TR%% -d '\r'); do %%RLN%% %%STAGEDIR%%%%PREFIX%%/bin/%%BINPREFIX%%coreutils %%STAGEDIR%%%%PREFIX%%/bin/%%BINPREFIX%%${i}; done +for i in $(%%GREP%% -o '".*"' %%CARGO_TARGET_DIR%%/*/build/coreutils-*/out/uutils_map.rs | %%SED%% 's/"//g'| %%SED%% 's/$/ /g'| %%TR%% -d '\n'| %%TR%% -d '\r'); do %%RLN%% %%STAGEDIR%%%%PREFIX%%/bin/%%BINPREFIX%%coreutils %%STAGEDIR%%%%PREFIX%%/bin/%%BINPREFIX%%${i}; done