diff options
author | taca <taca@pkgsrc.org> | 2004-11-27 14:35:15 +0000 |
---|---|---|
committer | taca <taca@pkgsrc.org> | 2004-11-27 14:35:15 +0000 |
commit | a032a04af6377a203ef3594bfa0a058428e1fcb5 (patch) | |
tree | 15aa38ff82228d5b1edc1e0ff3b58c5eea9bffbc /devel | |
parent | 12a1ab560433de382903167edcde960541c3f6c6 (diff) | |
download | pkgsrc-a032a04af6377a203ef3594bfa0a058428e1fcb5.tar.gz |
Initial import of ruby-curses package. This is separated from original
Ruby 1.8.1 distribution because of (possible) dependency to external package.
Diffstat (limited to 'devel')
-rw-r--r-- | devel/ruby-curses/DESCR | 2 | ||||
-rw-r--r-- | devel/ruby-curses/Makefile | 32 | ||||
-rw-r--r-- | devel/ruby-curses/PLIST | 7 | ||||
-rw-r--r-- | devel/ruby-curses/distinfo | 5 | ||||
-rw-r--r-- | devel/ruby-curses/patches/patch-aa | 20 |
5 files changed, 66 insertions, 0 deletions
diff --git a/devel/ruby-curses/DESCR b/devel/ruby-curses/DESCR new file mode 100644 index 00000000000..f4db9a24c81 --- /dev/null +++ b/devel/ruby-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/ruby-curses/Makefile b/devel/ruby-curses/Makefile new file mode 100644 index 00000000000..ee6f7762c39 --- /dev/null +++ b/devel/ruby-curses/Makefile @@ -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 +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 --git a/devel/ruby-curses/PLIST b/devel/ruby-curses/PLIST new file mode 100644 index 00000000000..910648a3430 --- /dev/null +++ b/devel/ruby-curses/PLIST @@ -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 --git a/devel/ruby-curses/distinfo b/devel/ruby-curses/distinfo new file mode 100644 index 00000000000..f1f94c0be4f --- /dev/null +++ b/devel/ruby-curses/distinfo @@ -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 --git a/devel/ruby-curses/patches/patch-aa b/devel/ruby-curses/patches/patch-aa new file mode 100644 index 00000000000..12e31fa4c53 --- /dev/null +++ b/devel/ruby-curses/patches/patch-aa @@ -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 + |