--- eruby-1.0.5.orig/configure.rb +++ eruby-1.0.5/configure.rb @@ -59,21 +59,24 @@ end end -require 'ftools' +require 'fileutils' def AC_OUTPUT(*files) + $DEFS ||= "" if $AC_LIST_HEADER - $DEFS = "-DHAVE_CONFIG_H" + $DEFS << " -DHAVE_CONFIG_H" AC_OUTPUT_HEADER($AC_LIST_HEADER) else - $DEFS = $ac_confdefs.collect {|k, v| "-D#{k}=#{v}" }.join(" ") + $DEFS << " " + $ac_confdefs.collect {|k, v| "-D#{k}=#{v}" }.join(" ") end for file in files print "creating ", file, "\n" open(File.join($srcdir, file + ".in")) do |fin| - File.makedirs(File.dirname(file)) + FileUtils.mkdir_p(File.dirname(file)) open(file, "w") do |fout| + depend = false while line = fin.gets + depend = true if /^\#\#\# depend/ =~ line line.gsub!(/@([A-Za-z_]+)@/) do |s| name = $1 if $ac_sed.key?(name) @@ -82,6 +85,7 @@ s end end + line.gsub!(/(\s)([^\s\/]+\.[ch])/, '\1{$(srcdir)}\2') if depend && $nmake fout.print(line) end end @@ -153,13 +157,18 @@ file = File.join(dir, prog) if File.file?(file); then $ac_aux_dir = dir - $ac_install_rb = "#{file} -c" + $ac_install_rb = "$(RUBY) #{file} -c" return end end end end +begin + require "continuation" +rescue LoadError +end + def AC_PROG_INSTALL AC_MSG_CHECKING("for a BSD compatible install") $ac_cv_path_install = callcc { |c| @@ -291,6 +300,13 @@ $AR = CONFIG["AR"] $LD = "$(CC)" $RANLIB = CONFIG["RANLIB"] +$ruby = arg_config("--ruby", File.join(Config::CONFIG["bindir"], CONFIG["ruby_install_name"])) +$RUBY = ($nmake && !$configure_args.has_key?('--ruby')) ? $ruby.gsub(%r'/', '\\') : $ruby +if RUBY_VERSION < "1.8.0" + $RM = 'rm -f' +else + $RM = CONFIG["RM"] || '$(RUBY) -run -e rm -- -f' +end if not defined? CFLAGS CFLAGS = CONFIG["CFLAGS"] @@ -306,7 +322,7 @@ $LDFLAGS = "-link -incremental:no -pdb:none" end $LIBS = CONFIG["LIBS"] -$XLDFLAGS = CONFIG["XLDFLAGS"] +$XLDFLAGS = CONFIG["XLDFLAGS"].to_s $XLDFLAGS.gsub!(/-L\./, "") if /mswin32/ !~ RUBY_PLATFORM $XLDFLAGS += " -L$(libdir)" @@ -333,7 +349,7 @@ $LIBRUBY_A = CONFIG["LIBRUBY_A"] $RUBY_SO_NAME = CONFIG["RUBY_SO_NAME"] -case PLATFORM +case RUBY_PLATFORM when /-aix/ if $RUBY_SHARED $LIBRUBYARG = "-Wl,$(libdir)/" + CONFIG["LIBRUBY_SO"] @@ -349,6 +365,14 @@ end end +$COMPILE_RULES = '' +if defined?(COMPILE_RULES) + COMPILE_RULES.each do |rule| + $COMPILE_RULES << sprintf(rule, 'c', $OBJEXT) + $COMPILE_RULES << sprintf("\n\t%s\n\n", COMPILE_C) + end +end + AC_SUBST("srcdir") AC_SUBST("topdir") AC_SUBST("hdrdir") @@ -375,6 +399,8 @@ AC_SUBST("AR") AC_SUBST("LD") AC_SUBST("RANLIB") +AC_SUBST("RUBY") +AC_SUBST("RM") AC_SUBST("CFLAGS") AC_SUBST("DEFS") @@ -388,6 +414,8 @@ AC_SUBST("EXEEXT") AC_SUBST("DLEXT") +AC_SUBST("COMPILE_RULES") + AC_SUBST("RUBY_INSTALL_NAME") AC_SUBST("LIBRUBYARG") AC_SUBST("LIBRUBYARG_SHARED") @@ -431,7 +459,7 @@ $ENABLE_SHARED = false AC_ENABLE("shared") { |enableval| if enableval == "yes" - if PLATFORM =~ /-mswin32/ + if /-mswin32/ =~ RUBY_PLATFORM AC_MSG_ERROR("can't enable shared on mswin32") end $ENABLE_SHARED = true @@ -449,7 +477,7 @@ if $ENABLE_SHARED $LIBERUBY = "${LIBERUBY_SO}" $LIBERUBYARG = "-L. -leruby" - case PLATFORM + case RUBY_PLATFORM when /-sunos4/ $LIBERUBY_ALIASES = "liberuby.so.$(MAJOR).$(MINOR) liberuby.so" when /-linux/ @@ -457,7 +485,7 @@ $LIBERUBY_ALIASES = "liberuby.so.$(MAJOR).$(MINOR) liberuby.so" when /-(freebsd|netbsd)/ $LIBERUBY_SO = "liberuby.so.$(MAJOR).$(MINOR)" - if PLATFORM =~ /elf/ || PLATFORM =~ /-freebsd[3-9]/ + if /elf/ =~ RUBY_PLATFORM || /-freebsd[3-9]/ =~ RUBY_PLATFORM $LIBERUBY_SO = "liberuby.so.$(MAJOR_MINOR)" $LIBERUBY_ALIASES = "liberuby.so" else @@ -493,7 +521,7 @@ end end -if PLATFORM =~ /-mswin32/ +if /-mswin32/ =~ RUBY_PLATFORM $AR = "lib" $AROPT = "/out:$@" $LIBERUBY_A = "liberuby.lib" @@ -519,7 +547,7 @@ AC_SUBST("AROPT") $EXT_DLDFLAGS = CONFIG["DLDFLAGS"] -if $RUBY_SHARED || RUBY_PLATFORM =~ /mswin32/ +if $RUBY_SHARED || /mswin32/ =~ RUBY_PLATFORM $EXT_LIBRUBYARG = "$(LIBRUBYARG)" else $EXT_LIBRUBYARG = "" --- eruby-1.0.5.orig/debian/dirs +++ eruby-1.0.5/debian/dirs @@ -0,0 +1,2 @@ +usr/bin +usr/lib --- eruby-1.0.5.orig/debian/docs +++ eruby-1.0.5/debian/docs @@ -0,0 +1,2 @@ +README.en +README.ja --- eruby-1.0.5.orig/debian/control +++ eruby-1.0.5/debian/control @@ -0,0 +1,33 @@ +Source: eruby +Section: interpreters +Priority: optional +Maintainer: Shugo Maeda +Build-Depends: debhelper (>= 3.0.0), ruby1.8, ruby1.8-dev +Standards-Version: 3.5.8 + +Package: eruby +Architecture: any +Depends: ${shlibs:Depends} +Description: Embedded Ruby Language + eruby interprets a Ruby code embedded text file. For example, eruby + enables you to embed a Ruby code to a HTML file. + +Package: liberuby +Section: libs +Architecture: any +Depends: ${shlibs:Depends} +Description: Library for eruby + This package includes library for eruby. + eruby interprets a Ruby code embedded text file. For example, eruby + enables you to embed a Ruby code to a HTML file. + +Package: liberuby-dev +Section: libdevel +Architecture: any +Depends: liberuby (= ${Source-Version}), libc6-dev +Conflicts: eruby-dev +Replaces: eruby-dev +Description: Development files for liberuby + This package includes development files for liberuby. + eruby interprets a Ruby code embedded text file. For example, eruby + enables you to embed a Ruby code to a HTML file. --- eruby-1.0.5.orig/debian/liberuby.copyright +++ eruby-1.0.5/debian/liberuby.copyright @@ -0,0 +1,10 @@ +This package was debianized by akira yamada on +Mon, 21 Jun 1999 17:33:52 +0900. + +It was downloaded from . + +Copyright: + +liberuby is copyright ZetaBITS, Inc., and Information-technology Promotion +Agency, and Shugo Maeda, and is covered under the terms of the LGPL. See +the file /usr/share/common-licenses/LGPL for more information. --- eruby-1.0.5.orig/debian/changelog +++ eruby-1.0.5/debian/changelog @@ -0,0 +1,180 @@ +eruby (1.0.5-2) unstable; urgency=low + + * Fixes for Ruby 1.8.7. + + -- Shugo Maeda Tue, 22 Jul 2008 14:35:43 +0000 + +eruby (1.0.5-1) unstable; urgency=low + + * Upgraded to new upstream version. + + -- Shugo Maeda Wed, 24 Dec 2003 00:30:23 +0900 + +eruby (1.0.4-2) unstable; urgency=low + + * Use ruby1.8 instead of ruby. Thanks, Roland Stigge. + Closes: #209206. + * Added description to liberuby. Closes: #209897. + * Added description to liberuby-dev. Closes: #209872. + + -- Shugo Maeda Tue, 23 Sep 2003 20:26:34 +0900 + +eruby (1.0.4-1) unstable; urgency=low + + * Upgraded to new upstream version. + * Built with ruby1.8. + + -- Shugo Maeda Mon, 8 Sep 2003 17:02:56 +0900 + +eruby (1.0.3-1) unstable; urgency=low + + * Upgraded to new upstream version. + + -- Shugo Maeda Wed, 19 Feb 2003 12:05:24 +0900 + +eruby (1.0.2-1) unstable; urgency=low + + * Upgraded to new upstream version. + * Linked eruby with liberuby.so.1.0. Closes: #178140. + + -- Shugo Maeda Fri, 24 Jan 2003 12:26:28 +0900 + +eruby (1.0.1-1) unstable; urgency=low + + * Upgraded to new upstream version. + + -- Shugo Maeda Fri, 17 Jan 2003 14:23:20 +0900 + +eruby (0.9.8-1) unstable; urgency=low + + * Upgraded to new upstream version. + + * Closes: #133161 (forgot to close). + + -- Shugo Maeda Tue, 7 May 2002 14:06:14 +0900 + +eruby (0.9.7-2) unstable; urgency=low + + * Makefile.in: added datadir for ruby 1.6.6. Closes: #70367. + + -- Shugo Maeda Fri, 15 Feb 2002 15:59:31 +0900 + +eruby (0.9.7-1) unstable; urgency=low + + * Upgraded to new upstream version. + + -- Shugo Maeda Mon, 22 Oct 2001 14:30:27 +0900 + +eruby (0.9.6-1) unstable; urgency=low + + * Upgraded to new upstream version. + + -- Shugo Maeda Mon, 6 Aug 2001 19:03:52 +0900 + +eruby (0.9.5-1) unstable; urgency=low + + * Upgraded to new upstream version. + + -- Shugo Maeda Wed, 20 Jun 2001 18:32:27 +0900 + +eruby (0.9.4-1) unstable; urgency=low + + * Upgraded to new upstream version. + + -- Shugo Maeda Thu, 7 Jun 2001 18:02:42 +0900 + +eruby (0.9.3-1) unstable; urgency=low + + * Upgraded to new upstream version. + + -- Shugo Maeda Mon, 4 Jun 2001 22:24:48 +0900 + +eruby (0.1.3-3) unstable; urgency=low + + * Fixed add-log-full-name and add-log-mailing-address in changelog. + + -- Shugo Maeda Thu, 22 Feb 2001 21:31:56 +0900 + +eruby (0.1.3-2) unstable; urgency=low + + * Fixed Maintainer field. + + -- Shugo Maeda Mon, 19 Feb 2001 17:55:21 +0900 + +eruby (0.1.3-1) unstable; urgency=low + + * New maintainer. + * Upgraded to new upstream version. + * Removed dh_suidregister from rules. + + -- Shugo Maeda Mon, 19 Feb 2001 14:25:25 +0900 + +eruby (0.1.2-1.1) unstable; urgency=low + + * Upgraded to new upstream version. + + -- akira yamada Sat, 28 Oct 2000 03:01:48 +0900 + +eruby (0.1.1-1.2) unstable; urgency=low + + * Rebuild with libc6_2.1.94. + + -- akira yamada Mon, 2 Oct 2000 19:06:07 +0900 + +eruby (0.1.1-1.1) unstable; urgency=low + + * Rebild with ruby_1.6.0, + (Closes: #70367). + + -- akira yamada Wed, 13 Sep 2000 17:23:17 +0900 + +eruby (0.1.1-1) unstable; urgency=low + + * Upgraded to new upstream version. + * Added Builid-Depends field into control file. + * New binary packages (liberuby and eruby-dev). + + -- akira yamada Wed, 13 Sep 2000 16:42:55 +0900 + +eruby (0.0.9-1) unstable; urgency=high + + * Upgraded to new upstream version. + + -- akira yamada Fri, 25 Aug 2000 17:28:44 +0900 + +eruby (0.0.8-1) unstable; urgency=low + + * Upgraded to new upstream version. + + -- akira yamada Wed, 24 May 2000 14:26:54 +0900 + +eruby (0.0.4-1.2) unstable; urgency=low + + * Applied patch (ruby-list: #18962, #19209) + + -- akira yamada Wed, 8 Dec 1999 09:26:51 +0900 + +eruby (0.0.4-1.1) unstable; urgency=low + + * Build with libruby.so.1.4 (!= libruby.so.1.4.x) + (Closes: #50706). + + -- akira yamada Tue, 30 Nov 1999 14:32:10 +0900 + +eruby (0.0.4-1.0) unstable; urgency=low + + * Build with ruby 1.4. + + -- akira yamada Wed, 18 Aug 1999 11:03:09 +0900 + +eruby (0.0.4-1) unstable; urgency=low + + * Upgraded to new upstream version. + + -- akira yamada Tue, 10 Aug 1999 14:09:23 +0900 + +eruby (0.0.3-1) unstable; urgency=low + + * Initial Release. + + -- akira yamada Mon, 21 Jun 1999 17:33:52 +0900 --- eruby-1.0.5.orig/debian/README.Debian +++ eruby-1.0.5/debian/README.Debian @@ -0,0 +1,6 @@ +eRuby for Debian +---------------------- + +This is the eRuby, packaged for Debian GNU/Linux. + + -- akira yamada , Mon, 21 Jun 1999 17:33:52 +0900 --- eruby-1.0.5.orig/debian/liberuby-dev.copyright +++ eruby-1.0.5/debian/liberuby-dev.copyright @@ -0,0 +1,10 @@ +This package was debianized by akira yamada on +Mon, 21 Jun 1999 17:33:52 +0900. + +It was downloaded from . + +Copyright: + +liberuby is copyright ZetaBITS, Inc., and Information-technology Promotion +Agency, and Shugo Maeda, and is covered under the terms of the LGPL. See +the file /usr/share/common-licenses/LGPL for more information. --- eruby-1.0.5.orig/debian/eruby.copyright +++ eruby-1.0.5/debian/eruby.copyright @@ -0,0 +1,10 @@ +This package was debianized by akira yamada on +Mon, 21 Jun 1999 17:33:52 +0900. + +It was downloaded from . + +Copyright: + +eruby is copyright ZetaBITS, Inc., and Information-technology Promotion +Agency, and Shugo Maeda, and is covered under the terms of the GPL. See +the file /usr/share/common-licenses/GPL for more information. --- eruby-1.0.5.orig/debian/rules +++ eruby-1.0.5/debian/rules @@ -0,0 +1,102 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This is the debhelper compatability version to use. +export DH_COMPAT=3 + +# shared library versions, option 1 +version_string := $(shell grep ERUBY_VERSION eruby.h) +major := $(shell expr '$(version_string)' : '\#define ERUBY_VERSION "\([0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*"') +minor := $(shell expr '$(version_string)' : '\#define ERUBY_VERSION "[0-9][0-9]*\.\([0-9][0-9]*\)\.[0-9][0-9]*"') +teeny := $(shell expr '$(version_string)' : '\#define ERUBY_VERSION "[0-9][0-9]*\.[0-9][0-9]*\.\([0-9][0-9]*\)"') +version := $(major).$(minor).$(teeny) +archdir := $(shell ruby1.8 -r rbconfig -e 'print Config::CONFIG["archdir"]') + +build: build-stamp +build-stamp: + dh_testdir + + # Add here commands to compile the package. + ruby1.8 configure.rb --enable-shared + $(MAKE) + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. + -$(MAKE) distclean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/tmp. + $(MAKE) install DESTDIR=`pwd`/debian/tmp + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install +# dh_testversion + dh_testdir + dh_testroot + + # + # build eruby package by moving files from tmp + # + dh_movefiles -peruby \ + usr/bin/eruby \ + usr/share/man/man1/eruby.1 + # + dh_movefiles -pliberuby \ + usr/lib/liberuby.so.$(major).$(minor) \ + usr/lib/liberuby.so.$(version) \ + .$(archdir)/eruby.so + # + # build liberuby-dev package by moving files from tmp + # + dh_movefiles -pliberuby-dev \ + usr/lib/liberuby.so \ + usr/lib/liberuby.a \ + usr/include/eruby.h + +# dh_installdebconf + dh_installdocs + dh_installexamples + dh_installmenu +# dh_installemacsen +# dh_installpam +# dh_installinit + dh_installcron + dh_installman +# dh_installinfo +# dh_undocumented + dh_installchangelogs ChangeLog + dh_link + dh_strip + dh_compress + dh_fixperms + dh_makeshlibs -pliberuby -m$(major).$(minor) -V + dh_installdeb +# dh_perl + dh_shlibdeps -l`pwd`/debian/liberuby/usr/lib -- -Ldebian/liberuby/DEBIAN/shlibs + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install