File: rules

package info (click to toggle)
libjson-ruby 1.1.2-1%2Blenny1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 760 kB
  • ctags: 542
  • sloc: ruby: 3,040; ansic: 2,470; makefile: 19
file content (28 lines) | stat: -rwxr-xr-x 1,168 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
#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/simple-patchsys.mk
include /usr/share/ruby-pkg-tools/1/class/ruby-setup-rb.mk

BASEDIR = `pwd`/debian
DEB_INSTALL_MANPAGES_edit-json = debian/edit_json.1 debian/prettify_json.1

binary-install/libjson-ruby-doc::
	rm $(BASEDIR)/libjson-ruby-doc/usr/share/doc/libjson-ruby-doc/examples/prototype.js
	ln -s /usr/share/javascript/prototype/prototype.js $(BASEDIR)/libjson-ruby-doc/usr/share/doc/libjson-ruby-doc/examples/prototype.js
	dh_link -plibjson-ruby-doc

install/libjson-ruby1.8::
	# remove files already installed in edit-json package
	rm -r $(BASEDIR)/libjson-ruby1.8/usr/bin
	rm $(BASEDIR)/libjson-ruby1.8/usr/lib/ruby/1.8/json/editor.rb
	rm $(BASEDIR)/libjson-ruby1.8/usr/lib/ruby/1.8/json/*.xpm
	# Remove erroneously installed examples as shared data (under data/).
	rm $(BASEDIR)/libjson-ruby1.8/usr/share/*

binary-install/edit-json::
	# remove .rb suffix from programs
	mv $(BASEDIR)/edit-json/usr/bin/edit_json.rb \
	   $(BASEDIR)/edit-json/usr/bin/edit_json
	mv $(BASEDIR)/edit-json/usr/bin/prettify_json.rb \
	   $(BASEDIR)/edit-json/usr/bin/prettify_json