summaryrefslogtreecommitdiff
path: root/comms/ruby-termios
diff options
context:
space:
mode:
authortaca <taca@pkgsrc.org>2010-09-10 04:01:36 +0000
committertaca <taca@pkgsrc.org>2010-09-10 04:01:36 +0000
commita64db62b7aab22b414c380dd91d744781e9456b6 (patch)
tree93423749d1399acfc21e15f56a090b156adda136 /comms/ruby-termios
parentbb2c15ea7c06c9c41bdf9e4c4ebb74077ffd95ac (diff)
downloadpkgsrc-a64db62b7aab22b414c380dd91d744781e9456b6.tar.gz
Update comms/ruby-termios package to 0.9.6
* Use lang/ruby/gem.mk instead of misc/rubygems/rubygem.mk. * Remove default value of GEM_BUILD. * Add LICENSE. 2009-08-28 akira yamada <akira@arika.org> * version 0.9.6. 2009-02-05 akira yamada <akira@arika.org> * termios.c: added RDoc. * README: converted to RDoc. * ruby-termios.gemspec: added. 2008-10-23 akira yamada <akira@arika.org> * termios.c: added IOCTL_COMMANDS, IOCTL_COMMAND_NAMES, MODEM_SIGNALS, MODEM_SIGNAL_NAMES, PTY_PACKET_OPTIONS, PTY_PACKET_OPTION_NAMES, LINE_DISCIPLINES and LINE_DISCIPLINE_NAMES. This change is contributed from Chris Hoffman <chrishoffman_cardialife.com>. * termios.c, extconf.rb: included <sys/ioctl.h>. 2008-06-03 akira yamada <akira@arika.org> * extconf.rb, termios.c: adjusted rb_io_t/OpenFile checks for Ruby 1.8.7.
Diffstat (limited to 'comms/ruby-termios')
-rw-r--r--comms/ruby-termios/DESCR4
-rw-r--r--comms/ruby-termios/Makefile17
-rw-r--r--comms/ruby-termios/PLIST11
-rw-r--r--comms/ruby-termios/distinfo11
-rw-r--r--comms/ruby-termios/files/gemspec26
-rw-r--r--comms/ruby-termios/patches/patch-aa27
-rw-r--r--comms/ruby-termios/patches/patch-ab12
7 files changed, 18 insertions, 90 deletions
diff --git a/comms/ruby-termios/DESCR b/comms/ruby-termios/DESCR
index 61033c85ad3..1cbb29ff27b 100644
--- a/comms/ruby-termios/DESCR
+++ b/comms/ruby-termios/DESCR
@@ -1 +1,3 @@
-This is a Ruby extension for termios library.
+Termios module is simple wrapper of termios(3). It can be included into
+IO-family classes and can extend IO-family objects. In addition, the methods
+can use as module function.
diff --git a/comms/ruby-termios/Makefile b/comms/ruby-termios/Makefile
index 8538fcafa26..cc9ddb1fe26 100644
--- a/comms/ruby-termios/Makefile
+++ b/comms/ruby-termios/Makefile
@@ -1,22 +1,15 @@
-# $NetBSD: Makefile,v 1.21 2008/06/22 02:34:26 taca Exp $
+# $NetBSD: Makefile,v 1.22 2010/09/10 04:01:36 taca Exp $
-DISTNAME= ruby-termios-0.9.5
-PKGNAME= ${RUBY_PKGPREFIX}-${GEM_NAME}
-PKGREVISION= 2
+DISTNAME= ruby-termios-0.9.6
+PKGNAME= ${RUBY_PKGPREFIX}-${DISTNAME:S/ruby-//}
CATEGORIES= comms
-MASTER_SITES= http://arika.org/archive/
-DISTFILES= ${DISTNAME}.tar.gz
MAINTAINER= taca@NetBSD.org
HOMEPAGE= http://arika.org/ruby/termios
COMMENT= Ruby extension to termios library
+LICENSE= gnu-gpl-v2 OR ruby-license
-GEM_NAME= ${DISTNAME:S/ruby-//}
-GEM_BUILD= gemspec
GEM_CLEANBUILD= Makefile *.o termios.${RUBY_DLEXT} mkmf.log
-post-extract:
- cp ${FILESDIR}/gemspec ${GEM_SPECFILE}
-
-.include "../../misc/rubygems/rubygem.mk"
+.include "../../lang/ruby/gem.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/comms/ruby-termios/PLIST b/comms/ruby-termios/PLIST
index cd3c145e0e5..f80c722ddf6 100644
--- a/comms/ruby-termios/PLIST
+++ b/comms/ruby-termios/PLIST
@@ -1,17 +1,16 @@
-@comment $NetBSD: PLIST,v 1.9 2009/06/14 18:31:59 joerg Exp $
-${GEM_HOME}/cache/termios-${PKGVERSION}.gem
+@comment $NetBSD: PLIST,v 1.10 2010/09/10 04:01:36 taca Exp $
+${GEM_HOME}/cache/${GEM_NAME}.gem
+${GEM_LIBDIR}/.require_paths
${GEM_LIBDIR}/ChangeLog
-${GEM_LIBDIR}/MANIFEST
${GEM_LIBDIR}/README
-${GEM_LIBDIR}/TODO.ja
${GEM_LIBDIR}/examples/modem_check0.rb
${GEM_LIBDIR}/examples/modem_check1.rb
${GEM_LIBDIR}/examples/modem_check2.rb
${GEM_LIBDIR}/examples/secret_input1.rb
${GEM_LIBDIR}/examples/secret_input2.rb
${GEM_LIBDIR}/extconf.rb
+${GEM_LIBDIR}/lib/termios.rb
${GEM_LIBDIR}/lib/termios.${RUBY_DLEXT}
${GEM_LIBDIR}/termios.c
-${GEM_LIBDIR}/termios.rd
${GEM_LIBDIR}/test/test0.rb
-${GEM_HOME}/specifications/termios-${PKGVERSION}.gemspec
+${GEM_HOME}/specifications/${GEM_NAME}.gemspec
diff --git a/comms/ruby-termios/distinfo b/comms/ruby-termios/distinfo
index 0350b82da9c..4d50e1f47ea 100644
--- a/comms/ruby-termios/distinfo
+++ b/comms/ruby-termios/distinfo
@@ -1,7 +1,6 @@
-$NetBSD: distinfo,v 1.9 2008/06/21 03:58:51 taca Exp $
+$NetBSD: distinfo,v 1.10 2010/09/10 04:01:36 taca Exp $
-SHA1 (ruby-termios-0.9.5.tar.gz) = e9689dd0d51f7305bee34e2ce3abc4d4f561466f
-RMD160 (ruby-termios-0.9.5.tar.gz) = 923707f2afe4f2f9c853d51d0e7d94e511fa75df
-Size (ruby-termios-0.9.5.tar.gz) = 10927 bytes
-SHA1 (patch-aa) = 06db5dd1ce96af4c9d005ddc8970b00bad108708
-SHA1 (patch-ab) = d342f8dd40e37d12b1bc4db650275d98dc608190
+SHA1 (ruby-termios-0.9.6.gem) = 09eb1346140fdd127fc269b5fae25042b5466bdc
+RMD160 (ruby-termios-0.9.6.gem) = 215cd866d08ae99f8614ad76462860bda89f78e8
+Size (ruby-termios-0.9.6.gem) = 15360 bytes
+SHA1 (patch-ab) = 148e9c81e6b2e72a8ba1ecabd09775623a78552d
diff --git a/comms/ruby-termios/files/gemspec b/comms/ruby-termios/files/gemspec
deleted file mode 100644
index 66e0e92eb8e..00000000000
--- a/comms/ruby-termios/files/gemspec
+++ /dev/null
@@ -1,26 +0,0 @@
-require "rubygems"
-
-PLUGIN = "termios"
-NAME = "termios"
-VERSION = "0.9.5"
-AUTHOR = "Akira Yamada and Goto Kentaro"
-EMAIL = "akira@ruby-lang.org"
-HOMEPAGE = "http://arika.org/ruby/termios"
-SUMMARY = "Termios module are simple wrapper for termios(3). It can be included into IO-family classes and can extend IO-family objects. In addition, the methods can use as module function."
-
-spec = Gem::Specification.new do |s|
- s.name = NAME
- s.email = EMAIL
- s.author = AUTHOR
- s.version = VERSION
- s.summary = SUMMARY
- s.platform = Gem::Platform::RUBY
- s.has_rdoc = false
- s.homepage = HOMEPAGE
- s.description = SUMMARY
- s.autorequire = PLUGIN
- s.require_paths = ["lib"]
- s.extra_rdoc_files = ["README", "termios.rd"]
- s.files = Dir.glob("[A-Z]*") + Dir.glob("*.rb") + Dir.glob("termios.*") + Dir.glob("{test,examples}/**/*")
- s.extensions = "extconf.rb"
-end
diff --git a/comms/ruby-termios/patches/patch-aa b/comms/ruby-termios/patches/patch-aa
deleted file mode 100644
index 28341bd102d..00000000000
--- a/comms/ruby-termios/patches/patch-aa
+++ /dev/null
@@ -1,27 +0,0 @@
-$NetBSD: patch-aa,v 1.1 2008/06/19 14:39:58 taca Exp $
-
---- termios.c.orig 2007-05-30 04:09:04.000000000 +0000
-+++ termios.c
-@@ -12,11 +12,11 @@
- #include <unistd.h>
- #include <string.h>
-
--#ifdef HAVE_TYPE_RB_IO_T
-+#if !defined(OpenFile) && defined(HAVE_TYPE_RB_IO_T)
- typedef rb_io_t OpenFile;
- #endif
-
--#if defined(HAVE_TYPE_RB_IO_T) || defined(HAVE_ST_FD)
-+#if (!defined(OpenFile) && defined(HAVE_TYPE_RB_IO_T)) || defined(HAVE_ST_FD)
- # define FILENO(fptr) (fptr->fd)
- #else
- # define FILENO(fptr) fileno(fptr->f)
-@@ -229,7 +229,7 @@ termios_tcsetattr(io, opt, param)
- Check_Type(io, T_FILE);
- Check_Type(opt, T_FIXNUM);
- if (CLASS_OF(param) != cTermios) {
-- char *type = rb_class2name(CLASS_OF(param));
-+ const char *type = rb_class2name(CLASS_OF(param));
- rb_raise(rb_eTypeError,
- "wrong argument type %s (expected Termios::Termios)",
- type);
diff --git a/comms/ruby-termios/patches/patch-ab b/comms/ruby-termios/patches/patch-ab
deleted file mode 100644
index ccc9c44dc1f..00000000000
--- a/comms/ruby-termios/patches/patch-ab
+++ /dev/null
@@ -1,12 +0,0 @@
-$NetBSD: patch-ab,v 1.1 2008/06/21 03:58:51 taca Exp $
-
---- ../ruby-termios-0.9.5.gemspec.orig 2008-06-21 11:53:40.000000000 +0900
-+++ ../ruby-termios-0.9.5.gemspec
-@@ -21,6 +21,6 @@ spec = Gem::Specification.new do |s|
- s.autorequire = PLUGIN
- s.require_paths = ["lib"]
- s.extra_rdoc_files = ["README", "termios.rd"]
-- s.files = Dir.glob("[A-Z]*") + Dir.glob("*.rb") + Dir.glob("termios.*") + Dir.glob("{test,examples}/**/*")
-+ s.files = Dir.glob("[A-Z]*") + Dir.glob("*.rb") + Dir.glob("*.c") + Dir.glob("{test,examples}/**/*")
- s.extensions = "extconf.rb"
- end