[ignition-cmake] 02/03: Initial import

Jose Luis Rivero jrivero-guest at moszumanska.debian.org
Mon Nov 20 16:45:56 UTC 2017


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

jrivero-guest pushed a commit to branch master
in repository ignition-cmake.

commit 5aeebf9cedffd855990ddcede503202af7642470
Author: Jose Luis Rivero <jrivero at osrfoundation.org>
Date:   Mon Nov 20 16:39:48 2017 +0000

    Initial import
---
 debian/changelog     | 13 ++++++++
 debian/compat        |  1 +
 debian/control       | 28 ++++++++++++++++++
 debian/copyright     | 60 +++++++++++++++++++++++++++++++++++++
 debian/docs          |  3 ++
 debian/files         |  2 ++
 debian/format        |  1 +
 debian/rules         |  9 ++++++
 debian/source/format |  1 +
 debian/tests/build   | 83 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 debian/tests/control |  2 ++
 debian/watch         |  3 ++
 12 files changed, 206 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..cb0c430
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,13 @@
+ignition-cmake (0.2.0~pre1-2) unstable; urgency=medium
+
+  * Imported Upstream version 0.2.0~pre1
+
+ -- Jose Luis Rivero <jrivero at osrfoundation.org>  Mon, 20 Nov 2017 16:30:24 +0000
+
+ignition-cmake (0.2.0~pre1-1) unstable; urgency=medium
+
+  * Imported Upstream version 0.2.0~pre1
+  * Initial release (Closes: #882237)
+
+ -- Jose Luis Rivero <jrivero at osrfoundation.org>  Mon, 20 Nov 2017 16:30:01 +0000
+
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..f599e28
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+10
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..0108d8a
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,28 @@
+Source: ignition-cmake
+Maintainer: Debian Science Maintainers <debian-science-maintainers at lists.alioth.debian.org>
+Uploaders: Jose Luis Rivero <jrivero at osrfoundation.org>
+Section: science
+Testsuite: autopkgtest
+Priority: extra
+Build-Depends: cmake,
+               debhelper (>= 10),
+               libgtest-dev,
+               python,
+               ruby-ronn
+Standards-Version: 4.0.0
+Vcs-Browser: https://anonscm.debian.org/cgit/debian-science/packages/ignition-cmake.git
+Vcs-Git: https://anonscm.debian.org/cgit/debian-science/packages/ignition-cmake.git
+Homepage: http://ignitionrobotics.org/libraries/cmake
+
+Package: libignition-cmake-dev
+Architecture: any
+Multi-Arch: same
+Section: libdevel
+Depends: ${misc:Depends}
+Description: Ignition Robotics CMake Library - Development files
+ CMake modules to be used by the Ignition projects.
+ . 
+ This package is required to build ignition projects, as well as to link your
+ third party projects against them. It provides modules that are used to find
+ dependencies of ignition projects and generate cmake targets for consumers of
+ ignition projects to link against.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..b26fcca
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,60 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: ignmath
+Upstream-Contact: gazebo-list at gazebosim.org
+Source: https://bitbucket.org/ignitionrobotics/ign_math
+Files-Excluded: test/gtest
+
+Files: *
+Copyright: 2014-2015 Open Source Robotics Foundation
+License: Apache
+ See '/usr/share/common-licenses/Apache-2.0'.
+
+Files: tools/check_test_ran.py
+Copyright: 2008, Willow Garage, Inc.
+License: BSD-3-clause
+
+Files: tools/cpplint.py
+Copyright: 2009 Google Inc.
+License: BSD-3-clause
+
+Files: cmake/Ronn2Man.cmake
+Copyright: 2009, 2012 Emmanuel Roullit.
+License: GPL-2
+ See '/usr/share/common-licenses/GPL-2'.
+
+Files: cmake/TargetArch.cmake
+Copyright: 2012 Petroules Corporation. All rights reserved.
+License: BSD-3-clause
+
+License: BSD-3-clause
+ Software License Agreement (BSD License)
+ . 
+ Copyright (c) 2008, Willow Garage, Inc.
+ All rights reserved.
+ .
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+ .
+  * Redistributions of source code must retain the above copyright
+    notice, this list of conditions and the following disclaimer.
+  * Redistributions in binary form must reproduce the above
+    copyright notice, this list of conditions and the following
+    disclaimer in the documentation and/or other materials provided
+    with the distribution.
+  * Neither the name of the Willow Garage nor the names of its
+    contributors may be used to endorse or promote products derived
+    from this software without specific prior written permission.
+ . 
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
+ ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ POSSIBILITY OF SUCH DAMAGE.
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..46a4ca7
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1,3 @@
+AUTHORS
+NEWS
+README.md
diff --git a/debian/files b/debian/files
new file mode 100644
index 0000000..a490ba8
--- /dev/null
+++ b/debian/files
@@ -0,0 +1,2 @@
+ignition-cmake_0.2.0~pre1-2_amd64.buildinfo science extra
+libignition-cmake-dev_0.2.0~pre1-2_amd64.deb libdevel extra
diff --git a/debian/format b/debian/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..ffeeacf
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,9 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+
+%:
+	dh $@ --buildsystem=cmake
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/tests/build b/debian/tests/build
new file mode 100755
index 0000000..5cf9a64
--- /dev/null
+++ b/debian/tests/build
@@ -0,0 +1,83 @@
+#!/bin/sh
+# autopkgtest check: Build and run a program against ign-math, to verify that the
+# headers and pkg-config file are installed correctly
+# (C) 2012 Jose Luis Rivero
+# Author: Jose Luis Rivero <jrivero at osrfoundation.org>
+
+set -e
+
+WORKDIR=$(mktemp -d)
+trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM
+cd $WORKDIR
+cat <<EOF > igntest.c
+
+#include <iostream>
+#include <ignition/math.hh>
+
+int main(int argc, char **argv)
+{
+  // Create a triangle with the following vertices:
+  // 1: x = -1, y = 0
+  // 2: x = 0, y = 1
+  // 3: x = 1, y = 0
+  ignition::math::Triangled tri(
+      ignition::math::Vector2d(-1, 0),
+      ignition::math::Vector2d(0, 1),
+      ignition::math::Vector2d(1, 0));
+
+  // The individual vertices are accessible through the [] operator
+  std::cout << "Vertex 1: " << tri[0] << "\n"
+            << "Vertex 2: " << tri[1] << "\n"
+            << "Vertex 3: " << tri[2] << "\n";
+
+  // Each side of the triangle is also accessible via the Side function
+  std::cout << "Side 1: " << tri.Side(0) << "\n"
+            << "Side 2: " << tri.Side(1) << "\n"
+            << "Side 3: " << tri.Side(2) << "\n";
+
+  // It's also possible to set each vertex individually.
+  tri.Set(0, ignition::math::Vector2d(-10, 0));
+  tri.Set(1, ignition::math::Vector2d(0, 20));
+  tri.Set(2, ignition::math::Vector2d(10, 2));
+
+  // Or set all the vertices at once.
+  tri.Set(ignition::math::Vector2d(-1, 0),
+          ignition::math::Vector2d(0, 1),
+          ignition::math::Vector2d(1, 0));
+
+  // You can get the perimeter length and area of the triangle
+  std::cout << "Perimeter=" << tri.Perimeter()
+            << " Area=" << tri.Area() << "\n";
+
+  // The Contains functions check if a line or point is inside the triangle
+  if (tri.Contains(ignition::math::Vector2d(0, 0.5)))
+    std::cout << "Triangle contains the point 0, 0.5\n";
+  else
+    std::cout << "Triangle does not contain the point 0, 0.5\n";
+
+  // The Intersect function check if a line segment intersects the triangle.
+  // It also returns the points of intersection
+  ignition::math::Vector2d pt1, pt2;
+  if (tri.Intersects(ignition::math::Line2d(-2, 0.5, 2, 0.5), pt1, pt2))
+  {
+    std::cout << "A line from (-2, 0.5) to (2, 0.5) intersects "
+              << "the triangle at the\nfollowing points:\n"
+              << "\t Pt1=" << pt1 << "\n"
+              << "\t Pt2=" << pt2 << "\n";
+  }
+  else
+  {
+    std::cout << "A line from (-2, 0.5) to (2, 0.5) does not intersect "
+              << "the triangle\n";
+  }
+
+  // There are more functions in Triangle. Take a look at the API;
+  // http://ignitionrobotics.org/libraries/ign_mat/api
+}
+EOF
+
+g++ -o igntest igntest.c `pkg-config --cflags --libs ignition-math3`
+echo "build: OK"
+[ -x igntest ]
+./igntest
+echo "run: OK"
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..13f08fa
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,2 @@
+Tests: build
+Depends: libignition-math3-dev, pkg-config, build-essential
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..00a82e3
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts=uversionmangle=s/(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha|b|a)\d*)$/$1~$2/,dversionmangle=s/\+(debian|dfsg|ds|deb)\d*$// \
+http://gazebosim.org/distributions/ign-cmake/releases/ .*ignition-cmake-(\d\.\d\.\d)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/ignition-cmake.git



More information about the debian-science-commits mailing list