summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authortaca <taca@pkgsrc.org>2004-11-27 14:35:59 +0000
committertaca <taca@pkgsrc.org>2004-11-27 14:35:59 +0000
commitaf17dc50e561fde705de4814071f2b48dcde4d6f (patch)
tree21c527cd0044e7926f7f68fe74b367c587f9ab9f /devel
parenta032a04af6377a203ef3594bfa0a058428e1fcb5 (diff)
downloadpkgsrc-af17dc50e561fde705de4814071f2b48dcde4d6f.tar.gz
Initial import of ruby-curses package. This is separated from original
Ruby 1.6.8 distribution because of (possible) dependency to external package.
Diffstat (limited to 'devel')
-rw-r--r--devel/ruby16-curses/DESCR2
-rw-r--r--devel/ruby16-curses/Makefile31
-rw-r--r--devel/ruby16-curses/PLIST6
-rw-r--r--devel/ruby16-curses/distinfo5
-rw-r--r--devel/ruby16-curses/patches/patch-aa24
5 files changed, 68 insertions, 0 deletions
diff --git a/devel/ruby16-curses/DESCR b/devel/ruby16-curses/DESCR
new file mode 100644
index 00000000000..f4db9a24c81
--- /dev/null
+++ b/devel/ruby16-curses/DESCR
@@ -0,0 +1,2 @@
+This is a Ruby extension to the curses library, actually a part of the
+Ruby distribution.
diff --git a/devel/ruby16-curses/Makefile b/devel/ruby16-curses/Makefile
new file mode 100644
index 00000000000..90183259bea
--- /dev/null
+++ b/devel/ruby16-curses/Makefile
@@ -0,0 +1,31 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/11/27 14:35:59 taca Exp $
+#
+
+DISTNAME= ${RUBY_DISTNAME}
+PKGNAME= ${RUBY_PKGPREFIX}-curses-${RUBY_VERSION}
+CATEGORIES= devel ruby
+MASTER_SITES= ${MASTER_SITE_RUBY}
+
+MAINTAINER= taca@NetBSD.org
+HOMEPAGE= ${RUBY_HOMEPAGE}
+COMMENT= Ruby extension to curses library
+
+RUBY_VERSION= ${RUBY16_VERSION}
+USE_BUILDLINK3= yes
+USE_RUBY_EXTCONF= yes
+EXTRACT_ELEMENTS= ${RUBY_DISTNAME}/ext/curses
+WRKSRC= ${RUBY_WRKSRC}/ext/curses
+
+CURSES_EXAMPLES= hello.rb rain.rb view.rb
+REPLACE_RUBY= ${CURSES_EXAMPLES}
+
+post-install:
+ ${INSTALL_DATA_DIR} ${RUBY_EXAMPLESDIR}/curses
+.for f in ${CURSES_EXAMPLES}
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_EXAMPLESDIR}/curses
+.endfor
+
+.include "../../lang/ruby/modules.mk"
+.include "../../lang/ruby/Makefile.common"
+.include "../../devel/ncurses/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/ruby16-curses/PLIST b/devel/ruby16-curses/PLIST
new file mode 100644
index 00000000000..721587b8c6c
--- /dev/null
+++ b/devel/ruby16-curses/PLIST
@@ -0,0 +1,6 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/11/27 14:35:59 taca Exp $
+${RUBY_SITEARCHLIBDIR}/curses.so
+${RUBY_EXAMPLESDIR}/curses/hello.rb
+${RUBY_EXAMPLESDIR}/curses/rain.rb
+${RUBY_EXAMPLESDIR}/curses/view.rb
+@dirrm ${RUBY_EXAMPLESDIR}/curses
diff --git a/devel/ruby16-curses/distinfo b/devel/ruby16-curses/distinfo
new file mode 100644
index 00000000000..bc5cd45a006
--- /dev/null
+++ b/devel/ruby16-curses/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/11/27 14:35:59 taca Exp $
+
+SHA1 (ruby/ruby-1.6.8.tar.gz) = 4b475ac1c837cd62b6dfe85359e1502a71b08cd1
+Size (ruby/ruby-1.6.8.tar.gz) = 1023403 bytes
+SHA1 (patch-aa) = e9a73676e774b848c0d600cbc6aad96a4eeef892
diff --git a/devel/ruby16-curses/patches/patch-aa b/devel/ruby16-curses/patches/patch-aa
new file mode 100644
index 00000000000..41ef553882e
--- /dev/null
+++ b/devel/ruby16-curses/patches/patch-aa
@@ -0,0 +1,24 @@
+$NetBSD: patch-aa,v 1.1.1.1 2004/11/27 14:35:59 taca Exp $
+
+--- extconf.rb.orig 2001-12-03 19:04:46.000000000 +0900
++++ extconf.rb
+@@ -6,17 +6,9 @@ dir_config('termcap')
+
+ make=false
+ have_library("mytinfo", "tgetent") if /bow/ =~ RUBY_PLATFORM
+-if have_header("ncurses.h") and have_library("ncurses", "initscr")
++have_library("termcap", "tgetent")
++if have_header("curses.h") and have_library("curses", "initscr")
+ make=true
+-elsif have_header("ncurses/curses.h") and have_library("ncurses", "initscr")
+- make=true
+-elsif have_header("curses_colr/curses.h") and have_library("cur_colr", "initscr")
+- make=true
+-else
+- have_library("termcap", "tgetent")
+- if have_header("curses.h") and have_library("curses", "initscr")
+- make=true
+- end
+ end
+
+ if make