1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-30 10:38:37 +00:00
freebsd-ports/security/sequoia-sq/Makefile
2024-06-18 12:59:14 +02:00

62 lines
1.7 KiB
Makefile

PORTNAME= sq
DISTVERSIONPREFIX= v
DISTVERSION= 0.36.0
PORTREVISION= 1
CATEGORIES= security
PKGNAMEPREFIX= sequoia-
MAINTAINER= vishwin@FreeBSD.org
COMMENT= Sequoia-PGP command line tool
WWW= https://sequoia-pgp.org/
LICENSE= LGPL20+
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
BUILD_DEPENDS= capnp:devel/capnproto
LIB_DEPENDS= libnettle.so:security/nettle \
libgmp.so:math/gmp
USES= cargo llvm sqlite ssl
USE_GITLAB= yes
GL_ACCOUNT= sequoia-pgp
GL_PROJECT= ${PKGNAMEPREFIX}${PORTNAME}
CARGO_ENV+= ASSET_OUT_DIR=${CARGO_TARGET_DIR}
OPTIONS_DEFINE= BASH ELVISH FISH MANPAGES ZSH
OPTIONS_DEFAULT= BASH ELVISH FISH MANPAGES ZSH
OPTIONS_SUB= yes
ELVISH_DESC= Install Elvish module
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
post-install-BASH-on:
@${MKDIR} ${STAGEDIR}${PREFIX}/share/bash-completion/completions
${INSTALL_DATA} ${CARGO_TARGET_DIR}/shell-completions/${PORTNAME}.bash \
${STAGEDIR}${PREFIX}/share/bash-completion/completions/${PORTNAME}
post-install-ELVISH-on:
@${MKDIR} ${STAGEDIR}${PREFIX}/share/elvish/lib
${INSTALL_DATA} ${CARGO_TARGET_DIR}/shell-completions/${PORTNAME}.elv \
${STAGEDIR}${PREFIX}/share/elvish/lib
post-install-FISH-on:
@${MKDIR} ${STAGEDIR}${PREFIX}/share/fish/completions
${INSTALL_DATA} ${CARGO_TARGET_DIR}/shell-completions/${PORTNAME}.fish \
${STAGEDIR}${PREFIX}/share/fish/completions
post-install-MANPAGES-on:
${FIND} ${CARGO_TARGET_DIR}/man-pages -name "*.1" \
-exec ${INSTALL_MAN} {} ${STAGEDIR}${PREFIX}/share/man/man1 \;
post-install-ZSH-on:
@${MKDIR} ${STAGEDIR}${PREFIX}/share/zsh/site-functions
${INSTALL_DATA} ${CARGO_TARGET_DIR}/shell-completions/_${PORTNAME} \
${CARGO_TARGET_DIR}/shell-completions/_${PORTNAME}.ps1 \
${STAGEDIR}${PREFIX}/share/zsh/site-functions
.include <bsd.port.mk>