From 7d7aeb70c7654ad9785ca3577a290eb22ae06030 Mon Sep 17 00:00:00 2001 From: sakamoto Date: Tue, 11 Apr 2000 07:35:15 +0000 Subject: Remove redundant dependency on ncurses. Fixes pkg/9793 by itojun@itojun.org. --- lang/ruby/Makefile | 3 +-- lang/ruby/patches/patch-af | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 lang/ruby/patches/patch-af diff --git a/lang/ruby/Makefile b/lang/ruby/Makefile index 76d8434082a..38d9f34fa24 100644 --- a/lang/ruby/Makefile +++ b/lang/ruby/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.10 2000/02/02 04:07:36 wiz Exp $ +# $NetBSD: Makefile,v 1.11 2000/04/11 07:35:15 sakamoto Exp $ # DISTNAME= ruby-1.4.3 @@ -16,7 +16,6 @@ HOMEPAGE= http://www.ruby-lang.org/ BUILD_DEPENDS= ${LOCALBASE}/bin/bison:../../devel/bison DEPENDS+= gdbm-1.7.3:../../databases/gdbm -DEPENDS+= ncurses>=4.2:../../devel/ncurses DEPENDS+= readline-4.0:../../devel/readline BUILD_DEFS+= USE_INET6 diff --git a/lang/ruby/patches/patch-af b/lang/ruby/patches/patch-af new file mode 100644 index 00000000000..01e2b29d85f --- /dev/null +++ b/lang/ruby/patches/patch-af @@ -0,0 +1,22 @@ +$NetBSD: patch-af,v 1.1 2000/04/11 07:35:16 sakamoto Exp $ + +--- ext/curses/extconf.rb.orig Tue Oct 12 18:11:25 1999 ++++ ext/curses/extconf.rb Tue Apr 11 14:53:51 2000 +@@ -3,15 +3,7 @@ + make=false + have_library("mytinfo", "tgetent") if /bow/ =~ PLATFORM +-if have_header("ncurses.h") and have_library("ncurses", "initscr") ++have_library("termcap", "tgetent") ++if 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_library("curses", "initscr") +- make=true +- end + end + -- cgit v1.2.3