summaryrefslogtreecommitdiff
path: root/devel/ruby-ncurses
diff options
context:
space:
mode:
authorxtraeme <xtraeme>2006-01-26 23:00:51 +0000
committerxtraeme <xtraeme>2006-01-26 23:00:51 +0000
commit65095bb4ffb1f650a8c6bace75de0e0c05494768 (patch)
treef5d9c2bec6e591e27ccf2e1cde032057757f2f14 /devel/ruby-ncurses
parent390e8166afb28418bd7b83192d8ae6ccb0810b50 (diff)
downloadpkgsrc-65095bb4ffb1f650a8c6bace75de0e0c05494768.tar.gz
Initial import of ruby-ncurses-1.0 from pkgsrc-wip, packaged by
Rasputnik. This ruby extension makes most functions, constants, and external variables of the C library ncurses accessible from the Ruby programming language. All C functions are wrapped by module functions of a the module "Ncurses", with exactly the same name. Additionally, C functions expecting a WINDOW* as their first argument can also be called as methods of the "Ncurses::WINDOW" class. The panel library (for support of overlapping windows) is also wrapped, in the module "Ncurses::Panel".
Diffstat (limited to 'devel/ruby-ncurses')
-rw-r--r--devel/ruby-ncurses/DESCR11
-rw-r--r--devel/ruby-ncurses/Makefile30
-rw-r--r--devel/ruby-ncurses/PLIST10
-rw-r--r--devel/ruby-ncurses/distinfo5
4 files changed, 56 insertions, 0 deletions
diff --git a/devel/ruby-ncurses/DESCR b/devel/ruby-ncurses/DESCR
new file mode 100644
index 00000000000..6090743d79d
--- /dev/null
+++ b/devel/ruby-ncurses/DESCR
@@ -0,0 +1,11 @@
+This ruby extension makes most functions, constants, and external
+variables of the C library ncurses accessible from the Ruby
+programming language.
+
+All C functions are wrapped by module functions of a the module
+"Ncurses", with exactly the same name. Additionally, C functions
+expecting a WINDOW* as their first argument can also be called
+as methods of the "Ncurses::WINDOW" class.
+
+The panel library (for support of overlapping windows) is also
+wrapped, in the module "Ncurses::Panel".
diff --git a/devel/ruby-ncurses/Makefile b/devel/ruby-ncurses/Makefile
new file mode 100644
index 00000000000..5cacccffc02
--- /dev/null
+++ b/devel/ruby-ncurses/Makefile
@@ -0,0 +1,30 @@
+# $NetBSD: Makefile,v 1.1.1.1 2006/01/26 23:00:51 xtraeme Exp $
+
+DISTNAME= ncurses-ruby-1.0
+PKGNAME= ${DISTNAME:S/ncurses-ruby/${RUBY_PKGPREFIX}-ncurses/}
+CATEGORIES= devel
+MASTER_SITES= http://download.berlios.de/ncurses-ruby/
+EXTRACT_SUFX= .tar.bz2
+
+MAINTAINER= rasputnik@hellooperator.net
+HOMEPAGE= http://ncurses-ruby.berlios.de/
+COMMENT= Ruby interface to ncurses
+
+USE_RUBY_EXTCONF= yes
+USE_NCURSES= # mouse functions
+
+EXAMPLES= example.rb hello_ncurses.rb rain.rb read_line.rb \
+ tclock.rb test_scanw.rb
+.for f in ${EXAMPLES}
+REPLACE_RUBY+= sample/$f
+.endfor
+
+post-install:
+ ${INSTALL_DATA_DIR} ${RUBY_EXAMPLESDIR}/ncurses
+.for f in ${EXAMPLES}
+ ${INSTALL_DATA} ${WRKSRC}/examples/$f ${RUBY_EXAMPLESDIR}/ncurses
+.endfor
+
+.include "../../devel/ncurses/buildlink3.mk"
+.include "../../lang/ruby/modules.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/ruby-ncurses/PLIST b/devel/ruby-ncurses/PLIST
new file mode 100644
index 00000000000..9d623f6ebdf
--- /dev/null
+++ b/devel/ruby-ncurses/PLIST
@@ -0,0 +1,10 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2006/01/26 23:00:51 xtraeme Exp $
+${RUBY_SITEARCHLIBDIR}/ncurses_bin.${RUBY_DLEXT}
+${RUBY_SITELIBDIR}/ncurses.rb
+${RUBY_EXAMPLESDIR}/ncurses/example.rb
+${RUBY_EXAMPLESDIR}/ncurses/hello_ncurses.rb
+${RUBY_EXAMPLESDIR}/ncurses/rain.rb
+${RUBY_EXAMPLESDIR}/ncurses/read_line.rb
+${RUBY_EXAMPLESDIR}/ncurses/tclock.rb
+${RUBY_EXAMPLESDIR}/ncurses/test_scanw.rb
+@dirrm ${RUBY_EXAMPLESDIR}/ncurses
diff --git a/devel/ruby-ncurses/distinfo b/devel/ruby-ncurses/distinfo
new file mode 100644
index 00000000000..8183d66e6ce
--- /dev/null
+++ b/devel/ruby-ncurses/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2006/01/26 23:00:51 xtraeme Exp $
+
+SHA1 (ncurses-ruby-1.0.tar.bz2) = 99c42b2bb0a8fc096e4bc5f7f2ffdac81fe664ab
+RMD160 (ncurses-ruby-1.0.tar.bz2) = 17102c384ca44c21f5be8ca71a2ba558bd17a423
+Size (ncurses-ruby-1.0.tar.bz2) = 46328 bytes