pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/ruby16-curses Initial import of ruby-curses pack...
details: https://anonhg.NetBSD.org/pkgsrc/rev/cf0433984a8b
branches: trunk
changeset: 484428:cf0433984a8b
user: taca <taca%pkgsrc.org@localhost>
date: Sat Nov 27 14:35:59 2004 +0000
description:
Initial import of ruby-curses package. This is separated from original
Ruby 1.6.8 distribution because of (possible) dependency to external package.
diffstat:
devel/ruby16-curses/DESCR | 2 ++
devel/ruby16-curses/Makefile | 31 +++++++++++++++++++++++++++++++
devel/ruby16-curses/PLIST | 6 ++++++
devel/ruby16-curses/distinfo | 5 +++++
devel/ruby16-curses/patches/patch-aa | 24 ++++++++++++++++++++++++
5 files changed, 68 insertions(+), 0 deletions(-)
diffs (88 lines):
diff -r f3522d8c0a69 -r cf0433984a8b devel/ruby16-curses/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ruby16-curses/DESCR Sat Nov 27 14:35:59 2004 +0000
@@ -0,0 +1,2 @@
+This is a Ruby extension to the curses library, actually a part of the
+Ruby distribution.
diff -r f3522d8c0a69 -r cf0433984a8b devel/ruby16-curses/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ruby16-curses/Makefile Sat Nov 27 14:35:59 2004 +0000
@@ -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@localhost
+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 -r f3522d8c0a69 -r cf0433984a8b devel/ruby16-curses/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ruby16-curses/PLIST Sat Nov 27 14:35:59 2004 +0000
@@ -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 -r f3522d8c0a69 -r cf0433984a8b devel/ruby16-curses/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ruby16-curses/distinfo Sat Nov 27 14:35:59 2004 +0000
@@ -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 -r f3522d8c0a69 -r cf0433984a8b devel/ruby16-curses/patches/patch-aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ruby16-curses/patches/patch-aa Sat Nov 27 14:35:59 2004 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index