~ubuntu-branches/ubuntu/natty/gnome-do-plugins/natty

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Christopher James Halse Rogers
  • Date: 2010-02-07 18:09:35 UTC
  • mfrom: (2.1.6 sid)
  • Revision ID: james.westby@ubuntu.com-20100207180935-tcl08qwq8dpgcy4m
Tags: 0.8.2.1+dfsg-2ubuntu1
* Merge from Debian unstable for -cil-dev transition fixes.  Remaining Ubuntu
  changes:
  + debian/patches/02_gnomesession_lock_screen.dpatch:
    - Lock screen prior to suspending or hibernating (LP: #460303)

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
#export DH_VERBOSE=1
7
7
 
8
8
include /usr/share/cli-common/cli.make
9
 
include /usr/share/dpatch/dpatch.make
10
 
 
11
 
configure: configure-stamp
12
 
 
13
 
configure-stamp: patch-stamp
 
9
include /usr/share/quilt/quilt.make
 
10
 
 
11
override_dh_auto_configure:
14
12
        autoreconf -I m4/shamrock
 
13
        dh_auto_configure -- --enable-flickr=yes MCS=/usr/bin/mono-csc MAUTIL=/bin/true
15
14
        touch $@
16
15
 
17
 
build: configure
18
 
        MCS=/usr/bin/mono-csc dh $@
19
 
 
20
 
clean: unpatch
21
 
        dh clean
22
 
# Clean buildsystem changes
 
16
override_dh_auto_clean:
 
17
        dh_auto_clean
 
18
        # Clean buildsystem changes
23
19
        find . -iname Makefile.in -delete
24
20
        rm -f configure
25
21
 
26
 
install: build
27
 
        dh $@
28
 
 
29
 
binary: binary-indep
30
 
        dh $@
31
 
 
32
 
binary-indep: install
33
 
        dh $@
34
 
 
35
22
override_dh_install:
36
23
        dh_install --fail-missing
37
24
 
38
 
# provide a target,  it does nothing but depend upon build as per policy
39
 
binary-arch: build
 
25
%:
 
26
        dh $@
40
27
 
41
28
# Makefile arcanery warning:
42
29
# $(dir $(_)) gives us the path containing this rules file.  
50
37
CURVER = $(shell dpkg-parsechangelog | grep ^Version | cut -d" " -f2 | cut -d"-" -f1 | cut -d"+" -f1 )
51
38
VERSION = $(shell dpkg-parsechangelog | grep ^Vers | cut -d" " -f2)
52
39
UPVERSION = $(shell echo $(VERSION) | sed 's,-.*,,') 
53
 
TARBALL = $(shell echo "gnome-do-plugins_$(UPVERSION).orig.tar.gz" | tr -d " ")
 
40
TARBALL = $(shell echo "gnome-do-plugins_$(UPVERSION).orig.tar" | tr -d " ")
54
41
 
55
42
download-tarball:
56
43
        uscan --download --destdir $(TEMP_DIR) \
63
50
 
64
51
repack-source: strip-shipped-binaries
65
52
        cd $(TEMP_DIR) && \
66
 
                tar czvf $(TARBALL) \
 
53
                tar --mtime=@1255388400 -cvf $(TARBALL) \
67
54
                        $(notdir $(SOURCE_DIR))
 
55
        cd $(TEMP_DIR) && \
 
56
                gzip -9fn $(TARBALL)
68
57
 
69
58
get-orig-source: repack-source
70
 
        [ -d ../tarballs ] || mkdir ../tarballs
71
 
        mv $(TEMP_DIR)/*.orig.tar.gz ../tarballs
 
59
        mv $(TEMP_DIR)/*.orig.tar.gz .
72
60
        rm -r $(TEMP_DIR)
73
61
 
74
 
.PHONY: configure build clean install binary binary-indep binary-arch download-tarball strip-shipped-binaries repack-source get-orig-source patch
 
62
.PHONY: download-tarball strip-shipped-binaries repack-source get-orig-source