[DRE-commits] [ruby-gherkin] 05/08: Drop debian/Rakefile, no longer necessary.

Stefano Rivera stefano at rivera.za.net
Fri Jul 22 18:42:53 UTC 2016


This is an automated email from the git hooks/post-receive script.

stefanor pushed a commit to branch master
in repository ruby-gherkin.

commit 4d68fee6f1bd3d9d8df2abbfa2967926d68d77bf
Author: Stefano Rivera <stefanor at debian.org>
Date:   Wed Jul 20 16:43:17 2016 -0700

    Drop debian/Rakefile, no longer necessary.
---
 debian/Rakefile  | 52 ----------------------------------------------------
 debian/changelog |  1 +
 debian/rules     |  8 --------
 3 files changed, 1 insertion(+), 60 deletions(-)

diff --git a/debian/Rakefile b/debian/Rakefile
deleted file mode 100644
index a05f242..0000000
--- a/debian/Rakefile
+++ /dev/null
@@ -1,52 +0,0 @@
-# Rakefile inspired by tasks/compile.rake
-# modified to jsut generate .rb and .c from ragel
-# and skip compilation of the .c files
-# Last-modified: 2013-08-12
-
-require 'rake/clean'
-require File.expand_path(File.dirname(__FILE__) + '/../tasks/ragel_task')
-BYPASS_NATIVE_IMPL = true
-require File.expand_path(File.dirname(__FILE__) + '/../lib/gherkin/i18n')
-
-CLEAN.include [
-  'pkg', 'tmp',
-  '**/*.{o,bundle,jar,so,obj,pdb,lib,def,exp,log,rbc}', 'ext',
-  'java/target',
-  'lib/*.dll',
-  'ext/**/*.c',
-  'doc'
-]
-
-langs = Gherkin::I18n.all
-
-desc "generate files"
-task :generate
-
-langs.each do |i18n|
-  rb = RagelTask.new('rb', i18n)
-  c = RagelTask.new('c', i18n)
-
-  lexer_dir = "ext/gherkin_lexer_#{i18n.underscored_iso_code}"
-  extconf = lexer_dir + "/extconf.rb"
-
-  directory lexer_dir
-
-  file extconf => lexer_dir do
-    FileUtils.mkdir(File.dirname(extconf)) unless File.directory?(File.dirname(extconf))
-    File.open(extconf, "w") do |io|
-      io.write(<<-EOF)
-require 'mkmf'
-CONFIG['warnflags'].gsub!(/-Wshorten-64-to-32/, '') if CONFIG['warnflags']
-$CFLAGS << ' -O0' if CONFIG['CC'] =~ /gcc|clang/
-dir_config("gherkin_lexer_#{i18n.underscored_iso_code}")
-have_library("c", "main")
-create_makefile("gherkin_lexer_#{i18n.underscored_iso_code}")
-EOF
-    end
-  end
-    
-    desc "generate files for #{i18n.underscored_iso_code}"
-    task :"gherkin_lexer_#{i18n.underscored_iso_code}" => [extconf, rb.target, c.target]
-    
-    task :generate => [:"gherkin_lexer_#{i18n.underscored_iso_code}"]
-end
diff --git a/debian/changelog b/debian/changelog
index ca40485..194d1bb 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,7 @@ ruby-gherkin (4.0.0-1) UNRELEASED; urgency=medium
   * New upstream release.
   * Drop all patches, superseded upstream.
   * Drop (Build-)Dependencies: ragel, ruby-json, ruby-multi-json.
+  * Drop debian/Rakefile, no longer necessary.
 
  -- Stefano Rivera <stefanor at debian.org>  Wed, 20 Jul 2016 16:22:33 -0700
 
diff --git a/debian/rules b/debian/rules
index 2842089..e195ce2 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,11 +5,3 @@
 
 override_dh_installchangelogs:
 	dh_installchangelogs History.md
-
-override_dh_auto_install:
-	rake -I lib/ -f debian/Rakefile generate
-	dh_auto_install -O--buildsystem=ruby
-
-override_dh_clean:
-	rake -I lib/ -f debian/Rakefile clean
-	dh_clean

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-gherkin.git



More information about the Pkg-ruby-extras-commits mailing list