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
|
#!/usr/bin/make -f
# -*- makefile -*-
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/ruby-pkg-tools/1/class/ruby-extconf-rb.mk
include /usr/share/cdbs/1/rules/patchsys-quilt.mk
DEB_RUBY_SETUP_CMD=./ext/thin_parser/extconf.rb
DEB_RUBY_REAL_LIB_PACKAGES=thin1.8
build/thin1.8::
ruby ./debian/gen_init.rb
RUBYLIB=./lib/ help2man -n "fast and very simple Ruby web server" ./bin/thin >debian/thin1.8.1
# we don't want to install this file, but we do want to use it
install/thin1.8::
[ -f ./service.sh.erb ] || mv ./lib/thin/controllers/service.sh.erb ./service.sh.erb
mv bin/thin bin/thin1.8
binary/thin1.8::
[ -f ./lib/thin/controllers/service.sh.erb ] || mv ./service.sh.erb ./lib/thin/controllers/service.sh.erb
mv bin/thin1.8 bin/thin
# err, what?
install/thin::
rm -fr debian/thin/usr/lib/
|