--- yaml-mode-0.0.7.orig/debian/yaml-mode.emacsen-remove +++ yaml-mode-0.0.7/debian/yaml-mode.emacsen-remove @@ -0,0 +1,15 @@ +#!/bin/sh -e +# /usr/lib/emacsen-common/packages/remove/yaml-mode + +FLAVOR=$1 +PACKAGE=yaml-mode + +if [ ${FLAVOR} != emacs ]; then + if test -x /usr/sbin/install-info-altdir; then + echo remove/${PACKAGE}: removing Info links for ${FLAVOR} + install-info-altdir --quiet --remove --dirname=${FLAVOR} /usr/info/yaml-mode.info.gz + fi + + echo remove/${PACKAGE}: purging byte-compiled files for ${FLAVOR} + rm -rf /usr/share/${FLAVOR}/site-lisp/${PACKAGE} +fi --- yaml-mode-0.0.7.orig/debian/watch +++ yaml-mode-0.0.7/debian/watch @@ -0,0 +1,12 @@ +# Example watch control file for uscan +# Rename this file to "watch" and then you can run the "uscan" command +# to check for upstream updates and more. +# See uscan(1) for format + +# Compulsory line, this is a version 3 file +version=3 + +http://github.com/yoshiki/yaml-mode/downloads .*yaml-mode-(.*)\.tar\.gz + + + --- yaml-mode-0.0.7.orig/debian/yaml-mode.dirs +++ yaml-mode-0.0.7/debian/yaml-mode.dirs @@ -0,0 +1 @@ +usr/share/emacs/site-lisp/yaml-mode --- yaml-mode-0.0.7.orig/debian/rules +++ yaml-mode-0.0.7/debian/rules @@ -0,0 +1,9 @@ +#!/usr/bin/make -f + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/rules/dpatch.mk +# include /usr/share/cdbs/1/class/makefile.mk + +# Add here any variable or target overrides you need. +DESTDIR=$(CURDIR)/debian/yaml-mode +DEB_MAKE_INVOKE=$(MAKE) DESTDIR=$(DESTDIR) \ No newline at end of file --- yaml-mode-0.0.7.orig/debian/yaml-mode.emacsen-startup +++ yaml-mode-0.0.7/debian/yaml-mode.emacsen-startup @@ -0,0 +1,28 @@ +;; -*-emacs-lisp-*- +;; +;; Emacs startup file, e.g. /etc/emacs/site-start.d/50yaml-mode.el +;; for the Debian yaml-mode package +;; +;; Originally contributed by Nils Naumann +;; Modified by Dirk Eddelbuettel +;; Adapted for dh-make by Jim Van Zandt + +;; The yaml-mode package follows the Debian/GNU Linux 'emacsen' policy and +;; byte-compiles its elisp files for each 'emacs flavor' (emacs19, +;; xemacs19, emacs20, xemacs20...). The compiled code is then +;; installed in a subdirectory of the respective site-lisp directory. +;; We have to add this to the load-path: +(let ((package-dir (concat "/usr/share/" + (symbol-name flavor) + "/site-lisp/yaml-mode"))) +;; If package-dir does not exist, the yaml-mode package must have +;; removed but not purged, and we should skip the setup. + (when (file-directory-p package-dir) + ;; Use debian-pkg-add-load-path-item per §9 of debian emacs subpolicy + (debian-pkg-add-load-path-item package-dir ) + (autoload 'yaml-mode "yaml-mode" + "Major mode for editing yaml-mode files." t) + (add-to-list 'auto-mode-alist '("\\.yaml\\'" . yaml-mode)) + (add-to-list 'auto-mode-alist '("\\.yml\\'" . yaml-mode)) + )) + --- yaml-mode-0.0.7.orig/debian/control +++ yaml-mode-0.0.7/debian/control @@ -0,0 +1,18 @@ +Source: yaml-mode +Section: editors +Priority: optional +Maintainer: Vincent Fourmond +Build-Depends: cdbs, debhelper (>= 5), dpatch +Standards-Version: 3.9.1 +Homepage: http://github.com/yoshiki/yaml-mode +Vcs-Git: git://git.debian.org/git/users/fourmond/packages/yaml-mode.git +Vcs-Browser: http://git.debian.org/?p=users/fourmond/packages/yaml-mode.git + +Package: yaml-mode +Architecture: all +Depends: emacs23 | emacsen, emacsen-common (>= 1.4.14), ${misc:Depends} +Description: emacs mode for YAML files + This package provides an emacs major mode for editing + files in the YAML data format. It features syntax + highlighting and auto-indentation. + --- yaml-mode-0.0.7.orig/debian/README.source +++ yaml-mode-0.0.7/debian/README.source @@ -0,0 +1,12 @@ +Note about the source package of yaml-mode. + +This package uses dpatch to manage all modifications to the upstream +source. See /usr/share/doc/dpatch/README.source.gz to get more information +on how to use it. + +Note that, as of version 0.0.4-1, none of the patches are in use +anymore. + + -- Vincent Fourmond , Sat, 30 May 2009 19:08:30 +0200 + + --- yaml-mode-0.0.7.orig/debian/copyright +++ yaml-mode-0.0.7/debian/copyright @@ -0,0 +1,30 @@ +This package was debianized by Vincent Fourmond on +Sat, 21 Apr 2007 00:35:28 +0200. + +It was downloaded from http://yaml-mode.clouder.jp + +Upstream Author: Yoshiki Kurihara + +Copyright: Copyright (C) 2006 by Free Software Foundation, Inc. + +License: + + This package 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 2 of the License, or + (at your option) any later version. + + This package 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 this package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +On Debian systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. + +The Debian packaging is (C) 2007, Vincent Fourmond and +is licensed under the GPL, see above. --- yaml-mode-0.0.7.orig/debian/yaml-mode.install +++ yaml-mode-0.0.7/debian/yaml-mode.install @@ -0,0 +1 @@ +yaml-mode.el usr/share/emacs/site-lisp/yaml-mode --- yaml-mode-0.0.7.orig/debian/docs +++ yaml-mode-0.0.7/debian/docs @@ -0,0 +1 @@ +README --- yaml-mode-0.0.7.orig/debian/changelog +++ yaml-mode-0.0.7/debian/changelog @@ -0,0 +1,91 @@ +yaml-mode (0.0.7-1) unstable; urgency=low + + * New upstream release + * Leave the symlinks behind after byte-compilation (closes: #595451) + * Conforms to standards 3.9.1 + + -- Vincent Fourmond Sat, 12 Feb 2011 23:48:22 +0100 + +yaml-mode (0.0.6-1) unstable; urgency=low + + * New upstream release + + -- Vincent Fourmond Thu, 20 May 2010 22:04:43 +0200 + +yaml-mode (0.0.5-2) unstable; urgency=medium + + * Emacsen installation scripts now make sure the target file do not + exist before symlinking (closes: #572562) + * Urgency medium to fix RC bug in testing + + -- Vincent Fourmond Sat, 06 Mar 2010 13:57:50 +0100 + +yaml-mode (0.0.5-1) unstable; urgency=low + + * New upstream release + * Fix watchfile and control to reflect newer upstream home page + * Now conforms to newer standards + + -- Vincent Fourmond Tue, 09 Feb 2010 01:01:05 +0100 + +yaml-mode (0.0.4-2) unstable; urgency=low + + * Leave a symlink to the source after byte-compilation for the help's + link-to-source to work (closes: 541277). Thanks to Kevin Ryde + for providing the report and the solution. + * Conforms to standards 3.8.3 (no changes required) + + -- Vincent Fourmond Tue, 08 Sep 2009 23:19:53 +0200 + +yaml-mode (0.0.4-1) unstable; urgency=low + + * New Upstream Version + * Dropping 02-fix-regression: integrated upstream (it is the sole + difference with 0.0.3) + * Conforms to standards 3.8.1 + * Adding Vcs-* fields + * Adding ${misc:Depends} for debhelper-induced dependencies. + + -- Vincent Fourmond Sat, 30 May 2009 19:11:06 +0200 + +yaml-mode (0.0.3-6) unstable; urgency=low + + * Fix startup script to match emacs policy (Closes: #454673) + * Added a Homepage field. + * Updated to 3.7.3 (no changes needed) + + -- Vincent Fourmond Sat, 08 Dec 2007 12:32:58 +0100 + +yaml-mode (0.0.3-5) unstable; urgency=low + + * Change regexp for file matching so emacs is not confused + with newlines (Closes: #446184) + + -- Vincent Fourmond Tue, 16 Oct 2007 23:25:08 +0200 + +yaml-mode (0.0.3-4) unstable; urgency=low + + * Switch to emacs22 as preferred dependency (Closes: #433986). + + -- Vincent Fourmond Fri, 20 Jul 2007 22:04:06 +0200 + +yaml-mode (0.0.3-3) unstable; urgency=low + + * Add emacs21 as a dependency to keep lintian happy + + -- Vincent Fourmond Tue, 19 Jun 2007 21:58:32 +0200 + +yaml-mode (0.0.3-2) unstable; urgency=low + + * Package is Arch: all ;-)... + + -- Vincent Fourmond Sat, 21 Apr 2007 02:09:18 +0200 + +yaml-mode (0.0.3-1) unstable; urgency=low + + * Initial release (Closes: #419622) + * Do not use the original makefile, it messes everything up. + * 02-fix-regression: fix bad regression from 0.0.2 + + -- Vincent Fourmond Sat, 21 Apr 2007 01:52:11 +0200 + --- yaml-mode-0.0.7.orig/debian/compat +++ yaml-mode-0.0.7/debian/compat @@ -0,0 +1 @@ +5 --- yaml-mode-0.0.7.orig/debian/yaml-mode.emacsen-install +++ yaml-mode-0.0.7/debian/yaml-mode.emacsen-install @@ -0,0 +1,46 @@ +#! /bin/sh -e +# /usr/lib/emacsen-common/packages/install/yaml-mode + +# Written by Jim Van Zandt , borrowing heavily +# from the install scripts for gettext by Santiago Vila +# and octave by Dirk Eddelbuettel . +# +# Slightly modified by Vincent Fourmond + +FLAVOR=$1 +PACKAGE=yaml-mode + +if [ ${FLAVOR} = emacs ]; then exit 0; fi + +echo install/${PACKAGE}: Handling install for emacsen flavor ${FLAVOR} + +FLAGS="${SITEFLAG} -q -batch -l path.el -f batch-byte-compile" + +ELDIR=/usr/share/emacs/site-lisp/${PACKAGE} +ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE} + +# Install-info-altdir does not actually exist. +# Maybe somebody will write it. +if test -x /usr/sbin/install-info-altdir; then + echo install/${PACKAGE}: install Info links for ${FLAVOR} + install-info-altdir --quiet --section "" "" --dirname=${FLAVOR} /usr/info/${PACKAGE}.info.gz +fi + +install -m 755 -d ${ELCDIR} +cd ${ELDIR} +FILES=`echo *.el` +cd ${ELCDIR} +# Temporarily symlink files for byte-compilation. +for file in ${FILES}; do + rm -f ${file} # Remove all files that could have + # been left here before. + ln -s ../../../emacs/site-lisp/${PACKAGE}/${file} . +done + +cat << EOF > path.el +(setq load-path (cons "." load-path) byte-compile-warnings nil) +EOF +${FLAVOR} ${FLAGS} ${FILES} +rm -f path.el + +exit 0 --- yaml-mode-0.0.7.orig/debian/dirs +++ yaml-mode-0.0.7/debian/dirs @@ -0,0 +1,2 @@ +usr/bin +usr/sbin --- yaml-mode-0.0.7.orig/debian/patches/01-fix-makefile.dpatch +++ yaml-mode-0.0.7/debian/patches/01-fix-makefile.dpatch @@ -0,0 +1,36 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 01-fix-makefile.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: No description. + +@DPATCH@ +diff -urNad yaml-mode-0.0.3~/Makefile yaml-mode-0.0.3/Makefile +--- yaml-mode-0.0.3~/Makefile 2007-01-25 07:51:27.000000000 +0100 ++++ yaml-mode-0.0.3/Makefile 2007-04-21 00:53:22.000000000 +0200 +@@ -1,18 +1,20 @@ + VERSION=0.0.3 + EMACS = emacs +-PREFIX = /usr/local +-INSTALLLIBDIR = $(PREFIX)/share/emacs/site-lisp ++PREFIX = /usr ++INSTALLLIBDIR = $(DESTDIR)$(PREFIX)/share/emacs/site-lisp/yaml-mode + FLAGS = -batch -L $(INSTALLLIBDIR) -q -f batch-byte-compile + SRC = yaml-mode.el + INSTALL = /usr/bin/install -c -m 444 + +-all: bytecompile ++all: install #bytecompile + + bytecompile: + $(EMACS) $(FLAGS) $(SRC) + +-install: bytecompile +- $(INSTALL) yaml-mode.elc $(INSTALLLIBDIR) ++$(INSTALLLIBDIR): ++ install -d $(INSTALLLIBDIR) ++install: $(INSTALLLIBDIR) # bytecompile ++ # $(INSTALL) yaml-mode.elc $(INSTALLLIBDIR) + $(INSTALL) yaml-mode.el $(INSTALLLIBDIR) + + uninstall: --- yaml-mode-0.0.7.orig/debian/patches/02-fix-regression.dpatch +++ yaml-mode-0.0.7/debian/patches/02-fix-regression.dpatch @@ -0,0 +1,20 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 02-fix-regression.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Fix a bad regression from 0.0.2. Failing to patch this +## DP: will cause emacs to hang indefinitely... + +@DPATCH@ +diff -urNad yaml-mode-0.0.3~/yaml-mode.el yaml-mode-0.0.3/yaml-mode.el +--- yaml-mode-0.0.3~/yaml-mode.el 2007-01-25 07:51:27.000000000 +0100 ++++ yaml-mode-0.0.3/yaml-mode.el 2007-04-21 01:50:06.000000000 +0200 +@@ -112,7 +112,7 @@ + (defconst yaml-blank-line-re "^ *$" + "Regexp matching a line containing only (valid) whitespace.") + +-(defconst yaml-comment-re "\\(#*.*\\)" ++(defconst yaml-comment-re "\\(?:^\\|\\s-+\\)\\(#.*\\)" + "Regexp matching a line containing a YAML comment or delimiter.") + + (defconst yaml-directive-re "^\\(?:--- \\)? *%\\(\\w+\\)" --- yaml-mode-0.0.7.orig/debian/patches/00list +++ yaml-mode-0.0.7/debian/patches/00list @@ -0,0 +1,2 @@ +# 01-fix-makefile +# 02-fix-regression