File: rules

package info (click to toggle)
libopenid-ruby 2.1.8debian-1%2Bsqueeze1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 5,300 kB
  • ctags: 3,346
  • sloc: ruby: 17,403; xml: 219; sh: 78; python: 30; makefile: 15
file content (26 lines) | stat: -rwxr-xr-x 868 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
#!/usr/bin/make -f
#
# CDBS file to build the Ruby OpenID package.

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

clean::
	rm -rf html

# test that hmac files are not there
install/libopenid-ruby1.8::
	! test -e debian/libopenid-ruby1.8/usr/lib/ruby/1.8/hmac

binary-install/libopenid-ruby::
	rm debian/libopenid-ruby/usr/share/doc/libopenid-ruby/examples/rails_openid/public/javascripts/prototype.js
	dh_link -plibopenid-ruby /usr/share/javascript/prototype/prototype.js /usr/share/doc/libopenid-ruby/examples/rails_openid/public/javascripts/prototype.js

install/libopenid-ruby::
	# build docs
	cp -r doc html
	dh_install -plibopenid-ruby html usr/share/doc/libopenid-ruby

DEB_COMPRESS_EXCLUDE = .js .rb .rhtml