[Pkg-javascript-commits] [node-webkitgtk] 02/02: Initial debianization

Jérémy Lal kapouer at moszumanska.debian.org
Sat Sep 6 22:00:42 UTC 2014


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

kapouer pushed a commit to branch master
in repository node-webkitgtk.

commit 4cdd6bc37ba0fb690f13a8db9a636d19c232feaa
Author: Jérémy Lal <kapouer at melix.org>
Date:   Sat Sep 6 22:58:22 2014 +0200

    Initial debianization
---
 debian/changelog     |  6 ++++++
 debian/compat        |  1 +
 debian/control       | 37 +++++++++++++++++++++++++++++++++++++
 debian/copyright     | 34 ++++++++++++++++++++++++++++++++++
 debian/docs          |  1 +
 debian/install       |  3 +++
 debian/rules         | 32 ++++++++++++++++++++++++++++++++
 debian/source/format |  1 +
 debian/tests/control |  2 ++
 debian/tests/require |  3 +++
 debian/watch         |  5 +++++
 11 files changed, 125 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..5ce5a4b
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,6 @@
+node-webkitgtk (0.0.5-1) UNRELEASED; urgency=low
+
+  * Initial release (Closes: #nnnn)
+
+ -- Jérémy Lal <kapouer at melix.org>  Sat, 06 Sep 2014 22:10:40 +0200
+
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..76b4229
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,37 @@
+Source: node-webkitgtk
+Section: web
+Priority: extra
+Maintainer: Debian Javascript Maintainers <pkg-javascript-devel at lists.alioth.debian.org>
+Uploaders: Jérémy Lal <kapouer at melix.org>
+Build-Depends:
+ debhelper (>= 9)
+ , dh-buildinfo
+ , pkg-config
+ , nodejs
+ , node-gyp
+ , node-nan (>= 1.3.0)
+ , libwebkit2gtk-3.0-dev
+ , libglib2.0-dev
+ , libgtk-3-dev
+Standards-Version: 3.9.5
+Homepage: https://github.com/kapouer/node-webkitgtk
+Vcs-Git: git://anonscm.debian.org/pkg-javascript/node-webkitgtk.git
+Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-javascript/node-webkitgtk.git
+XS-Testsuite: autopkgtest
+
+Package: node-webkitgtk
+Architecture: any
+Depends:
+ ${misc:Depends}
+ , ${shlibs:Depends}
+ , nodejs
+Suggests:
+ node-headless (>=0.2.1)
+Description: Drive webkitgtk from Node.js
+ High-level abstraction for webkitgtk bindings.
+ This module allows one to load a url into a WebView, run arbitrary
+ javascript, listen for ready, load, request, response events,
+ cancel requests, get responses data, and supports html, png, pdf
+ output.
+ .
+ Node.js is an event-based server-side JavaScript engine.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..f901259
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,34 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: node-webkitgtk
+Upstream-Contact: https://github.com/kapouer/node-webkitgtk/issues
+Source: https://github.com/kapouer/node-webkitgtk
+
+Files: *
+Copyright: 2014 Jérémy Lal <kapouer at melix.org>
+License: Expat
+
+Files: debian/*
+Copyright: 2014 Jérémy Lal <kapouer at melix.org>
+License: Expat
+
+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/docs b/debian/docs
new file mode 100644
index 0000000..b43bf86
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1 @@
+README.md
diff --git a/debian/install b/debian/install
new file mode 100644
index 0000000..726b27b
--- /dev/null
+++ b/debian/install
@@ -0,0 +1,3 @@
+package.json usr/lib/nodejs/webkitgtk/
+lib usr/lib/nodejs/webkitgtk/
+webkitgtk.js usr/lib/nodejs/webkitgtk/
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..f780b73
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,32 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+%:
+	dh $@
+
+#override_dh_auto_build:
+
+override_dh_auto_test:
+
+override_dh_install:
+	dh_install
+	dh_buildinfo
+	chmod 644 $(CURDIR)/debian/node-webkitgtk/usr/lib/nodejs/webkitgtk/lib/webkitgtk.node
+	chmod 644 $(CURDIR)/debian/node-webkitgtk/usr/lib/nodejs/webkitgtk/lib/ext/webextension.so
+
+override_dh_shlibdeps:
+	dpkg-shlibdeps \
+		-T$(CURDIR)/debian/node-webkitgtk.substvars \
+		$(CURDIR)/debian/node-webkitgtk/usr/lib/nodejs/webkitgtk/lib/webkitgtk.node \
+		$(CURDIR)/debian/node-webkitgtk/usr/lib/nodejs/webkitgtk/lib/ext/webextension.so
+
+override_dh_strip:
+	strip \
+		--remove-section=.comment \
+		--remove-section=.note \
+		--strip-unneeded \
+		$(CURDIR)/debian/node-webkitgtk/usr/lib/nodejs/webkitgtk/lib/webkitgtk.node \
+		$(CURDIR)/debian/node-webkitgtk/usr/lib/nodejs/webkitgtk/lib/ext/webextension.so
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/control b/debian/tests/control
new file mode 100644
index 0000000..34708b5
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,2 @@
+Tests: require
+Depends: node-webkitgtk
diff --git a/debian/tests/require b/debian/tests/require
new file mode 100644
index 0000000..f54d58c
--- /dev/null
+++ b/debian/tests/require
@@ -0,0 +1,3 @@
+#!/bin/sh
+set -e
+nodejs -e "require('webkitgtk');"
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..426527b
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,5 @@
+version=3
+opts=\
+dversionmangle=s/\+(debian|dfsg|ds|deb)(\.\d+)?$//,\
+filenamemangle=s/.*\/v?([\d\.-]+)\.tar\.gz/node-webkitgtk-$1.tar.gz/ \
+ https://github.com/kapouer/node-webkitgtk/tags .*/archive/v?([\d\.]+).tar.gz

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-webkitgtk.git



More information about the Pkg-javascript-commits mailing list