[DRE-commits] [ruby-nokogumbo] 05/08: add patch to build against system libgumbo
Cédric Boutillier
boutil at moszumanska.debian.org
Thu Jul 23 18:55:23 UTC 2015
This is an automated email from the git hooks/post-receive script.
boutil pushed a commit to branch master
in repository ruby-nokogumbo.
commit 4116d4a8ec52f73f75e1ee2cdd9cdc69f5226e1e
Author: Cédric Boutillier <boutil at debian.org>
Date: Thu Jul 23 20:36:17 2015 +0200
add patch to build against system libgumbo
---
debian/patches/clean_extconf.patch | 32 ++++++++++++++++++++++++++++++++
debian/patches/series | 1 +
debian/tests/control.ex | 13 -------------
3 files changed, 33 insertions(+), 13 deletions(-)
diff --git a/debian/patches/clean_extconf.patch b/debian/patches/clean_extconf.patch
new file mode 100644
index 0000000..5ed7eef
--- /dev/null
+++ b/debian/patches/clean_extconf.patch
@@ -0,0 +1,32 @@
+Description: simplify extconf.rb file building C extension
+ * force building against system libgumbo
+Author: Cédric Boutillier <boutil at debian.org>
+Last-Update: 2015-07-23
+Forwarded: not-needed
+
+--- ruby-nokogumbo-1.4.2+ds.orig/ext/nokogumboc/extconf.rb
++++ ruby-nokogumbo-1.4.2+ds/ext/nokogumboc/extconf.rb
+@@ -27,22 +27,5 @@ if have_library('xml2', 'xmlNewDoc')
+ end
+ end
+
+-# add in gumbo-parser source from github if not already installed
+-unless have_library('gumbo', 'gumbo_parse')
+- rakehome = ENV['RAKEHOME'] || File.expand_path('../..')
+- unless File.exist? "#{rakehome}/ext/nokogumboc/gumbo.h"
+- require 'fileutils'
+- FileUtils.cp Dir["#{rakehome}/gumbo-parser/src/*"],
+- "#{rakehome}/ext/nokogumboc"
+-
+- case RbConfig::CONFIG['target_os']
+- when 'mingw32', /mswin/
+- FileUtils.cp Dir["#{rakehome}/gumbo-parser/visualc/include/*"],
+- "#{rakehome}/ext/nokogumboc"
+- end
+-
+- $srcs = $objs = nil
+- end
+-end
+-
++have_library("gumbo")
+ create_makefile('nokogumboc')
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..157cbea
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+clean_extconf.patch
diff --git a/debian/tests/control.ex b/debian/tests/control.ex
deleted file mode 100644
index d604201..0000000
--- a/debian/tests/control.ex
+++ /dev/null
@@ -1,13 +0,0 @@
-# AUTOGENERATED FILE
-#
-# As of autopkgtest 3.5, Ruby packages that use gem2deb are automatically
-# detected, and if debian/tests/control does not exist the contents below will
-# be assumed (with the exception of gem2deb being filtered out from
-# @builddeps@):
-
-Test-Command: gem2deb-test-runner --autopkgtest --check-dependencies 2>&1
-Depends: @, @builddeps@, gem2deb-test-runner
-
-# if you would need to change something to the above, to that and rename this
-# file to `control`. Otherwise, you should probably delete this file
-# (recommended).
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-nokogumbo.git
More information about the Pkg-ruby-extras-commits
mailing list