Permalink
Browse files

Finish organization clean-up.

  • Loading branch information...
1 parent b51ce09 commit 8017a1394eaef3e2bb27f43cfff5b22ae4907ba4 @trans trans committed Nov 7, 2007
View
@@ -1,11 +1,10 @@
# -x doc -x pkg -x www -x log -x script
-ChangeLog.txt
-History.txt
License.txt
README
RELEASE
-TODO
bat
+bat/clobber
+bat/clobber/package
bat/compile
bat/config.yaml
bat/prepare
@@ -44,9 +43,6 @@ lib/tmail/config.rb
lib/tmail/core_extensions.rb
lib/tmail/encode.rb
lib/tmail/header.rb
-lib/tmail/i486-linux
-lib/tmail/i486-linux/base64.so
-lib/tmail/i486-linux/scanner_c.so
lib/tmail/index.rb
lib/tmail/interface.rb
lib/tmail/loader.rb
@@ -83,7 +79,6 @@ sample/multipart.rb
sample/parse-bench.rb
sample/parse-test.rb
sample/sendmail.rb
-setup.rb
test
test/extctrl.rb
test/fixtures
@@ -1,12 +1,23 @@
require 'mkmf'
+require 'rbconfig'
extension_name = 'base64'
-dir_config(extension_name)
-
-#create_makefile(extension_name, 'tmail')
-
-# Will copy to arch subdir.
-require 'rbconfig'
-create_makefile(extension_name, "tmail/#{Config::CONFIG['arch']}")
+FailedMessage = "Could not create Makefile, probably for the lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options (see below). TMail has a pure-ruby fallback mode, so you can still use this library.
+To do so, set the environment variable, export RUBYGEMS_NO_COMPILE='true', and gem install again."
+if ENV['RUBYGEMS_NO_COMPILE'] == 'true'
+ dummy_makefile(extension_name
+else
+ if (/mswin/ =~ RUBY_PLATFORM) and ENV['make'].nil?
+ $LIBS += " msvcprt.lib"
+ #dir_config(extension_name)
+ #create_makefile(extension_name, "tmail")
+ create_makefile(extension_name, "tmail/#{Config::CONFIG['arch']}")
+ else
+ $CFLAGS += " -D_FILE_OFFSET_BITS=64" #???
+ #dir_config(extension_name)
+ #create_makefile(extension_name, "tmail")
+ create_makefile(extension_name, "tmail/#{Config::CONFIG['arch']}")
+ end
+end
@@ -1,12 +1,23 @@
require 'mkmf'
+require 'rbconfig'
extension_name = 'scanner_c'
-dir_config(extension_name)
-
-#create_makefile(extension_name, 'tmail')
-
-# Will copy to arch subdir.
-require 'rbconfig'
-create_makefile(extension_name, "tmail/#{Config::CONFIG['arch']}")
+FailedMessage = "Could not create Makefile, probably for the lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options (see below). TMail has a pure-ruby fallback mode, so you can still use this library.
+To do so, set the environment variable, export RUBYGEMS_NO_COMPILE='true', and gem install again."
+if ENV['RUBYGEMS_NO_COMPILE'] == 'true'
+ dummy_makefile(extension_name
+else
+ if (/mswin/ =~ RUBY_PLATFORM) and ENV['make'].nil?
+ $LIBS += " msvcprt.lib"
+ #dir_config(extension_name)
+ #create_makefile(extension_name, "tmail")
+ create_makefile(extension_name, "tmail/#{Config::CONFIG['arch']}")
+ else
+ $CFLAGS += " -D_FILE_OFFSET_BITS=64" #???
+ #dir_config(extension_name)
+ #create_makefile(extension_name, "tmail")
+ create_makefile(extension_name, "tmail/#{Config::CONFIG['arch']}")
+ end
+end
File renamed without changes.
File renamed without changes.
View
File renamed without changes.
Oops, something went wrong.

0 comments on commit 8017a13

Please sign in to comment.