From e1de9ef36642038b7f84a4bd6f71253540bda472 Mon Sep 17 00:00:00 2001
From: Steve Wills <swills@FreeBSD.org>
Date: Sun, 23 Sep 2018 01:49:06 +0000
Subject: x11-toolkits/rubygem-tk: create port

rubygem-tk provides the gem "tk", a Ruby interface to the
Tk GUI toolkit.

WWW: https://github.com/ruby/tk

PR:		230483
Submitted by:	Nicola Mingotti <nmingotti@gmail.com>
---
 x11-toolkits/Makefile             |  1 +
 x11-toolkits/rubygem-tk/Makefile  | 25 +++++++++++++++++++++++++
 x11-toolkits/rubygem-tk/distinfo  |  3 +++
 x11-toolkits/rubygem-tk/pkg-descr |  4 ++++
 4 files changed, 33 insertions(+)
 create mode 100644 x11-toolkits/rubygem-tk/Makefile
 create mode 100644 x11-toolkits/rubygem-tk/distinfo
 create mode 100644 x11-toolkits/rubygem-tk/pkg-descr

(limited to 'x11-toolkits')

diff --git a/x11-toolkits/Makefile b/x11-toolkits/Makefile
index a9fa5c2a3d28..6c3dca6e264e 100644
--- a/x11-toolkits/Makefile
+++ b/x11-toolkits/Makefile
@@ -257,6 +257,7 @@
     SUBDIR += rubygem-gtksourceview3
     SUBDIR += rubygem-pango
     SUBDIR += rubygem-poppler
+    SUBDIR += rubygem-tk
     SUBDIR += rubygem-uh
     SUBDIR += rubygem-vte
     SUBDIR += rubygem-vte3
diff --git a/x11-toolkits/rubygem-tk/Makefile b/x11-toolkits/rubygem-tk/Makefile
new file mode 100644
index 000000000000..571ab604e4ef
--- /dev/null
+++ b/x11-toolkits/rubygem-tk/Makefile
@@ -0,0 +1,25 @@
+# $FreeBSD$
+
+PORTNAME=	tk
+PORTVERSION=	0.2.0
+CATEGORIES=	x11-toolkits rubygems
+MASTER_SITES=	https://rubygems.org/downloads/
+
+MAINTAINER=	nmingotti@gmail.com
+COMMENT=	Ruby interface to TclTk-8.6
+
+LICENSE=	BSD2CLAUSE
+
+LIB_DEPENDS=	libunwind.so:devel/libunwind
+RUN_DEPENDS=	tcl86>=${PORTVERSION}:lang/tcl86 \
+		tk86>=${PORTVERSION}:x11-toolkits/tk86
+
+CONFIGURE_ARGS=--with-tcltkversion=8.6,8.6 \
+		--with-tk-include=${LOCALBASE}/include/tk8.6 \
+		--with-tcl-include=${LOCALBASE}/include/tcl8.6
+
+USES=		gem tk:86
+USE_RUBY=	yes
+USE_XORG=	x11
+
+.include <bsd.port.mk>
diff --git a/x11-toolkits/rubygem-tk/distinfo b/x11-toolkits/rubygem-tk/distinfo
new file mode 100644
index 000000000000..c484b74dac5b
--- /dev/null
+++ b/x11-toolkits/rubygem-tk/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1519216632
+SHA256 (rubygem/tk-0.2.0.gem) = 0d324ae915c20020bea946b1d0b0b35244f16fd2dacc35cf9647b9ac1ea1fc3f
+SIZE (rubygem/tk-0.2.0.gem) = 1742848
diff --git a/x11-toolkits/rubygem-tk/pkg-descr b/x11-toolkits/rubygem-tk/pkg-descr
new file mode 100644
index 000000000000..f4c7c565d9fb
--- /dev/null
+++ b/x11-toolkits/rubygem-tk/pkg-descr
@@ -0,0 +1,4 @@
+rubygem-tk provides the gem "tk", a Ruby interface to the
+Tk GUI toolkit.
+
+WWW: https://github.com/ruby/tk
-- 
cgit