2
# Made with the aid of dh_make, by Craig Small
3
# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
4
# Some lines taken from debmake, by Cristoph Lameter.
6
# Uncomment this to turn on verbose mode.
9
# This is the debhelper compatability version to use.
3
include /usr/share/quilt/quilt.make
5
build: patch build-stamp
16
# Add here commands to compile the package.
17
echo "a" | perl Makefile.PL INSTALLDIRS=vendor
8
echo "n" | perl Makefile.PL INSTALLDIRS=vendor
18
9
$(MAKE) OPTIMIZE="-O2 -g -Wall"
25
rm -f build-stamp install-stamp
27
-if [ -f Makefile ]; then $(MAKE) realclean ; fi
28
-rm -f biodatabases.pod biodesign.pod bioperl.pod bioscripts.pod
16
[ ! -f Makefile ] || $(MAKE) realclean
18
dh_clean build-stamp install-stamp bioperl.conf biodatabases.pod \
19
biodesign.pod bioperl.pod bioscripts.pod
33
21
install: install-stamp
34
install-stamp: build-stamp
40
dh_installexamples examples/*
42
dh_installchangelogs Changes
26
dh_installdirs usr/share/perl5
44
28
# Add here commands to install the package into debian/bioperl.
45
$(MAKE) install PREFIX=`pwd`/debian/bioperl/usr INSTALLMAN3DIR=`pwd`/debian/bioperl/usr/share/man/man3
46
rm -f debian/bioperl/usr/lib/perl5/*-linux/*/perllocal.pod
47
rm -f debian/bioperl/usr/lib/perl/5.6.0/perllocal.pod
29
$(MAKE) install PREFIX=$(CURDIR)/debian/bioperl/usr INSTALLMAN3DIR=$(CURDIR)/debian/bioperl/usr/share/man/man3
30
# rm -f debian/bioperl/usr/lib/perl5/*-linux/*/perllocal.pod
31
# rm -f debian/bioperl/usr/lib/perl/5.6.0/perllocal.pod
48
32
find debian/bioperl -type f -name .packlist | xargs rm -f
49
-find debian/bioperl/usr/lib/ -depth -type d -empty | xargs rmdir
50
-chmod a-x debian/bioperl/usr/share/perl5/*.pod
51
chmod 644 debian/bioperl/usr/share/perl5/Bio/Variation/README
52
chmod 644 debian/bioperl/usr/share/perl5/Bio/Tools/BPlite/Iteration.pm
53
chmod 644 debian/bioperl/usr/share/perl5/Bio/Tools/BPpsilite.pm
54
find debian/bioperl/usr/share/perl5/Bio -type f -exec chmod a-x {} \;
33
# -find debian/bioperl/usr/lib/ -depth -type d -empty | xargs rmdir
34
# -chmod a-x debian/bioperl/usr/share/perl5/*.pod
35
# chmod 644 debian/bioperl/usr/share/perl5/Bio/Variation/README
36
# chmod 644 debian/bioperl/usr/share/perl5/Bio/Tools/BPlite/Iteration.pm
37
# chmod 644 debian/bioperl/usr/share/perl5/Bio/Tools/BPpsilite.pm
38
# find debian/bioperl/usr/share/perl5/Bio -type f -exec chmod a-x {} \;
55
39
#X# chmod 644 debian/bioperl/usr/share/perl5/Bio/Tools/Blast/Run/Makefile.PL
56
chmod 644 debian/bioperl/usr/share/perl5/Bio/Tools/Blast/CHANGES
57
chmod 644 debian/bioperl/usr/share/perl5/Bio/Tools/Blast/README
59
-mv debian/bioperl/usr/share/perl5/bptutorial.pl debian/bioperl/usr/share/doc/bioperl/examples/
60
-mv debian/bioperl/usr/bin/bp_remote_blast.pl debian/bioperl/usr/share/doc/bioperl/
62
# This version of bioperl provides a lot of scripts, that it installs to usr/bin/
63
# Some of these are examples, and some of these are applications.
65
mv ./debian/bioperl/usr/bin ./debian/bioperl/usr/share/doc/bioperl/bin
40
# chmod 644 debian/bioperl/usr/share/perl5/Bio/Tools/Blast/CHANGES
41
# chmod 644 debian/bioperl/usr/share/perl5/Bio/Tools/Blast/README
43
# -mv debian/bioperl/usr/share/perl5/bptutorial.pl debian/bioperl/usr/share/doc/bioperl/examples/
45
# prename is the rename utility written in perl usually available as /usr/bin/rename in Debian.
46
prename s/.pl$$// debian/bioperl/usr/bin/*pl
47
prename s/.pl.1p$$/.1p/ debian/bioperl/usr/share/man/man1/*1p
52
# Disabled for the moment as it tries to access internet.
73
55
binary-indep: build install
75
binary-arch: build install
78
chmod a-x -R debian/bioperl/usr/share/doc/bioperl/examples
79
# mv debian/bioperl/usr/share/doc/bioperl/Changes debian/bioperl/usr/share/doc/bioperl/changelog
58
# chmod a-x -R debian/bioperl/usr/share/doc/bioperl/examples
59
dh_installchangelogs Changes
61
dh_installexamples examples/*
90
@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
92
75
binary: binary-indep binary-arch
93
76
.PHONY: build clean binary-indep binary-arch binary