From d00660e9e770c027c0ba954df9a27b839bc7b259 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Vanicat?= Date: Sun, 31 Jan 2016 11:00:09 +0100 Subject: Debianisation --- debian/changelog | 5 +++++ debian/compat | 1 + debian/control | 19 +++++++++++++++++++ debian/copyright | 27 +++++++++++++++++++++++++++ debian/docs | 2 ++ debian/elpa-with-editor.info | 1 + debian/rules | 36 ++++++++++++++++++++++++++++++++++++ debian/source/format | 1 + debian/watch | 2 ++ 9 files changed, 94 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/docs create mode 100644 debian/elpa-with-editor.info create mode 100755 debian/rules create mode 100644 debian/source/format create mode 100644 debian/watch diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..8514f99 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +with-editor (2.5.0-1) unstable; urgency=medium + + * As upstream has split this from magit, creating a new package. + + -- Rémi Vanicat Sat, 30 Jan 2016 19:34:00 +0100 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..ecdeaa1 --- /dev/null +++ b/debian/control @@ -0,0 +1,19 @@ +Source: with-editor +Section: editors +Priority: optional +Maintainer: Debian Emacs addons team +Uploaders: Rémi Vanicat +Build-Depends: debhelper (>= 9), + emacs-nox | emacs, dh-elpa (>= 0.0.17), dash-el, + install-info +Standards-Version: 3.9.6 +Homepage: http://magit.vc/ +Vcs-Browser: http://anonscm.debian.org/cgit/pkg-emacsen/pkg/with-editor.git/ +Vcs-Git: git://anonscm.debian.org/pkg-emacsen/pkg/with-editor.git + +Package: elpa-with-editor +Architecture: all +Depends: ${misc:Depends}, dash-el +Description: Call program using Emacs as $EDITOR + With this package, you can call program from Emacs such that they + will use Emacs as an editor. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..23d966c --- /dev/null +++ b/debian/copyright @@ -0,0 +1,27 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Source: https://github.com/magit/with-editor + +Files: * +Copyright: 2014-2015 The Magit Project Contributors +License: GPL-3+ + +Files: debian/* +Copyright: 2016 Rémi Vanicat +License: GPL-3+ + +License: GPL-3+ + with-editor is free software; you can redistribute it and/or modify it + under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + . + with-editor 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 General Public + License for more details. + . + You should have received a copy of the GNU General Public License + along with with-editor. If not, see . + . + On Debian systems, the complete text of the GNU General Public License + can be found in `/usr/share/common-licenses/GPL-3'. diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..7bb49c9 --- /dev/null +++ b/debian/docs @@ -0,0 +1,2 @@ +README.md +with-editor.org diff --git a/debian/elpa-with-editor.info b/debian/elpa-with-editor.info new file mode 100644 index 0000000..e148cc4 --- /dev/null +++ b/debian/elpa-with-editor.info @@ -0,0 +1 @@ +with-editor.info diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..7be665d --- /dev/null +++ b/debian/rules @@ -0,0 +1,36 @@ +#!/usr/bin/make -f +VERSION=2.5.0 + +CP ?= install -p -m 644 +MKDIR ?= install -p -m 755 -d +RMDIR ?= rm -rf +TAR ?= tar + +%: + dh $@ --with elpa --parallel + +override_dh_auto_build: with-editor-$(VERSION).tar + @echo with-editor-$(VERSION).tar > debian/elpa-with-editor.elpa + +override_dh_auto_install: + @echo do not run make install + +override_dh_clean: + dh_clean + rm -f debian/elpa-with-editor.elpa with-editor-*.tar + +define with_editor_pkg +(define-package "with-editor" "$(VERSION)" + "Use the Emacsclient as $$EDITOR" + ()) +endef + +export with_editor_pkg +with-editor-$(VERSION).tar: + @printf "Packing $@\n" + @$(MKDIR) with-editor-$(VERSION) + @printf "$$with_editor_pkg\n" > with-editor-$(VERSION)/with-editor-pkg.el + @$(CP) with-editor.el with-editor-$(VERSION) + @$(TAR) c --mtime=./with-editor-$(VERSION) \ + -f with-editor-$(VERSION).tar with-editor-$(VERSION) + @$(RMDIR) with-editor-$(VERSION) 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/watch b/debian/watch new file mode 100644 index 0000000..90cfa06 --- /dev/null +++ b/debian/watch @@ -0,0 +1,2 @@ +version=3 +https://github.com/magit/with-editor/releases /magit/with-editor/archive/v(\d.+).tar.gz -- cgit v1.2.3