diff options
| author | David Bremner <bremner@debian.org> | 2018-06-12 22:39:33 -0300 |
|---|---|---|
| committer | David Bremner <bremner@debian.org> | 2018-06-12 22:39:33 -0300 |
| commit | 045f0e455ac94e2393d0d729c9bbdf3459a4860f (patch) | |
| tree | 8d8b46ecba2c3c128365f16ece54377b987dbe58 /bindings/ruby/extconf.rb | |
Import notmuch_0.27.orig.tar.gz
[dgit import orig notmuch_0.27.orig.tar.gz]
Diffstat (limited to 'bindings/ruby/extconf.rb')
| -rw-r--r-- | bindings/ruby/extconf.rb | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/bindings/ruby/extconf.rb b/bindings/ruby/extconf.rb new file mode 100644 index 00000000..161de5a2 --- /dev/null +++ b/bindings/ruby/extconf.rb @@ -0,0 +1,25 @@ +#!/usr/bin/env ruby +# coding: utf-8 +# Copyright 2010, 2011, 2012 Ali Polatel <alip@exherbo.org> +# Distributed under the terms of the GNU General Public License v3 + +require 'mkmf' + +dir = File.join(ENV['NOTMUCH_SRCDIR'], 'lib') + +# includes +$INCFLAGS = "-I#{dir} #{$INCFLAGS}" + +if ENV['EXTRA_LDFLAGS'] + $LDFLAGS += " " + ENV['EXTRA_LDFLAGS'] +end + +if not ENV['LIBNOTMUCH'] + exit 1 +end + +$LOCAL_LIBS += ENV['LIBNOTMUCH'] + +# Create Makefile +dir_config('notmuch') +create_makefile('notmuch') |
