freebsd-ports/security/lastpass-cli/Makefile
Sunpoet Po-Chuan Hsieh 719b255a03 Update to 1.2.1
Changes:	https://github.com/lastpass/lastpass-cli/releases
PR:		220362
Submitted by:	Thomas Hurst <tom@hur.st> (maintainer)
2017-06-30 22:15:08 +00:00

53 lines
1.4 KiB
Makefile

# Created by: Thomas Hurst <tom@hur.st>
# $FreeBSD$
PORTNAME= lastpass-cli
PORTVERSION= 1.2.1
DISTVERSIONPREFIX= v
CATEGORIES= security
MAINTAINER= tom@hur.st
COMMENT= LastPass command line interface tool
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libcurl.so:ftp/curl
USES= cmake:noninja pkgconfig ssl
USE_GNOME= libxml2
USE_GITHUB= YES
GH_ACCOUNT= lastpass
PLIST_FILES= bin/lpass share/bash-completion/completions/lpass
CMAKE_ARGS= -DBASH_COMPLETION_COMPLETIONSDIR=${PREFIX}/share/bash-completion/completions
TEST_TARGET= lpass-test test
OPTIONS_DEFINE= MANPAGES PINENTRY XCLIP XSEL
OPTIONS_DEFAULT= MANPAGES
PINENTRY_DESC= Use pinentry for password entry
XCLIP_DESC= Use xclip for interacting with X11 clipboard
XSEL_DESC= Use xsel for interacting with X11 clipboard
MANPAGES_BUILD_DEPENDS= asciidoc:textproc/asciidoc \
xmlto:textproc/xmlto
MANPAGES_ALL_TARGET= all doc-man
MANPAGES_INSTALL_TARGET=install install-doc
MANPAGES_PLIST_FILES= ${MANPREFIX}/man/man1/lpass.1.gz
PINENTRY_RUN_DEPENDS= pinentry:security/pinentry
XCLIP_RUN_DEPENDS= xclip:x11/xclip
XSEL_RUN_DEPENDS= xsel:x11/xsel
post-extract:
@${REINPLACE_CMD} -e 's/-Wno-language-extension-token//g' \
${WRKSRC}/CMakeLists.txt
@${REINPLACE_CMD} -e 's/build\/lpass-test/lpass-test/' \
${WRKSRC}/test/include.sh
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/lpass
.include <bsd.port.mk>