]> git.notmuchmail.org Git - notmuch/commitdiff
debian: package ruby bindings
authorFelipe Contreras <felipe.contreras@gmail.com>
Tue, 16 Apr 2013 19:08:39 +0000 (14:08 -0500)
committerDavid Bremner <bremner@debian.org>
Thu, 23 May 2013 11:16:49 +0000 (08:16 -0300)
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
debian/control
debian/notmuch-ruby.install [new file with mode: 0644]
debian/rules

index 854a32ae20f0b78a1b070226e2124b71b00d3bbf..c59d3ead5f6783f5bfe31137a6de9340aa6de3e0 100644 (file)
@@ -15,6 +15,7 @@ Build-Depends:
  libz-dev,
  python-all (>= 2.6.6-3~),
  python3-all (>= 3.1.2-7~),
+ ruby, ruby-dev,
  emacs23-nox | emacs23 (>=23~) | emacs23-lucid (>=23~) |
  emacs24-nox | emacs24 (>=24~) | emacs24-lucid (>=24~),
  gdb,
@@ -89,6 +90,19 @@ Description: Python 3 interface to the notmuch mail search and index library
  This package provides a Python 3 interface to the notmuch
  functionality, directly interfacing with a shared notmuch library.
 
+Package: notmuch-ruby
+Architecture: any
+Section: ruby
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Ruby interface to the notmuch mail search and index library
+ Notmuch is a system for indexing, searching, reading, and tagging
+ large collections of email messages in maildir or mh format. It uses
+ the Xapian library to provide fast, full-text search with a very
+ convenient search syntax.
+ .
+ This package provides a Ruby interface to the notmuch
+ functionality, directly interfacing with a shared notmuch library.
+
 Package: notmuch-emacs
 Architecture: all
 Section: mail
diff --git a/debian/notmuch-ruby.install b/debian/notmuch-ruby.install
new file mode 100644 (file)
index 0000000..98e7050
--- /dev/null
@@ -0,0 +1 @@
+usr/lib/ruby/vendor_ruby/*/*/notmuch.so
index c4e3930da5fb931c4e1bd39e017884e33d8e9a53..71a5602844a46dd45ed1fed1c5cd51975e472883 100755 (executable)
@@ -12,15 +12,18 @@ override_dh_auto_build:
        dh_auto_build
        dh_auto_build --sourcedirectory bindings/python
        cd bindings/python && $(python3_all) setup.py build
+       cd bindings/ruby && ruby extconf.rb --vendor && make
        $(MAKE) -C contrib/notmuch-mutt
 
 override_dh_auto_clean:
        dh_auto_clean
        dh_auto_clean --sourcedirectory bindings/python
        cd bindings/python && $(python3_all) setup.py clean -a
+       dh_auto_clean --sourcedirectory bindings/ruby
        $(MAKE) -C contrib/notmuch-mutt clean
 
 override_dh_auto_install:
        dh_auto_install
        dh_auto_install --sourcedirectory bindings/python
        cd bindings/python && $(python3_all) setup.py install --install-layout=deb --root=$(CURDIR)/debian/tmp
+       dh_auto_install --sourcedirectory bindings/ruby