~ubuntu-branches/debian/sid/libapache2-mod-python/sid

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Arthur de Jong
  • Date: 2013-06-28 13:13:39 UTC
  • mfrom: (8.1.1 experimental)
  • Revision ID: package-import@ubuntu.com-20130628131339-3zcvgdy52q8794ay
Tags: 3.3.1-11
* Team upload.
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
 
# debian/rules for Apache mod_python 3
3
 
# GNU copyright 1997 to 1999 by Joey Hess.
4
 
# Copyright (c) 2003 Peter Hawkins
5
2
 
6
 
# Uncomment this to turn on verbose mode.
7
3
#export DH_VERBOSE=1
8
4
 
9
 
include /usr/share/dpatch/dpatch.make
10
 
 
11
 
PYVER=$(shell pyversions -rv)
12
 
 
13
 
configure: configure-stamp
14
 
configure-stamp:
15
 
        dh_testdir
16
 
        # Add here commands to configure the package.
17
 
        
18
 
        # Don't configure here (see install)
19
 
#       -./configure --enable-EAPI --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
20
 
        touch $@
21
 
 
22
 
build: configure-stamp build-stamp
23
 
build-stamp: patch
24
 
        dh_testdir
25
 
 
26
 
        # Add here commands to compile the package.
27
 
        # Don't build it here, see install
28
 
        #$(MAKE)
29
 
        #/usr/bin/docbook-to-man debian/libapache-mod-python.sgml > libapache-mod-python.1
30
 
 
31
 
        touch $@
32
 
 
33
 
clean: unpatch
34
 
        dh_testdir
35
 
        dh_testroot
36
 
        rm -f build-stamp configure-stamp
37
 
 
38
 
        # Add here commands to clean up after the build process.
39
 
        [ ! -f Makefile ] || $(MAKE) distclean
40
 
        rm -f config.log configure src/include/mod_python.h
41
 
 
42
 
        dh_clean
43
 
 
44
 
install: build
45
 
        dh_testdir
46
 
        dh_testroot
47
 
        dh_clean -k
48
 
        dh_installdirs
49
 
 
50
 
        # Add here commands to install the package into debian/libapache-mod-python.
51
 
        #$(MAKE) install DESTDIR=$(CURDIR)/debian/libapache-mod-python
52
 
 
53
 
        autoconf
54
 
 
55
 
        rm -f config.cache config.status
56
 
        export PYTHON_BIN=/usr/bin/python
57
 
        -env PYTHON_BIN=/usr/bin/python \
58
 
        ./configure --with-apxs=/usr/bin/apxs2 --prefix=/usr \
59
 
                --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info \
60
 
                --with-python-version=$(PYVER)
61
 
        $(MAKE) clean && DEB_DEFINES="-DLONG_LONG=PY_LONG_LONG" $(MAKE)
62
 
        $(MAKE) install DESTDIR=$(CURDIR)/debian/libapache2-mod-python
63
 
        cp debian/python.load debian/libapache2-mod-python/etc/apache2/mods-available/
64
 
 
65
 
 
66
 
binary-indep: build install
67
 
        dh_testdir -i
68
 
        dh_testroot -i
69
 
        dh_installdocs -i
70
 
        dh_installexamples -i
71
 
        dh_installmenu -i
72
 
        dh_installcron -i
73
 
        dh_installinfo -i
74
 
        dh_installchangelogs -i 
75
 
        dh_compress -i
76
 
        dh_fixperms -i
77
 
        dh_installdeb -i
78
 
        dh_shlibdeps -i
79
 
        dh_gencontrol -i
80
 
        dh_md5sums -i
81
 
        dh_builddeb -i
82
 
 
83
 
binary-arch: build install
84
 
        dh_testdir -a
85
 
        dh_testroot -a
86
 
        dh_pycentral -plibapache2-mod-python
87
 
        dh_installdocs -a
88
 
        dh_installexamples -a
89
 
        dh_installmenu -a
90
 
        dh_installcron -a
91
 
        dh_installinfo -a
92
 
        dh_installchangelogs -a
93
 
        dh_link -a
94
 
        dh_strip -a
95
 
        dh_compress -a
96
 
        dh_fixperms -a
97
 
        # You may want to make some executables suid here.
98
 
#       dh_suidregister
99
 
#       dh_makeshlibs
100
 
        dh_installdeb -a
101
 
        dh_shlibdeps -a
102
 
        dh_gencontrol -a
103
 
        dh_md5sums -a
104
 
        dh_builddeb -a
105
 
 
106
 
binary: binary-indep binary-arch
107
 
.PHONY: build clean binary-indep binary-arch binary install configure unpatch
 
5
PYTHON=$(shell pyversions -d)
 
6
 
 
7
%:
 
8
        dh $@ --with autoreconf,python2,apache2
 
9
 
 
10
override_dh_auto_configure:
 
11
        dh_auto_configure -- --with-apxs=/usr/bin/apxs2 --with-python=$(PYTHON)
 
12
 
 
13
override_dh_auto_clean:
 
14
        dh_auto_clean
 
15
        rm -rf $(CURDIR)/src/include/mod_python.h