1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134
|
From: Masahiro TANAKA <masa16.tanaka@gmail.com>
Date: Tue, 5 Mar 2013 18:48:57 +0900
Subject: rm extconf-auto.rb
---
ext/extconf-auto.rb | 89 -----------------------------------------------------
pgplot.gemspec | 4 +--
2 files changed, 1 insertion(+), 92 deletions(-)
delete mode 100644 ext/extconf-auto.rb
diff --git a/ext/extconf-auto.rb b/ext/extconf-auto.rb
deleted file mode 100644
index 5891862..0000000
--- a/ext/extconf-auto.rb
+++ /dev/null
@@ -1,89 +0,0 @@
-# extconf.rb : Configure script for Ruby/PGPLOT
-#
-# Copyright (c) 2000,2001 Masahiro TANAKA <masa@ir.isas.ac.jp>
-#
-# This program is free software.
-# You can distribute/modify this program
-# under the same terms as Ruby itself.
-# NO WARRANTY.
-#
-# usage: ruby extconf.rb [configure options]
-
-# Narray is now Gem based, so require rubygems
-# so that we can use Gem class to find narray.
-
-load "./extconf.rb"
-
-# Exit if user did not specify "--enable-autobuild"
-if !enable_config('autobuild', false)
- # Print reminder about --enable-autobuild option if pgplot was not found
- if !$have_pgplot
- puts
- puts "The PGPLOT library was not found. To auto-build it as part of"
- puts "installing Ruby/PGLOT, pass the --enable-autobuild option."
- puts
- puts "Examples:"
- puts
- puts " Gem install: gem install pgplot -- --enable-autobuild"
- puts "Manual install: ruby extconf.rb --enable-autobuild"
- end
- exit
-end
-# Exit if pgplot library was found
-exit if $have_pgplot
-# Exit unless a fortran compiler was found
-exit unless %w[gfortran g77].any?{|cmd| system("which #{cmd}")}
-
-puts "enabling auto-build PGPLOT Library..."
-
-$subdir = 'build_lib'
-
-$CFLAGS = "-I#{$subdir}/build "+$CFLAGS
-$LDFLAGS = "-L#{$subdir}/build "+$LDFLAGS
-
-$libs = append_library($libs, "pgplot")
-$libs = append_library($libs, "cpgplot")
-$defs.push '-DPGPLOT_DIR=\\"$(PGPLOT_DIR)\\"'
-
-# Generate Makefile
-create_makefile("pgplot")
-
-# Append PGPLOT install task to Makefile
-if $makefile_created
- puts "appending extra install tasks to Makefile"
- File.open("Makefile","a") do |w|
- w.print <<EOL
-
-PGPLOT_DIR = $(RUBYARCHDIR)/pgplot
-PGPLOT_BUILD = #{$subdir}/build
-
-$(PGPLOT_BUILD)/libcpgplot.a:
- (cd #{$subdir}; make build/libcpgplot.a)
-$(PGPLOT_BUILD)/cpgplot.h: $(PGPLOT_BUILD)/libcpgplot.a
-rb_pgplot.o: $(PGPLOT_BUILD)/cpgplot.h
-$(DLLIB): $(PGPLOT_BUILD)/libcpgplot.a
-
-install: install-pgplot
-install-pgplot:
- $(MAKEDIRS) $(PGPLOT_DIR)
- $(INSTALL_DATA) $(PGPLOT_BUILD)/grfont.dat $(PGPLOT_DIR)
- $(INSTALL_DATA) $(PGPLOT_BUILD)/rgb.txt $(PGPLOT_DIR)
-EOL
- if $found_lib.include? "X11"
- w.print <<EOL
- $(INSTALL_PROG) $(PGPLOT_BUILD)/pgxwin_server $(PGPLOT_DIR)
-
-$(PGPLOT_BUILD)/pgxwin_server: $(PGPLOT_BUILD)/cpgplot.h
- (cd #{$subdir}; make build/pgxwin_server)
-$(DLLIB): $(PGPLOT_BUILD)/pgxwin_server
-EOL
- end
- end
-
- puts "creating #{$subdir}/drivers.conf"
- File.open("#{$subdir}/drivers.conf","w") do |w|
- w.puts "GIDRIV PPDRIV PSDRIV"
- w.puts "PNDRIV" if $found_lib.include? "png"
- w.puts "WDDRIV XWDRIV" if $found_lib.include? "X11"
- end
-end
diff --git a/pgplot.gemspec b/pgplot.gemspec
index d7b48ad..88f23e2 100644
--- a/pgplot.gemspec
+++ b/pgplot.gemspec
@@ -16,7 +16,7 @@ PGPLOT_GEMSPEC = Gem::Specification.new do |s|
s.date = Time.now.strftime("%F")
s.description = "PGPLOT wrapper for Ruby"
s.email = "masa16.tanaka@gmail.com"
- s.extensions = ["ext/extconf-auto.rb"]
+ s.extensions = ["ext/extconf.rb"]
s.homepage = "http://pgplot.rubyforge.org/"
s.require_paths = ["."]
s.rubyforge_project = "pgplot"
@@ -35,7 +35,6 @@ PGPLOT_GEMSPEC = Gem::Specification.new do |s|
ext/cogen.rb
ext/depend
ext/extconf.rb
- ext/extconf-auto.rb
ext/kwarg.c
ext/rb_pgplot.c.in
ext/version.h
@@ -78,7 +77,6 @@ PGPLOT_GEMSPEC = Gem::Specification.new do |s|
--exclude ext/cpgplot.h
--exclude ext/depend
--exclude ext/extconf.rb
- --exclude ext/extconf-auto.rb
--exclude ext/kwarg.c
--exclude ext/rb_pgplot.c.in
--exclude ext/version.h
|