~ubuntu-branches/debian/squeeze/redland-bindings/squeeze

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Dave Beckett
  • Date: 2009-04-07 00:24:21 UTC
  • mfrom: (0.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20090407002421-dce2r4otm5vqtheg
Tags: 1.0.8.1-2
* Use new sections ruby, php for librdf-ruby and php5-librdf respectively.
* Merge features from ubuntu packaging.  Thanks to Matthias Klose
  (not taking linker -Wl,--as-needed since that makes dyloading fail
  to pull in raptor symbols):
  debian/rules:
  - get python lib dir from distutils
  - make dh_pycentral use symlinks
  debian/python-librdf.examples:
  - add data/dc.rdf to examples dir and adjust example.py
    to point to it (Closes: #402612)
* Patch python/Makefile.in so it can allow the include dir to be
  overridden by the particular python version build in debian/rules
  using PYTHON_INCLUDES

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
 
50
50
patch: patch-stamp
51
51
patch-stamp:
52
 
        dpatch apply-all && touch patch-stamp
 
52
        touch patch-stamp
 
53
#       dpatch apply-all && touch patch-stamp
53
54
 
54
55
unpatch:
55
 
        dpatch deapply-all
 
56
#       dpatch deapply-all
56
57
        rm -rf patch-stamp debian/patched
57
58
 
58
59
configure: configure-stamp
70
71
                --mandir=$(share)/man \
71
72
                --infodir=$(share)/info \
72
73
                --enable-release \
73
 
                --with-redland=system \
74
 
                --with-postgresql=no
 
74
                --with-redland=system
75
75
 
76
76
        touch $@
77
77
 
131
131
 
132
132
        cd python; \
133
133
        for python in $(PYVERS); do \
 
134
          pylib=$$($$python -c 'from distutils import sysconfig; print sysconfig.get_python_lib()'); \
134
135
          PYTHON=$$(echo $$python | sed "s/$(PYDEF)/python/"); \
135
 
          PYTHON=$$PYTHON make install DESTDIR=$(CURDIR)/debian/python-librdf pythondir=/usr/lib/$$python/site-packages PYTHON_INCLUDES=-I/usr/include/$$python; \
136
 
          $(MAKE) clean; \
 
136
          PYTHON=$$PYTHON make install DESTDIR=$(CURDIR)/debian/python-librdf pythondir=$$pylib PYTHON_INCLUDES=-I/usr/include/$$python; \
 
137
          $(MAKE) clean >/dev/null 2>&1; \
137
138
        done
138
139
        find $(CURDIR)/debian/python-librdf/usr -name "*.py[co]" -exec rm -f {} \;
139
140
 
173
174
        dh_fixperms
174
175
        dh_makeshlibs
175
176
        dh_perl
176
 
        dh_pycentral -ppython-librdf
 
177
        DH_PYCENTRAL=include-links dh_pycentral -ppython-librdf
177
178
        dh_installdeb
178
179
        dh_shlibdeps
179
180
        dh_gencontrol