summaryrefslogtreecommitdiff
path: root/x11/cliphist/Makefile
blob: 138af6d93c49b02488e3ab5ac6e0de109eb70f03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
PORTNAME=	cliphist
DISTVERSIONPREFIX=	v
DISTVERSION=	0.5.0
PORTREVISION=	4
CATEGORIES=	x11 wayland

MAINTAINER=	jbeich@FreeBSD.org
COMMENT=	Wayland clipboard manager
WWW=		https://github.com/sentriz/cliphist

LICENSE=	GPLv3
LICENSE_FILE=	${WRKSRC}/LICENSE

USES=		go:modules
USE_GITHUB=	yes
GH_ACCOUNT=	sentriz
GH_TUPLE=	etcd-io:bbolt:v1.3.7:etcd_io_bbolt/vendor/go.etcd.io/bbolt \
		golang:image:v0.11.0:golang_image/vendor/golang.org/x/image \
		golang:sys:v0.11.0:golang_sys/vendor/golang.org/x/sys \
		rogpeppe:go-internal:v1.10.0:rogpeppe_go_internal/vendor/github.com/rogpeppe/go-internal
PLIST_FILES=	bin/${PORTNAME}

OPTIONS_DEFINE=	FZF
OPTIONS_DEFAULT=FZF

FZF_DESC=		Script with only unique lines and previews
FZF_RUN_DEPENDS=	fzf:textproc/fzf \
			wl-copy:x11/wl-clipboard
FZF_PLIST_FILES=	bin/${PORTNAME}-fzf

post-install-FZF-on:
	${INSTALL_SCRIPT} ${WRKSRC}/contrib/${FZF_PLIST_FILES:T} \
		${STAGEDIR}${PREFIX}/bin

.include <bsd.port.mk>