pkgsrc/shells/starship/Makefile
pin d128b6b63b shells/starship: update to 1.3.0
Features
    add username to Pulumi module (#3428)
    Enable Undistract Me for Linux (#3547)
    starship bug-report sets syntax highlighting for config file (#3529)
    add a container indicator (#3304)
    cli: Print arguments if argument parsing fails (#3560)
    cmd_duration: Make notification timeout configurable (#3515)
    install: Add posix shell check (#3474)
    localip: add module to print the current ipv4 address (#3289)
    pwsh: Set ExtraPromptLineCount (#3439)
    pwsh: Set STARSHIP_SHELL to pwsh on PS >5 (#3443)

Bug Fixes
    Correctly detect older versions of powershell in bug-report (#3543)
    bash: Restore previous exit status in bash init (#3521)
    elvish: use $pwd for logical-path (#3534)
    nodejs: use e718 as the default of symbol in node configuration (#3533)
    status: Enable to convert from i64 to hex_status by casting instead of
    parsing status. (#3462)

Code Refactoring
    Improve compatibility with Zsh prompt theme system (#3480)
    zsh: using add-zsh-hook instead of add hook manually (#3537)

Performance Improvements
    elvish: Use built-in randint instead of starship session. (#3479)
2022-02-08 12:39:23 +00:00

48 lines
1.6 KiB
Makefile

# $NetBSD: Makefile,v 1.9 2022/02/08 12:39:23 pin Exp $
DISTNAME= starship-1.3.0
CATEGORIES= shells
MASTER_SITES= ${MASTER_SITE_GITHUB:=starship/}
GITHUB_TAG= v${PKGVERSION_NOREV}
MAINTAINER= mj@mjturner.net
HOMEPAGE= https://github.com/starship/starship/
COMMENT= Fast, customizable cross-shell prompt
LICENSE= isc
# The libc and rust-battery crates currently have limited platform support
ONLY_FOR_PLATFORM= Darwin-*-* DragonFly-*-* FreeBSD-*-* Linux-*-* NetBSD-*-*
.include "cargo-depends.mk"
USE_LANGUAGES= c
USE_TOOLS+= pkg-config
MAKE_ENV+= OPENSSL_DIR=${BUILDLINK_PREFIX.openssl:Q}
RUSTFLAGS+= -C link-arg=${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.openssl}/lib
# Disable all battery features on NetBSD
# See https://github.com/svartalf/rust-battery/issues/20
# and https://github.com/svartalf/rust-battery/issues/33
# The new fork at starship/rust-battery does not address issues
# with NetBSD support, hence disable both.
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "NetBSD"
CARGO_NO_DEFAULT_FEATURES= YES
.endif
INSTALLATION_DIRS= bin
EGDIR= ${PREFIX}/share/examples/starship/auto-completion
do-install:
${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR}
${INSTALL_PROGRAM} ${WRKSRC}/target/release/starship ${DESTDIR}${PREFIX}/bin
${WRKSRC}/target/release/starship completions bash > ${DESTDIR}${EGDIR}/starship.bash
${WRKSRC}/target/release/starship completions fish > ${DESTDIR}${EGDIR}/starship.fish
${WRKSRC}/target/release/starship completions zsh > ${DESTDIR}${EGDIR}/_starship
DEPENDS+= git-base-[0-9]*:../../devel/git-base
.include "../../lang/rust/cargo.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"