~ubuntu-branches/ubuntu/saucy/globus-gass-copy/saucy-proposed

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Mattias Ellert
  • Date: 2011-06-06 14:09:50 UTC
  • mfrom: (1.2.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20110606140950-x450i2x9ddhk03e8
Tags: 5.14-1
* Update to Globus Toolkit 5.0.4
* Use system jquery script

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
 
14
14
name = globus-gass-copy
15
15
_name = globus_gass_copy
16
 
version = 5.10
 
16
version = 5.14
17
17
soname = 2
18
18
 
19
19
INSTALLDIR = $(CURDIR)/debian/tmp
170
170
        sed s!doc/$(_name)!doc/lib$(name)-dev! \
171
171
          -i $(GLOBUSPACKAGEDIR)/$(_name)/noflavor_doc.filelist
172
172
 
 
173
        # Use system jquery script
 
174
        if [ -r $(INSTALLDIR)$(_docdir)/lib$(name)-dev/html/jquery.js ] ; then \
 
175
          rm $(INSTALLDIR)$(_docdir)/lib$(name)-dev/html/jquery.js ; \
 
176
          ln -s /usr/share/javascript/jquery/jquery.js \
 
177
            $(INSTALLDIR)$(_docdir)/lib$(name)-dev/html/jquery.js ; \
 
178
          echo js:Depends=libjs-jquery >> debian/lib$(name)-doc.substvars ; \
 
179
        else \
 
180
          echo js:Depends= >> debian/lib$(name)-doc.substvars ; \
 
181
        fi
 
182
 
173
183
        # Generate package filelists
174
184
        cat $(GLOBUSPACKAGEDIR)/$(_name)/$(flavor)_rtl.filelist \
175
185
          | sed s!^!debian/tmp$(_prefix)! > debian/lib$(name)$(soname).install
214
224
        if [ -r $(name)_$(version).orig.tar.gz ] ; then \
215
225
          echo "$(name)_$(version).orig.tar.gz already exists." ; \
216
226
        else \
217
 
          if [ ! -r gt5.0.3-all-source-installer.tar.bz2 ] ; then \
 
227
          if [ ! -r gt5.0.4-all-source-installer.tar.bz2 ] ; then \
218
228
            echo "Downloading Globus Toolkit release." ; \
219
229
            echo "This should be necessary only once for all globus packages." ; \
220
 
            wget -N http://www-unix.globus.org/ftppub/gt5/5.0/5.0.3/installers/src/gt5.0.3-all-source-installer.tar.bz2 ; \
 
230
            wget -N http://www-unix.globus.org/ftppub/gt5/5.0/5.0.4/installers/src/gt5.0.4-all-source-installer.tar.bz2 ; \
221
231
          fi ; \
222
232
          echo "Extracting relevant parts of the Globus Toolkit release." ; \
223
 
          tar -xjf gt5.0.3-all-source-installer.tar.bz2 \
224
 
            gt5.0.3-all-source-installer/source-trees/gass/copy/source ; \
225
 
          mv gt5.0.3-all-source-installer/source-trees/gass/copy/source \
 
233
          tar -xjf gt5.0.4-all-source-installer.tar.bz2 \
 
234
            gt5.0.4-all-source-installer/source-trees/gass/copy/source ; \
 
235
          mv gt5.0.4-all-source-installer/source-trees/gass/copy/source \
226
236
            $(name)-$(version) ; \
227
237
          echo "Packing it up again." ; \
228
238
          GZIP=-9 tar --exclude=CVS -czf $(name)_$(version).orig.tar.gz \
229
239
            $(name)-$(version) ; \
230
240
          echo "Cleaning up." ; \
231
 
          rm -rf gt5.0.3-all-source-installer $(name)-$(version) ; \
 
241
          rm -rf gt5.0.4-all-source-installer $(name)-$(version) ; \
232
242
        fi
233
243
 
234
244
.PHONY: build clean binary-indep binary-arch binary install configure get-orig-source