try to workaround problem with rg2 0.17.0rc1 0.9.2
authorGuillaume Cottenceau <gcottenc@gmail.com>
Thu, 10 Sep 2009 08:10:29 +0000 (10:10 +0200)
committerGuillaume Cottenceau <gcottenc@gmail.com>
Thu, 10 Sep 2009 08:10:29 +0000 (10:10 +0200)
ext/extconf.rb

index a591f1bfc9a65e9fd79f9d33165f9deaadccdd88..a05b9f7d534f07ce874a0e6d45edb7826b4eb119 100644 (file)
@@ -16,4 +16,9 @@ PKGConfig.have_package('exiv2') or exit 1
 #- does it do something good, actually?
 setup_win32(PACKAGE_NAME)
 
-create_makefile_at_srcdir(PACKAGE_NAME, File.dirname(__FILE__))
+begin
+    create_makefile_at_srcdir(PACKAGE_NAME, File.dirname(__FILE__))
+rescue NoMethodError
+    #- bug in rg2 0.17.0rc1, unfortunately on "stable" ubuntu jaunty
+    create_makefile_at_srcdir(PACKAGE_NAME, 'ext')
+end