File: rules

package info (click to toggle)
ruby-gnome2 3.3.2-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 28,872 kB
  • sloc: ansic: 96,386; ruby: 70,722; xml: 350; sh: 105; cpp: 45; makefile: 34
file content (32 lines) | stat: -rwxr-xr-x 1,001 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/make -f

export DH_RUBY_USE_DH_AUTO_INSTALL_DESTDIR=1

export DESTDIR=$(CURDIR)/debian/tmp
export make=make V=1 DESTDIR='$(DESTDIR)' \
	sitelibdir='$(DESTDIR)$$(vendordir)' \
	sitearchdir='$(DESTDIR)$$(vendorarchdir)'

%:
	dh $@ --buildsystem=ruby --with ruby

MODULES = $(shell grep-dctrl -n -s X-DhRuby-Root '' debian/control)

override_dh_installdocs:
	dh_installdocs -XTODO

override_dh_strip:
	for i in cairo-gobject gio2 glib2 gobject-introspection gstreamer gtk2 gtk3 gtksourceview2 pango ; do \
		dh_strip -pruby-$$i --ddeb-migration="ruby-$$i-dbg (<< 3.0.9-1~)" ; \
	done
	dh_strip

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-gtk2/usr/share/doc/ruby-gtk2/examples/misc/properties.rb
	chmod -x debian/ruby-gtk3/usr/share/doc/ruby-gtk3/examples/misc/properties.rb

override_dh_compress:
	dh_compress -X.rb