[DRE-commits] [ruby-mathgl] 02/03: Add patch: Add cflags("-x c++") in order to check C++ header

Youhei SASAKI uwabami-guest at moszumanska.debian.org
Sun Mar 6 13:53:55 UTC 2016


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

uwabami-guest pushed a commit to branch master
in repository ruby-mathgl.

commit 7f4aba601956aa301a7a0b0b9d8117458dc8a12b
Author: Youhei SASAKI <uwabami at gfd-dennou.org>
Date:   Sun Mar 6 22:32:23 2016 +0900

    Add patch: Add cflags("-x c++") in order to check C++ header
    
    Signed-off-by: Youhei SASAKI <uwabami at gfd-dennou.org>
---
 .../0001-Check-C-header-Add-cflags-x-c.patch       | 31 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 2 files changed, 32 insertions(+)

diff --git a/debian/patches/0001-Check-C-header-Add-cflags-x-c.patch b/debian/patches/0001-Check-C-header-Add-cflags-x-c.patch
new file mode 100644
index 0000000..c293d38
--- /dev/null
+++ b/debian/patches/0001-Check-C-header-Add-cflags-x-c.patch
@@ -0,0 +1,31 @@
+From: Youhei SASAKI <uwabami at gfd-dennou.org>
+Date: Sun, 6 Mar 2016 22:29:46 +0900
+Subject: Check C++ header: Add cflags("-x c++")
+
+Signed-off-by: Youhei SASAKI <uwabami at gfd-dennou.org>
+---
+ ext/mathgl/extconf.rb | 11 +++++++----
+ 1 file changed, 7 insertions(+), 4 deletions(-)
+
+diff --git a/ext/mathgl/extconf.rb b/ext/mathgl/extconf.rb
+index 8127d09..9bbdae6 100644
+--- a/ext/mathgl/extconf.rb
++++ b/ext/mathgl/extconf.rb
+@@ -6,10 +6,13 @@ require "mkmf"
+ #  --with-mathgl-lib=path
+ 
+ dir_config("mathgl")
+-exit unless have_header("mgl2/type.h")
+-exit unless have_header("mgl2/data.h")
+-exit unless have_header("mgl2/mgl.h")
+-exit unless have_library("mgl")
++# check C++ header
++with_cflags(" -x c++ ") do
++  exit unless have_header("mgl2/type.h")
++  exit unless have_header("mgl2/data.h")
++  exit unless have_header("mgl2/mgl.h")
++  exit unless have_library("mgl")
++end
+ $objs = ["mathgl.o"]
+ if have_header("mgl2/qt.h") && have_library("mgl-qt")
+   $objs << "qt.o"
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..8937e9b
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-Check-C-header-Add-cflags-x-c.patch

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



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