From 1bd1769c7a9abd173e75a7aade106dddcf968b51 Mon Sep 17 00:00:00 2001 From: Akinori MUSHA Date: Wed, 13 Feb 2002 04:49:07 +0000 Subject: Update to 0.3 and make this module really work. Try the newly added examples and enjoy. --- devel/ruby-ncurses/Makefile | 6 ++++-- devel/ruby-ncurses/distinfo | 2 +- devel/ruby-ncurses/files/patch-extconf.rb | 27 +++++++++++++++++++++++++++ devel/ruby-ncurses/pkg-plist | 5 +++++ 4 files changed, 37 insertions(+), 3 deletions(-) create mode 100644 devel/ruby-ncurses/files/patch-extconf.rb (limited to 'devel') diff --git a/devel/ruby-ncurses/Makefile b/devel/ruby-ncurses/Makefile index 6c89b4f10904..ec4f07d13463 100644 --- a/devel/ruby-ncurses/Makefile +++ b/devel/ruby-ncurses/Makefile @@ -6,12 +6,11 @@ # PORTNAME= ncurses -PORTVERSION= 0.1 +PORTVERSION= 0.3 CATEGORIES= devel ruby MASTER_SITES= http://download.berlios.de/ncurses-ruby/ PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX} DISTNAME= ${PORTNAME}-ruby-${PORTVERSION} -EXTRACT_SUFX= .tar.bz DIST_SUBDIR= ruby MAINTAINER= knu@FreeBSD.org @@ -21,6 +20,7 @@ USE_BZIP2= yes USE_RUBY= yes USE_RUBY_EXTCONF= yes +MAKE_ARGS= LOCAL_LIBS=-lgcc INSTALL_TARGET= site-install DOCS= README TODO @@ -35,6 +35,8 @@ post-install: .for f in ${DOCS} ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/${PORTNAME}/ .endfor + ${MKDIR} ${RUBY_EXAMPLESDIR}/${PORTNAME} + ${INSTALL_DATA} ${WRKSRC}/examples/* ${RUBY_EXAMPLESDIR}/${PORTNAME}/ .endif .include diff --git a/devel/ruby-ncurses/distinfo b/devel/ruby-ncurses/distinfo index f8dc50af0513..2e47b3ffc67d 100644 --- a/devel/ruby-ncurses/distinfo +++ b/devel/ruby-ncurses/distinfo @@ -1 +1 @@ -MD5 (ruby/ncurses-ruby-0.1.tar.bz) = 26af561aee73eba42c59abd31d1d7d48 +MD5 (ruby/ncurses-ruby-0.3.tar.bz2) = eb4bb76463a929f72ee607c66fde8a43 diff --git a/devel/ruby-ncurses/files/patch-extconf.rb b/devel/ruby-ncurses/files/patch-extconf.rb new file mode 100644 index 000000000000..0b04b1d52ea0 --- /dev/null +++ b/devel/ruby-ncurses/files/patch-extconf.rb @@ -0,0 +1,27 @@ +--- extconf.rb.orig Tue Feb 12 18:37:54 2002 ++++ extconf.rb Wed Feb 13 13:46:12 2002 +@@ -7,2 +7,4 @@ + ++have_library("stdc++", "cerr") ++ + have_header("unistd.h") +@@ -38,19 +40 @@ + create_makefile('ncurses') +- +-makefile = IO.readlines("Makefile").collect{|line| +- line.chomp! +- line.gsub("gcc", "g++") +-} +- +-line_no = makefile.index(makefile.grep(/^install:/)[0]) +- +-makefile[line_no] += " $(rubylibdir)$(target_prefix)/ncurses.rb\n" + +- "$(rubylibdir)$(target_prefix)/ncurses.rb: ncurses.rb \n" + +- "\tif test -e $(sitelibdir)$(target_prefix)/ncurses.rb; then echo This file is probably a leftover from ncurses-ruby-0.1; rm -i $(sitelibdir)$(target_prefix)/ncurses.rb; fi\n" + +- "\t@$(RUBY) -r ftools -e 'File::install(ARGV[0], ARGV[1], 0644, true)' " + +- " ncurses.rb $(rubylibdir)$(target_prefix)/ncurses.rb" +- +- +-File.open("Makefile", "w") {|f| +- f.puts(makefile) +-} diff --git a/devel/ruby-ncurses/pkg-plist b/devel/ruby-ncurses/pkg-plist index 401432b406d2..6dd929a45951 100644 --- a/devel/ruby-ncurses/pkg-plist +++ b/devel/ruby-ncurses/pkg-plist @@ -3,3 +3,8 @@ %%PORTDOCS%%%%RUBY_DOCDIR%%/ncurses/README %%PORTDOCS%%%%RUBY_DOCDIR%%/ncurses/TODO %%PORTDOCS%%@dirrm %%RUBY_DOCDIR%%/ncurses +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/ncurses/LICENSES_for_examples +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/ncurses/example.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/ncurses/hello_ncurses.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/ncurses/rain.rb +%%PORTDOCS%%@dirrm %%RUBY_EXAMPLESDIR%%/ncurses -- cgit