[docopt.cpp] 03/07: initial debianization

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Thu Dec 8 14:03:20 UTC 2016


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

ghisvail-guest pushed a commit to branch master
in repository docopt.cpp.

commit 74e643b636c25ed661d52ed2852a6121a72e08a1
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Wed Dec 7 23:46:09 2016 +0000

    initial debianization
---
 debian/changelog             |  5 ++++
 debian/compat                |  1 +
 debian/control               | 70 ++++++++++++++++++++++++++++++++++++++++++++
 debian/copyright             | 53 +++++++++++++++++++++++++++++++++
 debian/libdocopt-dev.install |  4 +++
 debian/libdocopt0.install    |  1 +
 debian/rules                 | 21 +++++++++++++
 debian/watch                 |  3 ++
 8 files changed, 158 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..c691b23
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+docopt.cpp (0.6.2-1) UNRELEASED; urgency=low
+
+  * Initial release. (Closes: #847384)
+
+ -- Ghislain Antony Vaillant <ghisvail at gmail.com>  Tue, 13 Sep 2016 09:25:06 +0100
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..8d18fd8
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,70 @@
+Source: docopt.cpp
+Maintainer: Ghislain Antony Vaillant <ghisvail at gmail.com>
+Section: libs
+Priority: optional
+Build-Depends: cmake (>= 3.1),
+               debhelper (>= 10),
+               python
+Standards-Version: 3.9.8
+Vcs-Browser: https://anonscm.debian.org/cgit/debian-science/packages/docopt.cpp.git
+Vcs-Git: https://anonscm.debian.org/git/debian-science/packages/docopt.cpp.git
+Homepage: https://github.com/docopt/docopt.cpp
+
+Package: libdocopt0
+Architecture: any
+Multi-Arch: same
+Depends: ${misc:Depends},
+         ${shlibs:Depends}
+Description: C++11 port of docopt
+ With docopt, the option parser is generated based on the program's docstring.
+ docopt parses the usage pattern ("Usage: ...") and option descriptions (lines
+ starting with dash "-") and ensures that the program invocation matches the
+ usage pattern. It parses options, arguments and commands based on that. The
+ basic idea is that a good help message has all necessary information in it to
+ make a parser.
+ .
+ This is a port of the docopt Python module to C++ with a focus on maintaining
+ full feature parity (and code structure) as the original. The differences from
+ the Python port are:
+ .
+   - The addition of a docopt_parse function, which does not terminate the
+     program on error a docopt::value type to hold the various value types that
+     can be parsed.
+ .
+   - Because C++ is statically-typed and Python is not, some changes were made
+     to the interfaces of the internal parse tree types.
+ .
+   - Because std::regex does not have an equivalent to Python's regex.split,
+     some of the regex's had to be restructured and additional loops used.
+ .
+ This package provides the shared libraries.
+
+Package: libdocopt-dev
+Architecture: any
+Multi-Arch: same
+Section: libdevel
+Depends: ${misc:Depends},
+         libdocopt0 (= ${binary:Version})
+Description: development files for docopt.cpp
+ With docopt, the option parser is generated based on the program's docstring.
+ docopt parses the usage pattern ("Usage: ...") and option descriptions (lines
+ starting with dash "-") and ensures that the program invocation matches the
+ usage pattern. It parses options, arguments and commands based on that. The
+ basic idea is that a good help message has all necessary information in it to
+ make a parser.
+ .
+ This is a port of the docopt Python module to C++ with a focus on maintaining
+ full feature parity (and code structure) as the original. The differences from
+ the Python port are:
+ .
+   - The addition of a docopt_parse function, which does not terminate the
+     program on error a docopt::value type to hold the various value types that
+     can be parsed.
+ .
+   - Because C++ is statically-typed and Python is not, some changes were made
+     to the interfaces of the internal parse tree types.
+ .
+   - Because std::regex does not have an equivalent to Python's regex.split,
+     some of the regex's had to be restructured and additional loops used.
+ .
+ This package provides the development files.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..2181e49
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,53 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: docopt.cpp
+Source: https://github.com/docopt/docopt.cpp
+
+Files: *
+Copyright: 2013 Jared Grubb
+License: Expat or BSL-1.0
+
+Files: debian/*
+Copyright: 2016 Ghislain Antony Vaillant <ghisvail at gmail.com>
+License: Expat
+
+License: BSL-1.0
+ Permission is hereby granted, free of charge, to any person or organization
+ obtaining a copy of the software and accompanying documentation covered by this
+ license (the "Software") to use, reproduce, display, distribute, execute, and
+ transmit the Software, and to prepare derivative works of the Software, and to
+ permit third-parties to whom the Software is furnished to do so, all subject to
+ the following:
+ .
+ The copyright notices in the Software and this entire statement, including the
+ above license grant, this restriction and the following disclaimer, must be
+ included in all copies of the Software, in whole or in part, and all derivative
+ works of the Software, unless such copies or derivative works are solely in the
+ form of machine-executable object code generated by a source language
+ processor.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL
+ THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY
+ DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ THE SOFTWARE.
+
+License: Expat
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
+ this software and associated documentation files (the "Software"), to deal in
+ the Software without restriction, including without limitation the rights to
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
+ of the Software, and to permit persons to whom the Software is furnished to do
+ so, subject to the following conditions:
+ .
+ The above copyright notice and this permission notice shall be included in all
+ copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ SOFTWARE.
diff --git a/debian/libdocopt-dev.install b/debian/libdocopt-dev.install
new file mode 100644
index 0000000..d469afa
--- /dev/null
+++ b/debian/libdocopt-dev.install
@@ -0,0 +1,4 @@
+usr/include
+usr/lib/*/*.a
+usr/lib/*/*.so
+usr/lib/*/cmake
diff --git a/debian/libdocopt0.install b/debian/libdocopt0.install
new file mode 100644
index 0000000..3de3b10
--- /dev/null
+++ b/debian/libdocopt0.install
@@ -0,0 +1 @@
+usr/lib/*/*.so.*
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..05f9eb5
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,21 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE = 1
+
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+
+%:
+	dh $@
+
+override_dh_auto_configure:
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
+	dh_auto_configure -- -DWITH_TESTS=ON
+else
+	dh_auto_configure -- -DWITH_TESTS=OFF
+endif
+
+override_dh_auto_test:
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
+	./*/run_tests
+endif
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..ad690dc
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts=filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/docopt.cpp-$1\.tar\.gz/ \
+https://github.com/docopt/docopt.cpp/tags .*/v?(\d\S*)\.tar\.gz

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



More information about the debian-science-commits mailing list