~ubuntu-branches/ubuntu/raring/bioperl/raring

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Charles Plessy
  • Date: 2008-03-18 14:44:57 UTC
  • mfrom: (4 hardy)
  • mto: This revision was merged to the branch mainline in revision 6.
  • Revision ID: james.westby@ubuntu.com-20080318144457-1jjoztrvqwf0gruk
* debian/control:
  - Removed MIA Matt Hope (dopey) from the Uploaders field.
    Thank you for your work, Matt. I hope you are doing well.
  - Downgraded some recommended package to the 'Suggests' priority,
    according to the following discussion on Upstream's mail list.
    http://bioperl.org/pipermail/bioperl-l/2008-March/027379.html
    (Closes: #448890)
* debian/copyright converted to machine-readable format.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
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.
5
 
 
6
 
# Uncomment this to turn on verbose mode.
7
 
#export DH_VERBOSE=1
8
 
 
9
 
# This is the debhelper compatability version to use.
10
 
export DH_COMPAT=2
11
 
 
12
 
build: build-stamp
 
2
 
 
3
include /usr/share/quilt/quilt.make
 
4
 
 
5
build: patch build-stamp
13
6
build-stamp:
14
7
        dh_testdir
15
 
        
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"
19
 
 
20
 
        touch build-stamp
21
 
 
22
 
clean: 
 
10
        touch $@
 
11
 
 
12
clean: unpatch
23
13
        dh_testdir
24
 
        #dh_testroot
25
 
        rm -f build-stamp install-stamp
26
 
 
27
 
        -if [ -f Makefile ]; then $(MAKE) realclean ; fi
28
 
        -rm -f biodatabases.pod biodesign.pod bioperl.pod bioscripts.pod
29
 
        -rm -f bioperl.conf
30
 
 
31
 
        dh_clean
 
14
        dh_testroot
 
15
 
 
16
        [ ! -f Makefile ] || $(MAKE) realclean
 
17
 
 
18
        dh_clean build-stamp install-stamp bioperl.conf biodatabases.pod \
 
19
        biodesign.pod bioperl.pod bioscripts.pod
32
20
 
33
21
install: install-stamp
34
 
install-stamp: build-stamp
 
22
install-stamp: build
35
23
        dh_testdir
36
24
        dh_testroot
37
25
        dh_clean -k
38
 
        dh_installdirs
39
 
        dh_installdocs
40
 
        dh_installexamples examples/*
41
 
        dh_installmanpages
42
 
        dh_installchangelogs Changes 
 
26
        dh_installdirs usr/share/perl5
43
27
 
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
58
 
 
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/
61
 
 
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.
64
 
 
65
 
        mv ./debian/bioperl/usr/bin ./debian/bioperl/usr/share/doc/bioperl/bin
66
 
 
67
 
 
68
 
 
69
 
 
70
 
 
71
 
        touch install-stamp
 
40
#       chmod 644 debian/bioperl/usr/share/perl5/Bio/Tools/Blast/CHANGES
 
41
#       chmod 644 debian/bioperl/usr/share/perl5/Bio/Tools/Blast/README
 
42
 
 
43
#       -mv debian/bioperl/usr/share/perl5/bptutorial.pl debian/bioperl/usr/share/doc/bioperl/examples/
 
44
 
 
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
 
48
 
 
49
        touch $@
 
50
 
 
51
test: build
 
52
#       Disabled for the moment as it tries to access internet.
 
53
#       ./Build test
72
54
 
73
55
binary-indep: build install
74
 
 
75
 
binary-arch: build install
76
56
        dh_testdir
77
57
        dh_testroot
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 
 
60
        dh_installdocs
 
61
        dh_installexamples examples/*
 
62
        dh_install
 
63
        dh_installman
80
64
        dh_strip
81
65
        dh_compress
82
66
        dh_fixperms
 
67
        dh_perl
83
68
        dh_installdeb
84
 
        dh_perl
85
69
        dh_gencontrol
86
70
        dh_md5sums
87
71
        dh_builddeb
88
72
 
89
 
source diff:                                                                  
90
 
        @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
 
73
binary-arch:
91
74
 
92
75
binary: binary-indep binary-arch
93
76
.PHONY: build clean binary-indep binary-arch binary