diff options
author | knu <knu@FreeBSD.org> | 2002-02-13 12:49:07 +0800 |
---|---|---|
committer | knu <knu@FreeBSD.org> | 2002-02-13 12:49:07 +0800 |
commit | d58a13765231bbdd8934f6904d49e9bce39cfed6 (patch) | |
tree | 24c1dba8e46cbfc45890c30a1f3d7e9ea3ea6728 | |
parent | 5f5f02112f9b20eda7b9fe2381976a5027569a4f (diff) | |
download | freebsd-ports-graphics-d58a13765231bbdd8934f6904d49e9bce39cfed6.tar.gz freebsd-ports-graphics-d58a13765231bbdd8934f6904d49e9bce39cfed6.tar.zst freebsd-ports-graphics-d58a13765231bbdd8934f6904d49e9bce39cfed6.zip |
Update to 0.3 and make this module really work. Try the newly added
examples and enjoy.
-rw-r--r-- | devel/ruby-ncurses/Makefile | 6 | ||||
-rw-r--r-- | devel/ruby-ncurses/distinfo | 2 | ||||
-rw-r--r-- | devel/ruby-ncurses/files/patch-extconf.rb | 27 | ||||
-rw-r--r-- | devel/ruby-ncurses/pkg-plist | 5 |
4 files changed, 37 insertions, 3 deletions
diff --git a/devel/ruby-ncurses/Makefile b/devel/ruby-ncurses/Makefile index 6c89b4f1090..ec4f07d1346 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 <bsd.port.mk> diff --git a/devel/ruby-ncurses/distinfo b/devel/ruby-ncurses/distinfo index f8dc50af051..2e47b3ffc67 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 00000000000..0b04b1d52ea --- /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 401432b406d..6dd929a4595 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 |