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 33 34 35 36 37 38 39 40
|
#!/usr/bin/make -f
DEB_AUTO_UPDATE_DEBIAN_CONTROL := yes
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/patchsys-quilt.mk
MANPAGES := debian/rbot.1
# configure and build should not be relaunched in binary rule
build/rbot:: $(MANPAGES)
ruby setup.rb config --prefix=/usr --siteruby=/usr/lib/ruby
ruby setup.rb setup
%.1: %.xml
xsltproc -nonet -o $@ /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl $<
install/rbot::
ruby setup.rb install --prefix=debian/rbot
# figlet is non-free, that's why this package would not recommend such a nasty program in any way
rm debian/rbot/usr/share/rbot/plugins/figlet.rb
rm debian/rbot/usr/share/rbot/contrib/plugins/figlet.rb
# disabled plugins
mv debian/rbot/usr/share/rbot/plugins/tinyurl.rb debian/rbot/usr/share/rbot/plugins/tinyurl.rb.disabled
mv debian/rbot/usr/share/rbot/plugins/urban.rb debian/rbot/usr/share/rbot/plugins/urban.rb.disabled
binary-install/rbot::
dh_installman -prbot $(MANPAGES)
binary-predeb/rbot::
find debian/rbot -type d -name ".arch-ids" -depth -exec rm -rf {} \;
clean::
ruby setup.rb clean
rm -f $(MANPAGES)
# buildsys fix
rm -f lib/rbot/pkgconfig.rb
|