summaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authortaca <taca@pkgsrc.org>2004-11-27 14:52:52 +0000
committertaca <taca@pkgsrc.org>2004-11-27 14:52:52 +0000
commit10d0e6dc753dfad909d402815c069adf29d26383 (patch)
tree0664eb443efd44b1b28bbaa0ff6280cd8a634cea /x11
parent692cb8431f630c2be2c56b03f4082022145dfde4 (diff)
downloadpkgsrc-10d0e6dc753dfad909d402815c069adf29d26383.tar.gz
Re-import previous ruby-tk package as ruby16-tk package for supporting
Ruby 1.6.8.
Diffstat (limited to 'x11')
-rw-r--r--x11/ruby16-tk/DESCR2
-rw-r--r--x11/ruby16-tk/Makefile36
-rw-r--r--x11/ruby16-tk/PLIST24
-rw-r--r--x11/ruby16-tk/distinfo5
-rw-r--r--x11/ruby16-tk/patches/patch-aa19
5 files changed, 86 insertions, 0 deletions
diff --git a/x11/ruby16-tk/DESCR b/x11/ruby16-tk/DESCR
new file mode 100644
index 00000000000..6219ac7e3b4
--- /dev/null
+++ b/x11/ruby16-tk/DESCR
@@ -0,0 +1,2 @@
+This is Ruby/Tk, a Ruby interface to the Tk widget set.
+It's a part of the official Ruby distribution.
diff --git a/x11/ruby16-tk/Makefile b/x11/ruby16-tk/Makefile
new file mode 100644
index 00000000000..bc578e291c9
--- /dev/null
+++ b/x11/ruby16-tk/Makefile
@@ -0,0 +1,36 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/11/27 14:52:52 taca Exp $
+# FreeBSD: ports/x11-toolkits/ruby-tk/Makefile,v 1.21 2000/10/20 19:56:04 knu Exp
+
+DISTNAME= ${RUBY_DISTNAME}
+PKGNAME= ${RUBY_PKGPREFIX}-tk-${RUBY_VERSION}
+CATEGORIES= x11 ruby
+MASTER_SITES= ${MASTER_SITE_RUBY}
+
+MAINTAINER= taca@NetBSD.org
+HOMEPAGE= ${RUBY_HOMEPAGE}
+COMMENT= Ruby interface to the Tk widget set
+
+DEPENDS+= ${RUBY_PKGPREFIX}-tcltklib>=${RUBY_VERSION}:../../x11/${RUBY_PKGPREFIX}-tcltklib
+
+RUBY_VERSION= ${RUBY16_VERSION}
+USE_BUILDLINK3= yes
+USE_RUBY_EXTCONF= yes
+USE_X11= yes
+EXTRACT_ELEMENTS= ${RUBY_DISTNAME}/ext/tk
+WRKSRC= ${RUBY_WRKSRC}/ext/tk
+
+REPLACE_RUBY= sample/tkbiff.rb sample/tkbrowse.rb \
+ sample/tkdialog.rb sample/tkfrom.rb sample/tktimer.rb
+
+post-patch:
+ @${FIND} ${WRKSRC} -name '*.orig' -exec rm -f {} \;
+
+post-install:
+ ${INSTALL_DATA_DIR} ${RUBY_EXAMPLESDIR}/tk
+ ${INSTALL_DATA} ${WRKSRC}/sample/* ${RUBY_EXAMPLESDIR}/tk
+
+.include "../../lang/ruby/modules.mk"
+.include "../../lang/ruby/Makefile.common"
+.include "../../lang/tcl/buildlink3.mk"
+.include "../../x11/tk/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/x11/ruby16-tk/PLIST b/x11/ruby16-tk/PLIST
new file mode 100644
index 00000000000..ef51595886e
--- /dev/null
+++ b/x11/ruby16-tk/PLIST
@@ -0,0 +1,24 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/11/27 14:52:52 taca Exp $
+${RUBY_SITEARCHLIBDIR}/tkutil.so
+${RUBY_SITELIBDIR}/tk.rb
+${RUBY_SITELIBDIR}/tkafter.rb
+${RUBY_SITELIBDIR}/tkbgerror.rb
+${RUBY_SITELIBDIR}/tkcanvas.rb
+${RUBY_SITELIBDIR}/tkclass.rb
+${RUBY_SITELIBDIR}/tkdialog.rb
+${RUBY_SITELIBDIR}/tkentry.rb
+${RUBY_SITELIBDIR}/tkfont.rb
+${RUBY_SITELIBDIR}/tkmenubar.rb
+${RUBY_SITELIBDIR}/tkmngfocus.rb
+${RUBY_SITELIBDIR}/tkpalette.rb
+${RUBY_SITELIBDIR}/tkscrollbox.rb
+${RUBY_SITELIBDIR}/tktext.rb
+${RUBY_SITELIBDIR}/tkvirtevent.rb
+${RUBY_EXAMPLESDIR}/tk/tkbiff.rb
+${RUBY_EXAMPLESDIR}/tk/tkbrowse.rb
+${RUBY_EXAMPLESDIR}/tk/tkdialog.rb
+${RUBY_EXAMPLESDIR}/tk/tkfrom.rb
+${RUBY_EXAMPLESDIR}/tk/tkhello.rb
+${RUBY_EXAMPLESDIR}/tk/tkline.rb
+${RUBY_EXAMPLESDIR}/tk/tktimer.rb
+@dirrm ${RUBY_EXAMPLESDIR}/tk
diff --git a/x11/ruby16-tk/distinfo b/x11/ruby16-tk/distinfo
new file mode 100644
index 00000000000..f6c7918822d
--- /dev/null
+++ b/x11/ruby16-tk/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/11/27 14:52:52 taca Exp $
+
+SHA1 (ruby/ruby-1.6.8.tar.gz) = 4b475ac1c837cd62b6dfe85359e1502a71b08cd1
+Size (ruby/ruby-1.6.8.tar.gz) = 1023403 bytes
+SHA1 (patch-aa) = 5ac770a8e68be04744b519fd78ebfe1e6eed9d12
diff --git a/x11/ruby16-tk/patches/patch-aa b/x11/ruby16-tk/patches/patch-aa
new file mode 100644
index 00000000000..34f9a796325
--- /dev/null
+++ b/x11/ruby16-tk/patches/patch-aa
@@ -0,0 +1,19 @@
+$NetBSD: patch-aa,v 1.1.1.1 2004/11/27 14:52:52 taca Exp $
+
+--- sample/tkbiff.rb.orig 2001-03-21 17:04:12.000000000 +0900
++++ sample/tkbiff.rb
+@@ -11,8 +11,12 @@ end
+ if ARGV.length == 0
+ if ENV['MAIL']
+ $spool = ENV['MAIL']
+- else
+- $spool = '/usr/spool/mail/' + ENV['USER']
++ else
++ dir = '/var/spool/mail'
++ unless FileTest.directory?(dir)
++ dir = '/var/mail'
++ end
++ $spool = dir + '/' + ENV['USER']
+ end
+ else
+ $spool = ARGV[0]