~ubuntu-desktop/evince/ubuntu

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Jeremy Bicha
  • Date: 2016-08-07 22:26:40 UTC
  • Revision ID: jbicha@ubuntu.com-20160807222640-r56bbj5k0na1mz2o
* Merge with Debian 3.20.1-1
* Build-depend on dh-translations and run dh --with translations
* Don't break/replace apparmor-profiles-extra << 1.7.
  Ubuntu's version didn't ship the evince profile but more importantly,
  apparmor-profiles-extra 1.7 isn't in Ubuntu yet
* debian/patches/traditional_menu_bar.patch:
  - Refreshed and re-enabled F1 keyboard shortcut for help (LP: #1610742)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
2
 
 
3
include /usr/share/gnome-pkg-tools/1/rules/gnome-get-source.mk
 
4
include /usr/share/dpkg/buildflags.mk
 
5
 
3
6
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
4
7
 
5
 
include /usr/share/cdbs/1/rules/autoreconf.mk
6
 
include /usr/share/cdbs/1/rules/debhelper.mk
7
 
include /usr/share/cdbs/1/class/gnome.mk
8
 
include /usr/share/cdbs/1/rules/utils.mk
9
 
include /usr/share/gnome-pkg-tools/1/rules/uploaders.mk
10
 
include /usr/share/gnome-pkg-tools/1/rules/gnome-version.mk
11
 
include /usr/share/gnome-pkg-tools/1/rules/gnome-get-source.mk
12
 
 
13
8
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-z,defs -Wl,-O1 -Wl,--as-needed
14
 
include /usr/share/dpkg/buildflags.mk
15
 
 
16
 
DEB_CONFIGURE_EXTRA_FLAGS += --enable-djvu \
17
 
                             --enable-dvi \
18
 
                             --enable-xps \
19
 
                             --enable-comics \
20
 
                             --enable-introspection \
21
 
                             --enable-gtk-doc \
22
 
                             --libdir="\$${prefix}/lib/$(DEB_HOST_MULTIARCH)"
23
 
 
24
 
DEB_DH_MAKESHLIBS_ARGS += -X /usr/lib/nautilus/ \
25
 
                          -X /usr/lib/$(DEB_HOST_MULTIARCH)/evince/ \
26
 
                          -V -- -c4
27
 
 
28
 
DEB_DH_SHLIBDEPS_ARGS += -X /usr/lib/nautilus/
29
 
 
30
 
install/evince-common::
31
 
        cp debian/apparmor-profile debian/evince-common/etc/apparmor.d/usr.bin.evince
32
 
        cp debian/apparmor-profile.abstraction debian/evince-common/etc/apparmor.d/abstractions/evince
33
 
        cp debian/evince.apport debian/evince-common/usr/share/apport/package-hooks/source_evince.py
34
 
        dh_apparmor --profile-name=usr.bin.evince -pevince-common
35
 
        cd po; intltool-update --pot --verbose
 
9
 
 
10
# Mozilla plugins shouldn't be installed in multi-arch path
 
11
export BROWSER_PLUGIN_DIR = /usr/lib/mozilla/plugins
 
12
 
 
13
%:
 
14
        dh $@ --with autoreconf,gir,gnome,translations
 
15
 
 
16
override_dh_autoreconf:
 
17
        dh_autoreconf --as-needed
 
18
 
 
19
override_dh_auto_configure:
 
20
        dh_auto_configure -- \
 
21
                --libexecdir=/usr/lib/evince \
 
22
                --enable-djvu \
 
23
                --enable-dvi \
 
24
                --enable-xps \
 
25
                --enable-comics \
 
26
                --enable-introspection \
 
27
                --enable-gtk-doc \
 
28
                --enable-libgnome-desktop
 
29
 
 
30
override_dh_makeshlibs:
 
31
        dh_makeshlibs \
 
32
                -X /usr/lib/nautilus/ \
 
33
                -X /usr/lib/$(DEB_HOST_MULTIARCH)/evince/ \
 
34
                -V -- -c4
 
35
 
 
36
override_dh_shlibdeps:
 
37
        dh_shlibdeps -X /usr/lib/nautilus/
 
38
 
 
39
override_dh_strip:
 
40
        dh_strip --dbgsym-migration='evince-dbg (<< 3.20.0-2~)'
 
41
 
 
42
override_dh_install:
 
43
        dh_install --list-missing
 
44
        install -m 0644 -D debian/apparmor-profile debian/evince/etc/apparmor.d/usr.bin.evince
 
45
        install -m 0644 -D debian/apparmor-profile.abstraction debian/evince/etc/apparmor.d/abstractions/evince
 
46
        install -m 0644 -D debian/evince.apport debian/evince/usr/share/apport/package-hooks/source_evince.py
 
47
        dh_apparmor --profile-name=usr.bin.evince -pevince