#!/usr/bin/make -f export DESTDIR=$(CURDIR)/debian/tmp export make=make V=1 DESTDIR='$(DESTDIR)' \ sitelibdir='$(DESTDIR)$$(vendordir)' \ sitearchdir='$(DESTDIR)$$(vendorarchdir)' %: dh $@ --buildsystem=ruby --with ruby override_dh_installdocs: dh_installdocs -XTODO override_dh_fixperms-arch: dh_fixperms # Remove executable flag from some examples that aren't actually executable. chmod -x debian/ruby-glib2/usr/share/doc/ruby-glib2/examples/type-register*.rb chmod -x debian/ruby-gtk3/usr/share/doc/ruby-gtk3/examples/misc/properties.rb override_dh_compress: dh_compress -X.rb dev_files := usr/lib/*/ruby/vendor_ruby/*/*.h \ usr/lib/ruby/vendor_ruby/glib-mkenums.rb \ usr/lib/ruby/vendor_ruby/gnome2-raketask.rb \ usr/lib/ruby/vendor_ruby/mkmf-gnome.rb \ usr/lib/ruby/vendor_ruby/mkmf-gnome2.rb \ usr/lib/ruby/vendor_ruby/gnome2/rake override_dh_auto_install: dh_auto_install # move development files to ruby-gnome-dev: for p in $(dev_files); do \ for f in $$(ls -1d debian/ruby-*/$$p); do \ target=$$(echo $$f | cut -d / -f 3-); \ mkdir -p $$(dirname debian/ruby-gnome-dev/$$target); \ mv $$f debian/ruby-gnome-dev/$$target; \ done; \ done # cleanup empty directories find $(CURDIR)/debian/ruby-* -type d -empty -delete