eruby: dropped

This commit is contained in:
Juergen Daubert 2009-08-28 13:21:49 +02:00
parent c108695697
commit c742af866e
4 changed files with 0 additions and 154 deletions

View File

@ -1,16 +0,0 @@
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/eruby
drwxr-xr-x root/root usr/include/
-rw-r--r-- root/root usr/include/eruby.h
drwxr-xr-x root/root usr/lib/
-rw-r--r-- root/root usr/lib/liberuby.a
lrwxrwxrwx root/root usr/lib/liberuby.so -> liberuby.so.1.0.5
-rw-r--r-- root/root usr/lib/liberuby.so.1.0.5
drwxr-xr-x root/root usr/lib/ruby/
drwxr-xr-x root/root usr/lib/ruby/1.8/
drwxr-xr-x root/root usr/lib/ruby/1.8/linux/
-r-xr-xr-x root/root usr/lib/ruby/1.8/linux/eruby.so
drwxr-xr-x root/root usr/man/
drwxr-xr-x root/root usr/man/man1/
-rw-r--r-- root/root usr/man/man1/eruby.1.gz

View File

@ -1,2 +0,0 @@
4b1a5becee310f6bf03d8e2e6e868b48 eruby-1.0.5.patch
af294fe34dc6cf24228aec95167b3099 eruby-1.0.5.tar.gz

View File

@ -1,19 +0,0 @@
# Maintainer: Juergen Daubert, juergen dot daubert at t-online dot de
# Description: Allows you to embed Ruby code into HTML files
# URL: http://modruby.net/
# Depends on: ruby
name=eruby
version=1.0.5
release=2
source=(http://modruby.net/archive/$name-$version.tar.gz \
$name-$version.patch)
build() {
cd $name-$version
patch -p0 -i $SRC/$name-$version.patch
#sed -i 's|/-linux/|/linux/|g' configure.rb
./configure.rb --prefix=/usr --enable-shared
make
make DESTDIR=$PKG install
}

View File

@ -1,117 +0,0 @@
Index: configure.rb
===================================================================
--- configure.rb (revision 140)
+++ configure.rb (working copy)
@@ -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)"
@@ -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")