~ubuntu-branches/ubuntu/saucy/ruby-validatable/saucy

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Cédric Boutillier
  • Date: 2012-06-13 23:47:54 UTC
  • Revision ID: package-import@ubuntu.com-20120613234754-9rxi0taw1e5wke0w
Tags: 1.6.7-8
* Move secondary Ruby files into /usr/lib/ruby/vendor_ruby/validatable/ to
  avoid name clash (Closes: #673738).
  + override dh_install in rules to move the files
  + add debian/patches/move_some_rb_files_to_lib_validatable.patch to adapt
    require statements
* Set urgency to high, as this version solves an RC bug
* Adapt versions in Breaks: and Replaces: fields to match the last version
  of the package not following the new Ruby policy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
# If you need to specify the .gemspec (eg there is more than one)
12
12
#export DH_RUBY_GEMSPEC=gem.gemspec
13
13
 
 
14
VENDORDIR     = $(CURDIR)/debian/ruby-validatable/usr/lib/ruby/vendor_ruby
 
15
FILES_TO_MOVE=validations *_validation.rb errors.rb macros.rb object_extension.rb requireable.rb understandable.rb validatable_class_methods.rb validatable_instance_methods.rb
 
16
 
 
17
 
14
18
%:
15
19
        dh $@ --buildsystem=ruby --with ruby
 
20
 
 
21
override_dh_install:
 
22
        dh_install
 
23
        mkdir $(VENDORDIR)/validatable
 
24
        for x in $(FILES_TO_MOVE) ; do \
 
25
                mv $(VENDORDIR)/$$x $(VENDORDIR)/validatable/ ; \
 
26
        done
 
27