summaryrefslogtreecommitdiff
path: root/devel/ruby-posix-spawn
diff options
context:
space:
mode:
authorminskim <minskim>2011-08-21 04:57:36 +0000
committerminskim <minskim>2011-08-21 04:57:36 +0000
commit08d69566515f9ecf1f0513f48fe55de307901f55 (patch)
tree4f0741750a2f26306e3df7e2010d0bfafc6c3175 /devel/ruby-posix-spawn
parent1375dcc02881c5f31d2cb190b570a5f9e146350b (diff)
downloadpkgsrc-08d69566515f9ecf1f0513f48fe55de307901f55.tar.gz
Import ruby19-posix-spawn-0.3.6 as devel/ruby-posix-spawn.
fork(2) calls slow down as the parent process uses more memory due to the need to copy page tables. In many common uses of fork(), where it is followed by one of the exec family of functions to spawn child processes (Kernel#system, IO::popen, Process::spawn, etc.), it's possible to remove this overhead by using the use of special process spawning interfaces (posix_spawn(), vfork(), etc.) The posix-spawn library aims to implement a subset of the Ruby 1.9 Process::spawn interface in a way that takes advantage of fast process spawning interfaces when available and provides sane fallbacks on systems that do not.
Diffstat (limited to 'devel/ruby-posix-spawn')
-rw-r--r--devel/ruby-posix-spawn/DESCR11
-rw-r--r--devel/ruby-posix-spawn/Makefile13
-rw-r--r--devel/ruby-posix-spawn/PLIST25
-rw-r--r--devel/ruby-posix-spawn/distinfo5
4 files changed, 54 insertions, 0 deletions
diff --git a/devel/ruby-posix-spawn/DESCR b/devel/ruby-posix-spawn/DESCR
new file mode 100644
index 00000000000..26171a60ecf
--- /dev/null
+++ b/devel/ruby-posix-spawn/DESCR
@@ -0,0 +1,11 @@
+fork(2) calls slow down as the parent process uses more memory due to
+the need to copy page tables. In many common uses of fork(), where it
+is followed by one of the exec family of functions to spawn child
+processes (Kernel#system, IO::popen, Process::spawn, etc.), it's
+possible to remove this overhead by using the use of special process
+spawning interfaces (posix_spawn(), vfork(), etc.)
+
+The posix-spawn library aims to implement a subset of the Ruby 1.9
+Process::spawn interface in a way that takes advantage of fast process
+spawning interfaces when available and provides sane fallbacks on
+systems that do not.
diff --git a/devel/ruby-posix-spawn/Makefile b/devel/ruby-posix-spawn/Makefile
new file mode 100644
index 00000000000..0d1665608be
--- /dev/null
+++ b/devel/ruby-posix-spawn/Makefile
@@ -0,0 +1,13 @@
+# $NetBSD: Makefile,v 1.1.1.1 2011/08/21 04:57:36 minskim Exp $
+
+DISTNAME= posix-spawn-0.3.6
+CATEGORIES= textproc
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= https://github.com/github/albino
+COMMENT= Ruby wrapper for the Pygments syntax highlighter
+
+LICENSE= mit
+
+.include "../../lang/ruby/gem.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/ruby-posix-spawn/PLIST b/devel/ruby-posix-spawn/PLIST
new file mode 100644
index 00000000000..48fb1806430
--- /dev/null
+++ b/devel/ruby-posix-spawn/PLIST
@@ -0,0 +1,25 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2011/08/21 04:57:36 minskim Exp $
+bin/posix-spawn-benchmark
+${GEM_HOME}/cache/${GEM_NAME}.gem
+${GEM_LIBDIR}/.gitignore
+${GEM_LIBDIR}/COPYING
+${GEM_LIBDIR}/Gemfile
+${GEM_LIBDIR}/HACKING
+${GEM_LIBDIR}/README.md
+${GEM_LIBDIR}/Rakefile
+${GEM_LIBDIR}/TODO
+${GEM_LIBDIR}/bin/posix-spawn-benchmark
+${GEM_LIBDIR}/ext/extconf.rb
+${GEM_LIBDIR}/ext/posix-spawn.c
+${GEM_LIBDIR}/lib/posix-spawn.rb
+${GEM_LIBDIR}/lib/posix/spawn.rb
+${GEM_LIBDIR}/lib/posix/spawn/child.rb
+${GEM_LIBDIR}/lib/posix/spawn/version.rb
+${GEM_LIBDIR}/lib/posix_spawn_ext.${RUBY_DLEXT}
+${GEM_LIBDIR}/posix-spawn.gemspec
+${GEM_LIBDIR}/test/test_backtick.rb
+${GEM_LIBDIR}/test/test_child.rb
+${GEM_LIBDIR}/test/test_popen.rb
+${GEM_LIBDIR}/test/test_spawn.rb
+${GEM_LIBDIR}/test/test_system.rb
+${GEM_HOME}/specifications/${GEM_NAME}.gemspec
diff --git a/devel/ruby-posix-spawn/distinfo b/devel/ruby-posix-spawn/distinfo
new file mode 100644
index 00000000000..948132c40e7
--- /dev/null
+++ b/devel/ruby-posix-spawn/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2011/08/21 04:57:36 minskim Exp $
+
+SHA1 (posix-spawn-0.3.6.gem) = 36025fd942b93910ab2a043e2561b2660f64c3cc
+RMD160 (posix-spawn-0.3.6.gem) = 36e583d222fe6b5cad9256033d955f95aa845248
+Size (posix-spawn-0.3.6.gem) = 25600 bytes