~jbicha/ubuntu/oneiric/gjs/1.29.18

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Laurent Bigonville
  • Date: 2011-02-06 13:01:02 UTC
  • mfrom: (1.3.10 experimental)
  • Revision ID: james.westby@ubuntu.com-20110206130102-69xpqq0gql9fob01
Tags: 0.7.10-1
* New upstream release.
* debian/control.in:
  - Drop build-depend on libmozjs-dev
  - Make libgjs-dev depend on xulrunner-dev and libdbus-1-dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
2
 
3
 
%:
4
 
        dh  $@
5
 
 
6
 
# Hack to make it possible to run autoreconf without making the diff
7
 
# big, and without requiring a patch that needs to be updated for
8
 
# every release
9
 
override_dh_auto_configure:
10
 
        mkdir _build
11
 
        cp -a * _build || true
12
 
        cd _build && autoreconf -fi
13
 
        dh_auto_configure --sourcedirectory=_build -- LDFLAGS="$(LDFLAGS) -Wl,-z,defs -Wl,--as-needed"
14
 
 
15
 
override_dh_auto_build:
16
 
        dh_auto_build --sourcedirectory=_build
17
 
 
18
 
override_dh_auto_install:
19
 
        dh_auto_install --sourcedirectory=_build
 
3
include /usr/share/cdbs/1/rules/debhelper.mk
 
4
include /usr/share/cdbs/1/class/autotools.mk
 
5
include /usr/share/cdbs/1/rules/utils.mk
 
6
include /usr/share/gnome-pkg-tools/1/rules/uploaders.mk
 
7
include /usr/share/gnome-pkg-tools/1/rules/gnome-get-source.mk
 
8
 
 
9
DEB_DH_MAKESHLIBS_ARGS_libgjs0b := -Xusr/lib/gjs-1.0/ -V -- -c4
 
10
 
 
11
ifeq ($(DEB_BUILD_ARCH_OS),linux)
 
12
DEB_MAKE_CHECK_TARGET := check
 
13
else
 
14
DEB_MAKE_CHECK_TARGET := check || true
 
15
endif
 
16
 
 
17
install/libgjs0b::
20
18
        chrpath -d "$(CURDIR)"/debian/tmp/usr/lib/libgjs.so.0.0.0
21
 
 
22
 
override_dh_install:
23
 
        dh_install
24
 
        mkdir -p debian/gjs/usr/lib/gjs
25
 
        mv debian/gjs/usr/bin/gjs-console debian/gjs/usr/lib/gjs
26
 
        cp debian/gjs-console.sh debian/gjs/usr/bin/gjs-console
27
 
 
28
 
override_dh_makeshlibs:
29
 
        dh_makeshlibs -plibgjs0b -V 'libgjs0b (>= 0.7.7)'
30
 
 
31
 
override_dh_clean:
32
 
        rm -rf _build
33
 
        dh_clean
34
 
 
35
 
override_dh_auto_test:
36
 
        # Our gir-repository packages don't build Everything.typelib, so the
37
 
        # Everything tests will fail.  Just remove them.
38
 
        -rm _build/test/js/testEverythingBasic.js
39
 
        -rm _build/test/js/testEverythingEncapsulated.js
40
 
 
41
 
        # Temporarily disable running new tests that are failing. Some
42
 
        # tests apparently depend on test API only available in later,
43
 
        # incompatible versions of gobject-introspection.
44
 
        -rm _build/test/js/testByteArray.js
45
 
        -rm _build/test/js/testGI.js
46
 
        -rm _build/test/js/testGIMarshalling.js
47
 
 
48
 
override_dh_shlibdeps:
49
 
        dh_shlibdeps