#!/bin/sh -e
## 10_fix_to_adapt_debian_ruby_policy.dpatch by Hidetaka Iwai <tyuyu@debian.or.jp>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: No description.

if [ $# -ne 1 ]; then
    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
    exit 1
fi

[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
patch_opts="${patch_opts:--f --no-backup-if-mismatch}"

case "$1" in
       -patch) patch $patch_opts -p1 < $0;;
       -unpatch) patch $patch_opts -p1 -R < $0;;
        *)
                echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
                exit 1;;
esac

exit 0

@DPATCH@
diff -urNad sary-ruby-1.2.0/extconf.rb /tmp/dpep.zAzFe0/sary-ruby-1.2.0/extconf.rb
--- sary-ruby-1.2.0/extconf.rb	2005-04-16 22:04:43.000000000 +0900
+++ /tmp/dpep.zAzFe0/sary-ruby-1.2.0/extconf.rb	2005-04-16 22:13:37.000000000 +0900
@@ -1,5 +1,8 @@
 require 'mkmf'
 
+# mkmf.rb 1.8 workaround
+$extmk = 1
+
 dir_config('sary')
 # sary_config = with_config('sary-config', 'sary-config')
 
