[pkg-d-commits] [gir-to-d] 02/03: Initial packaging

Matthias Klumpp mak at moszumanska.debian.org
Thu May 25 18:34:53 UTC 2017


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

mak pushed a commit to branch master
in repository gir-to-d.

commit 07c9cb27cb01d75f9bacf8ef3cd9622f0e9aa87a
Author: Matthias Klumpp <mak at debian.org>
Date:   Thu May 25 20:30:24 2017 +0200

    Initial packaging
---
 debian/changelog            |  5 +++++
 debian/compat               |  1 +
 debian/control              | 24 ++++++++++++++++++++++++
 debian/copyright            | 22 ++++++++++++++++++++++
 debian/gbp.conf             |  2 ++
 debian/gir-to-d.install     |  1 +
 debian/rules                | 34 ++++++++++++++++++++++++++++++++++
 debian/source/format        |  1 +
 debian/source/local-options |  2 ++
 debian/watch                |  4 ++++
 10 files changed, 96 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..1b41ba8
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+gir-to-d (0.9.0-1) UNRELEASED; urgency=medium
+
+  * Initial release (Closes: #863336)
+
+ -- Matthias Klumpp <mak at debian.org>  Thu, 25 May 2017 20:16:08 +0200
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..bf8bad7
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,24 @@
+Source: gir-to-d
+Section: devel
+Priority: optional
+Maintainer: Debian D Language Group <pkg-d-devel at lists.alioth.debian.org>
+Uploaders: Matthias Klumpp <mak at debian.org>
+Build-Depends: debhelper (>= 10),
+               ldc,
+               meson,
+               pkg-config
+Standards-Version: 3.9.8
+Homepage: https://github.com/gtkd-developers/gir-to-d
+Vcs-Git: https://anonscm.debian.org/git/pkg-d/gir-to-d.git
+Vcs-Browser: https://anonscm.debian.org/git/pkg-d/gir-to-d.git
+
+Package: gir-to-d
+Architecture: any
+Depends: ${misc:Depends},
+         ${shlibs:Depends}
+Description: Create D bindings from GObject introspection files
+ GObject Introspection provides machine readable introspection data
+ of the API of C libraries.
+ .
+ GirToD is a command-line tool which builds bindings for the
+ D programming language from GObject Introspection (GIR) data.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..a1dc2fa
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,22 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: GirToD
+Upstream-Contact: Mike Wey <mike at mikewey.eu>
+Source: https://github.com/gtkd-developers/gir-to-d
+
+Files: *
+Copyright: (c) 2012-2017 Mike Wey <mike at mikewey.eu>
+License: LGPL-3+
+
+License: LGPL-3+
+ This library is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Lesser General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+ .
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ GNU Lesser General Public License for more details.
+ .
+ On Debian systems, the complete text of the GNU Lesser General
+ Public License version 3 can be found in "/usr/share/common-licenses/LGPL-3".
diff --git a/debian/gbp.conf b/debian/gbp.conf
new file mode 100644
index 0000000..0eef220
--- /dev/null
+++ b/debian/gbp.conf
@@ -0,0 +1,2 @@
+[buildpackage]
+sign-tags = True
diff --git a/debian/gir-to-d.install b/debian/gir-to-d.install
new file mode 100644
index 0000000..aa118b4
--- /dev/null
+++ b/debian/gir-to-d.install
@@ -0,0 +1 @@
+/usr/bin/girtod
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..4bd5748
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,34 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+#export DH_VERBOSE=1
+
+GIRTOD_FLAGS := --prefix=/usr \
+		--buildtype=plain
+
+export DFLAGS=-O2 -g -release -wi
+
+# Define install target dir
+INSTALLDIR = $(CURDIR)/debian/tmp
+
+%:
+	dh $@ --parallel
+
+override_dh_auto_configure:
+	mkdir build
+	(cd build && meson $(GIRTOD_FLAGS) ..)
+
+override_dh_auto_build:
+	ninja -Cbuild -v
+
+override_dh_auto_install:
+	DESTDIR=$(INSTALLDIR) ninja -Cbuild -v install
+
+override_dh_auto_test:
+	ninja -Cbuild -v test
+
+override_dh_install:
+	dh_install --list-missing
+
+override_dh_clean:
+	rm -rf build/
+	dh_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/source/local-options b/debian/source/local-options
new file mode 100644
index 0000000..9cdfca9
--- /dev/null
+++ b/debian/source/local-options
@@ -0,0 +1,2 @@
+unapply-patches
+abort-on-upstream-changes
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..ec45304
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,4 @@
+version=3
+
+opts=filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/<project>-$1\.tar\.gz/ \
+  https://github.com/gtkd-developers/gir-to-d/tags .*/v?(\d\S*)\.tar\.gz

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-d/gir-to-d.git



More information about the pkg-d-commits mailing list