pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/ruby-curses Initial import of ruby-curses packag...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f3522d8c0a69
branches:  trunk
changeset: 484427:f3522d8c0a69
user:      taca <taca%pkgsrc.org@localhost>
date:      Sat Nov 27 14:35:15 2004 +0000

description:
Initial import of ruby-curses package.  This is separated from original
Ruby 1.8.1 distribution because of (possible) dependency to external package.

diffstat:

 devel/ruby-curses/DESCR            |   2 ++
 devel/ruby-curses/Makefile         |  32 ++++++++++++++++++++++++++++++++
 devel/ruby-curses/PLIST            |   7 +++++++
 devel/ruby-curses/distinfo         |   5 +++++
 devel/ruby-curses/patches/patch-aa |  20 ++++++++++++++++++++
 5 files changed, 66 insertions(+), 0 deletions(-)

diffs (86 lines):

diff -r b48cfa069642 -r f3522d8c0a69 devel/ruby-curses/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ruby-curses/DESCR   Sat Nov 27 14:35:15 2004 +0000
@@ -0,0 +1,2 @@
+This is a Ruby extension to the curses library, actually a part of the
+Ruby distribution.
diff -r b48cfa069642 -r f3522d8c0a69 devel/ruby-curses/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ruby-curses/Makefile        Sat Nov 27 14:35:15 2004 +0000
@@ -0,0 +1,32 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/11/27 14:35:15 taca Exp $
+#
+
+DISTNAME=              ${RUBY_DISTNAME}
+PKGNAME=               ${RUBY_PKGPREFIX}-curses-${RUBY_VERSION}
+PKGREVISION=
+CATEGORIES=            devel ruby
+MASTER_SITES=          ${MASTER_SITE_RUBY}
+
+MAINTAINER=            taca%NetBSD.org@localhost
+HOMEPAGE=              ${RUBY_HOMEPAGE}
+COMMENT=               Ruby extension to curses library
+
+RUBY_VERSION_SUPPORTED=        18
+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 view2.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 b48cfa069642 -r f3522d8c0a69 devel/ruby-curses/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ruby-curses/PLIST   Sat Nov 27 14:35:15 2004 +0000
@@ -0,0 +1,7 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/11/27 14:35:15 taca Exp $
+${RUBY_SITEARCHLIBDIR}/curses.so
+${RUBY_EXAMPLESDIR}/curses/hello.rb
+${RUBY_EXAMPLESDIR}/curses/rain.rb
+${RUBY_EXAMPLESDIR}/curses/view.rb
+${RUBY_EXAMPLESDIR}/curses/view2.rb
+@dirrm ${RUBY_EXAMPLESDIR}/curses
diff -r b48cfa069642 -r f3522d8c0a69 devel/ruby-curses/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ruby-curses/distinfo        Sat Nov 27 14:35:15 2004 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/11/27 14:35:15 taca Exp $
+
+SHA1 (ruby/ruby-1.8.1.tar.gz) = 894cb1e7624b74e699d127344ce5600fc3a7d515
+Size (ruby/ruby-1.8.1.tar.gz) = 2671875 bytes
+SHA1 (patch-aa) = 8c98c46b88e90f70b171d9e909653239ff9fe68e
diff -r b48cfa069642 -r f3522d8c0a69 devel/ruby-curses/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ruby-curses/patches/patch-aa        Sat Nov 27 14:35:15 2004 +0000
@@ -0,0 +1,20 @@
+$NetBSD: patch-aa,v 1.1.1.1 2004/11/27 14:35:15 taca Exp $
+
+--- extconf.rb.orig    2003-12-16 16:47:58.000000000 +0900
++++ extconf.rb
+@@ -7,14 +7,7 @@ dir_config('termcap')
+ make=false
+ have_library("mytinfo", "tgetent") if /bow/ =~ RUBY_PLATFORM
+ have_library("tinfo", "tgetent") or have_library("termcap", "tgetent")
+-if have_header(*curses=%w"ncurses.h") and have_library("ncurses", "initscr")
+-  make=true
+-elsif have_header(*curses=%w"ncurses/curses.h") and have_library("ncurses", "initscr")
+-  make=true
+-elsif have_header(*curses=%w"curses_colr/curses.h") and have_library("cur_colr", "initscr")
+-  curses.unshift("varargs.h")
+-  make=true
+-elsif have_header(*curses=%w"curses.h") and have_library("curses", "initscr")
++if have_header(*curses=%w"curses.h") and have_library("curses", "initscr")
+   make=true
+ end
+ 



Home | Main Index | Thread Index | Old Index