[lua-torch-sundown] 01/01: initialize packaging
Zhou Mo
cdluminate-guest at moszumanska.debian.org
Fri Aug 12 16:02:53 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 01fa0dccd7d67265c5d3265d013736d1eb152266
Author: Zhou Mo <cdluminate at gmail.com>
Date: Fri Aug 12 16:02:35 2016 +0000
initialize packaging
---
debian/changelog | 5 +
debian/clean | 3 +
debian/compat | 1 +
debian/control | 18 ++++
debian/copyright | 150 +++++++++++++++++++++++++++++
debian/lua-torch-sundown.docs | 1 +
debian/lua-torch-sundown.lintian-overrides | 5 +
debian/lua5.1.dh-lua.conf | 10 ++
debian/rules | 29 ++++++
debian/source/format | 1 +
debian/stub.c | 12 +++
11 files changed, 235 insertions(+)
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..93b4b76
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+lua-torch-sundown (0~20160713-g8353f5a-1) unstable; urgency=low
+
+ * Initial release. Closes: #827430
+
+ -- Zhou Mo <cdluminate at gmail.com> Fri, 12 Aug 2016 14:55:13 +0000
diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..f40993f
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1,3 @@
+debian/lua-torch-sundown-dev.install
+debian/lua-torch-sundown.install
+debian/lua_versions
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..3e7f065
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,18 @@
+Source: lua-torch-sundown
+Section: interpreters
+Priority: optional
+Maintainer: Debian Science Maintainers <debian-science-maintainers at lists.alioth.debian.org>
+Uploaders: Zhou Mo <cdluminate at gmail.com>
+Build-Depends: debhelper (>=9), cmake, dh-lua
+Standards-Version: 3.9.8
+Homepage: https://github.com/torch/sundown-ffi
+Vcs-Browser: https://anonscm.debian.org/cgit/debian-science/packages/lua-torch-sundown.git
+Vcs-Git: https://anonscm.debian.org/git/debian-science/packages/lua-torch-sundown.git
+
+Package: lua-torch-sundown
+Architecture: any
+Multi-Arch: same
+Depends: ${misc:Depends}, ${shlibs:Depends}, lua5.1 | luajit,
+XB-Lua-Versions: ${lua:Versions}
+Description: FIXME
+ FIXME
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..a4206b4
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,150 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: lua-torch-sundown
+Source: <url://example.com>
+
+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
+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)
+ .
+ All rights reserved.
+ .
+ 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.
+ .
+ ===============================================================================
+ .
+ Sundown library -- http://github.com/vmg/sundown
+ .
+ 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.
+ .
+ ===============================================================================
diff --git a/debian/lua-torch-sundown.docs b/debian/lua-torch-sundown.docs
new file mode 100644
index 0000000..b43bf86
--- /dev/null
+++ b/debian/lua-torch-sundown.docs
@@ -0,0 +1 @@
+README.md
diff --git a/debian/lua-torch-sundown.lintian-overrides b/debian/lua-torch-sundown.lintian-overrides
new file mode 100644
index 0000000..5ec7637
--- /dev/null
+++ b/debian/lua-torch-sundown.lintian-overrides
@@ -0,0 +1,5 @@
+# [lintian I] no need for such a symbols control file
+lua-torch-sundown: no-symbols-control-file usr/lib/x86_64-linux-gnu/liblua5.1-torch-sundown.so.0.0.0
+
+# [lintian W] this library is for specific lua use instread of general usage.
+lua-torch-sundown: package-name-doesnt-match-sonames liblua5.1-torch-sundown0
diff --git a/debian/lua5.1.dh-lua.conf b/debian/lua5.1.dh-lua.conf
new file mode 100644
index 0000000..c016055
--- /dev/null
+++ b/debian/lua5.1.dh-lua.conf
@@ -0,0 +1,10 @@
+PKG_NAME=torch-sundown
+LUA_MODNAME=libsundown
+LUA_VERSION=5.1
+
+LUA_SOURCES=$(wildcard sundown/*.lua)
+LUA_HEADER=
+CLIB_OBJS= $(subst .c,.lo,$(wildcard src/*.c html/*.c debian/stub.c))
+#CLIB_OBJS=
+CLIB_CFLAGS= -I$(shell pwd)/html -I$(shell pwd)/src -I/usr/include/lua5.1
+LUA_TEST=
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..e073fd5
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,29 @@
+#!/usr/bin/make -f
+export DEB_BUILD_MAINT_OPTIONS= hardening=+all
+DEB_HOST_MULTIARCH=$(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+SOURCEROOT=$(shell pwd)
+
+%:
+ dh $@ --buildsystem=lua --with lua
+
+override_dh_auto_configure:
+ ln -s . sundown
+# set -e; mkdir libsundown.build; cd libsundown.build; cmake .. \
+# -DCMAKE_INSTALL_PREFIX=$(SOURCEROOT)/debian/tmp/ \
+# -DLIBDIR=$(SOURCEROOT)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/ \
+# -DLUADIR=$(SOURCEROOT)/debian/tmp/usr/share/lua/5.1/;
+ dh_auto_configure
+
+override_dh_auto_build:
+# set -e; cd libsundown.build; make;
+ dh_auto_build
+
+override_dh_auto_install:
+# mkdir -p debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/
+# cp -v libsundown.build/libsundown.so \
+# debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/
+ dh_auto_install
+
+override_dh_auto_clean:
+ -$(RM) -rf 5.1-torch-sundown debian/trash sundown libsundown.build/
+ dh_auto_clean
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/stub.c b/debian/stub.c
new file mode 100644
index 0000000..0321a70
--- /dev/null
+++ b/debian/stub.c
@@ -0,0 +1,12 @@
+/* This is just a stub, 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
+ such function provided by upstream.
+ */
+#include <lua.h>
+
+int
+luaopen_libsundown (lua_State *L)
+{
+ 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