Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Oct 2018 14:42:15 +0000 (UTC)
From:      Tobias Kortkamp <tobik@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r483036 - head/sysutils/yank
Message-ID:  <201810261442.w9QEgFEK095812@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tobik
Date: Fri Oct 26 14:42:15 2018
New Revision: 483036
URL: https://svnweb.freebsd.org/changeset/ports/483036

Log:
  sysutils/yank: Make X11 support optional
  
  This reduces the dependencies to nothing and makes it more useful
  for creating interactive scripts in non-graphical environments.
  While xsel is the default command yank runs, other commands can be
  specified and yank works fine without xsel.

Modified:
  head/sysutils/yank/Makefile

Modified: head/sysutils/yank/Makefile
==============================================================================
--- head/sysutils/yank/Makefile	Fri Oct 26 14:40:54 2018	(r483035)
+++ head/sysutils/yank/Makefile	Fri Oct 26 14:42:15 2018	(r483036)
@@ -2,6 +2,7 @@
 
 PORTNAME=	yank
 DISTVERSION=	1.0.0
+PORTREVISION=	1
 CATEGORIES=	sysutils
 MASTER_SITES=	https://github.com/mptre/yank/releases/download/v${DISTVERSION}/
 
@@ -11,10 +12,13 @@ COMMENT=	Yank terminal output to clipboard
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-RUN_DEPENDS=	xsel-conrad>=0:x11/xsel-conrad
 
 MAKE_ARGS=	MANPREFIX=${PREFIX}/man
 PLIST_FILES=	bin/yank \
 		man/man1/yank.1.gz
+
+OPTIONS_DEFINE=	X11
+
+X11_RUN_DEPENDS=	xsel-conrad>=0:x11/xsel-conrad
 
 .include <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201810261442.w9QEgFEK095812>