[lua-torch-sundown] 01/01: d/*: update packaging

Zhou Mo cdluminate-guest at moszumanska.debian.org
Mon Aug 15 13:18:39 UTC 2016


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

cdluminate-guest pushed a commit to branch master
in repository lua-torch-sundown.

commit d3e393e26094a9dd51c9f04d31b63b82d9f57902
Author: Zhou Mo <cdluminate at gmail.com>
Date:   Mon Aug 15 13:18:08 2016 +0000

    d/*: update packaging
---
 debian/control                    |  11 ++-
 debian/copyright                  | 161 ++++++++++++--------------------------
 debian/patches/make-lintian-happy |  10 +++
 debian/patches/series             |   1 +
 debian/rules                      |   1 +
 debian/stub.c                     |   7 +-
 6 files changed, 75 insertions(+), 116 deletions(-)

diff --git a/debian/control b/debian/control
index 3e7f065..4bfc2cd 100644
--- a/debian/control
+++ b/debian/control
@@ -14,5 +14,12 @@ Architecture: any
 Multi-Arch: same
 Depends: ${misc:Depends}, ${shlibs:Depends}, lua5.1 | luajit,
 XB-Lua-Versions: ${lua:Versions}
-Description: FIXME
- FIXME
+Description: Sundown Library (a Markdown implementation) for Torch Framework
+ This is a LuaJIT interface to the Sundown library (a Markdown implementation).
+ .
+ To render into HTML, the easiest is to use the provided `renderHTML()`
+ function (aliased to `render()`), which interfaces Sundown renderer with
+ Houdini HTML default renderer.
+ .
+ This package also provides an extra renderer `renderASCII()` which outputs
+ pretty colored ASCII for Markdown pages.
diff --git a/debian/copyright b/debian/copyright
index a4206b4..c4c66e5 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -1,108 +1,10 @@
 Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
-Upstream-Name: lua-torch-sundown
-Source: <url://example.com>
+Upstream-Name: torch/sundown-ffi
+Source: https://github.com/torch/sundown-ffi
 
-Files:     .gitignore
-           .travis.yml
-           CMakeLists.txt
-           README.md
-           ascii.lua
-           debian/clean
-           debian/compat
-           debian/control
-           debian/lua-torch-paths.docs
-           debian/lua-torch-paths.lintian-overrides
-           debian/lua5.1.dh-lua.conf
-           debian/patches/cmake-change-for-debian-build
-           debian/patches/fix-upstream-header-file
-           debian/patches/series
-           debian/rules
-           debian/source/format
-           env.lua
-           html.lua
-           html/houdini.h
-           html/houdini_href_e.c
-           html/houdini_html_e.c
-           htmlcdefs.lua
-           init.lua
-           mdcat.lua
-           rocks/sundown-scm-1.rockspec
-           sdcdefs.lua
-           src/html_blocks.h
-           src/stack.c
-           src/stack.h
-Copyright: __NO_COPYRIGHT_NOR_LICENSE__
-License:   __NO_COPYRIGHT_NOR_LICENSE__
-
-Files:     html/html.c
-           html/html.h
-           html/html_smartypants.c
-           src/autolink.c
-           src/autolink.h
-           src/buffer.c
-           src/buffer.h
-           src/markdown.c
-           src/markdown.h
-Copyright: 2008-2009 Natacha Porté
-           2011 Vicent Marti
-           2011 Vicent Martí
-License:   ISC
- Permission to use, copy, modify, and distribute this software for any
- purpose with or without fee is hereby granted, provided that the above
- copyright notice and this permission notice appear in all copies.
- .
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
- ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
- OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-
-Files:     LICENSE.md
+Files:     *
 Copyright: 2013 Idiap Research Institute (Ronan Collobert)
-License:   BSD-3-Clause
- Redistribution and use in source and binary forms, with or without
- modification, are permitted provided that the following conditions are met:
- .
- 1. Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- .
- 2. 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.
- .
- 3. The name of Idiap Research Institute 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.
- .
- On Debian systems, the complete text of the BSD 3-clause "New" or "Revised"
- License can be found in `/usr/share/common-licenses/BSD'.
-
-#----------------------------------------------------------------------------
-# Files marked as NO_LICENSE_TEXT_FOUND may be covered by the following
-# license/copyright files.
-
-#----------------------------------------------------------------------------
-# License file: LICENSE.md
- ===============================================================================
- .
- sundown-ffi -- http://github.com/andresy/sundown
- .
- Copyright (c) 2013 Idiap Research Institute (Ronan Collobert)
- .
+License:   Idiap-BSD-3-Clause
  All rights reserved.
  .
  Redistribution and use in source and binary forms, with or without
@@ -130,21 +32,56 @@ License:   BSD-3-Clause
  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.
- .
- ===============================================================================
- .
- Sundown library -- http://github.com/vmg/sundown
- .
+
+Files:     html/html.c
+           html/html.h
+           html/html_smartypants.c
+           src/autolink.c
+           src/autolink.h
+           src/buffer.c
+           src/buffer.h
+           src/markdown.c
+           src/markdown.h
+Copyright: 2008-2009 Natacha Porté
+           2011 Vicent Marti
+           2011 Vicent Martí
+License:   ISC
  Permission to use, copy, modify, and distribute this software for any
  purpose with or without fee is hereby granted, provided that the above
  copyright notice and this permission notice appear in all copies.
  .
  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
- SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
- IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+
+Files:     debian/*
+Copyright: 2016 Zhou Mo <cdluminate at gmail.com>
+License:   BSD-3-Clause
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+ 1. Redistributions of source code must retain the above copyright
+    notice, this list of conditions and the following disclaimer.
+ 2. 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.
+ 3. Neither the name of the University 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 HOLDERS 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/patches/make-lintian-happy b/debian/patches/make-lintian-happy
new file mode 100644
index 0000000..793eb5a
--- /dev/null
+++ b/debian/patches/make-lintian-happy
@@ -0,0 +1,10 @@
+Forward: no, keep it here.
+diff --git a/mdcat.lua b/mdcat.lua
+index c3f075b..8930a4a 100644
+--- a/mdcat.lua
++++ b/mdcat.lua
+@@ -1,4 +1,3 @@
+-#!/usr/bin/env lua
+ 
+ local ascii = require 'sundown.ascii'
+ assert(#arg == 1, 'usage: mdcat <file.md>')
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..aecf057
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+make-lintian-happy
diff --git a/debian/rules b/debian/rules
index e073fd5..96b5b41 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,6 +8,7 @@ SOURCEROOT=$(shell pwd)
 
 override_dh_auto_configure:
 	ln -s . sundown
+	sed -i -e '1d' mdcat.lua # remove #! line to make lintian happy
 #	set -e; mkdir libsundown.build; cd libsundown.build; cmake .. \
 #		-DCMAKE_INSTALL_PREFIX=$(SOURCEROOT)/debian/tmp/ \
 #		-DLIBDIR=$(SOURCEROOT)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/ \
diff --git a/debian/stub.c b/debian/stub.c
index 0321a70..d6f2c83 100644
--- a/debian/stub.c
+++ b/debian/stub.c
@@ -1,12 +1,15 @@
-/* This is just a stub, for making dh_lua happy.
+/* This is just a stub, created for making dh_lua happy.
    dh_lua requires luaopen_libsundown in libsundown.so, however
-   this library is interfaced in lua with FFI, hence there is no
+   this library is interfaced to lua with FFI, hence there is no
    such function provided by upstream.
  */
 #include <lua.h>
+#include <stdio.h>
 
 int
 luaopen_libsundown (lua_State *L)
 {
+  printf("Note, the function luaopen_libsundown is a stub.\n\
+Shared library libsundown.so should be used via FFI.\n");
   return 0;
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/lua-torch-sundown.git



More information about the debian-science-commits mailing list