[DRE-commits] [ruby-mathgl] 03/03: Create Debian package

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 71c9a9b7632119e686c63994636d289c2f73df56
Author: Youhei SASAKI <uwabami at gfd-dennou.org>
Date:   Sun Mar 6 22:53:28 2016 +0900

    Create Debian package
    
    Signed-off-by: Youhei SASAKI <uwabami at gfd-dennou.org>
---
 debian/control              | 14 ++++++++------
 debian/copyright            | 28 ++++++++++++++++++++++++++++
 debian/ruby-mathgl.docs     |  1 +
 debian/ruby-mathgl.examples |  1 +
 debian/rules                |  7 +++++++
 ext/mathgl/extconf.rb       | 11 +++++++----
 6 files changed, 52 insertions(+), 10 deletions(-)

diff --git a/debian/control b/debian/control
index 9688195..5f6fdb0 100644
--- a/debian/control
+++ b/debian/control
@@ -3,11 +3,11 @@ Section: ruby
 Priority: optional
 Maintainer: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers at lists.alioth.debian.org>
 Uploaders: Youhei SASAKI <uwabami at gfd-dennou.org>
-Build-Depends: debhelper (>= 9), gem2deb, ruby-narray, libmgl-dev
-Standards-Version: 3.9.6
-Homepage: http://masa16.github.io/narray/
-Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-narray.git
-Vcs-Browser: http://anonscm.debian.org/gitweb?p=pkg-ruby-extras/ruby-narray.git;a=summary
+Build-Depends: debhelper (>= 9), gem2deb, libmgl-dev
+Standards-Version: 3.9.7
+Homepage: http://masa16.github.io/ruby-mathgl/
+Vcs-Git: https://anonscm.debian.org/cgit/pkg-ruby-extras/ruby-mathgl.git
+Vcs-Browser: https://anonscm.debian.org/cgit/pkg-ruby-extras/ruby-mathgl.git
 XS-Ruby-Versions: all
 
 Package: ruby-mathgl
@@ -16,4 +16,6 @@ XB-Ruby-Versions: ${ruby:Versions}
 Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter
 Description: Ruby wrapper of MathGL, made using SWIG.
  MathGL is a library for scientific data visualization developed by
- Alexey Balakin. This package provides Ruby wrapper of MathGL, made using SWIG.
+ Alexey Balakin.
+ .
+ This package provides Ruby wrapper of MathGL, made using SWIG.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..40c460a
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,28 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: ruby-mathgl
+Source: http://masa16.github.io/ruby-mathgl/
+
+Files: *
+Copyright: 2015 Masahiro TANAKA <masa16.tanaka at gmail.com>
+License: LGPL-3.0+
+
+Files: debian/*
+Copyright: 2016 Youhei SASAKI <uwabami at gfd-dennou.org>
+License: LGPL-3.0+
+
+License: LGPL-3.0+
+ This package is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 3 of the License, or (at your option) any later version.
+ .
+ This package is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ Lesser General Public License for more details.
+ .
+ You should have received a copy of the GNU Lesser General Public License
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
+ .
+ On Debian systems, the complete text of the GNU Lesser General
+ Public License can be found in "/usr/share/common-licenses/LGPL-3".
\ No newline at end of file
diff --git a/debian/ruby-mathgl.docs b/debian/ruby-mathgl.docs
new file mode 100644
index 0000000..b43bf86
--- /dev/null
+++ b/debian/ruby-mathgl.docs
@@ -0,0 +1 @@
+README.md
diff --git a/debian/ruby-mathgl.examples b/debian/ruby-mathgl.examples
new file mode 100644
index 0000000..d64a3d9
--- /dev/null
+++ b/debian/ruby-mathgl.examples
@@ -0,0 +1 @@
+sample
diff --git a/debian/rules b/debian/rules
index a613c77..12eb742 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,3 +2,10 @@
 
 %:
 	dh $@ --buildsystem ruby --with ruby
+
+override_dh_auto_clean:
+	dh_auto_clean
+	-[ ! -f $(CURDIR)/ext/mathgl/fltk.cxx ] || rm -f $(CURDIR)/ext/mathgl/fltk.cxx
+	-[ ! -f $(CURDIR)/ext/mathgl/glut.cxx ] || rm -f $(CURDIR)/ext/mathgl/glut.cxx
+	-[ ! -f $(CURDIR)/ext/mathgl/qt.cxx ] || rm -f $(CURDIR)/ext/mathgl/qt.cxx
+
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"

-- 
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