Commit 47593033 authored by Barak A. Pearlmutter's avatar Barak A. Pearlmutter

debianize

parent d19236dc
/*.debhelper
/*.debhelper.log
/*.substvars
/files
/vala-mode-el/
vala-mode-el for Debian
---------------------------
The version number is in a comment in the sole upstream file.
Said file is an attachment to https://live.gnome.org/Vala/Emacs
and as such, I am repackaging it into a tar file manually.
-- Barak A. Pearlmutter <bap@debian.org>, Wed, 26 Sep 2012 21:49:10 +0100
vala-mode-el (0.1-1) unstable; urgency=low
* Initial release
-- Barak A. Pearlmutter <bap@debian.org> Wed, 26 Sep 2012 15:22:30 +0100
Source: vala-mode-el
Section: editors
Priority: extra
Maintainer: Barak A. Pearlmutter <bap@debian.org>
Build-Depends: debhelper (>= 9)
Standards-Version: 3.9.4
Homepage: https://live.gnome.org/Vala/Emacs
Vcs-Git: git://git.debian.org/collab-maint/vala-mode-el.git
Vcs-Browser: http://git.debian.org/?p=collab-maint/vala-mode-el.git;a=summary
Package: vala-mode-el
Architecture: all
Depends: ${misc:Depends}
Enhances: valac, emacs, emacs23, emacs24
Description: Emacs editor major mode for vala source code
The package provides a Vala major mode for Emacsen, and sets it up
for files with extension vala and vapi.
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: vala-mode
Source: <https://live.gnome.org/Vala/Emacs?action=AttachFile&do=view&target=vala-mode.el>
Files: *
Copyright: 2005 Dylan R. E. Moonfire
2008 Étienne BERSAC
License: GPL-2+
Files: debian/*
Copyright: 2012 Barak A. Pearlmutter <bap@debian.org>
License: GPL-2+
License: GPL-2+
This program 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 program 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.
.
On Debian systems, the complete text of the GNU General Public
License version 2 can be found in "/usr/share/common-licenses/GPL-2".
and the complete text of the GNU General Public License version 3 can
be found in "/usr/share/common-licenses/GPL-3".
#! /bin/sh -e
# /usr/lib/emacsen-common/packages/install/vala-mode-el
# Written by Jim Van Zandt <jrv@debian.org>, borrowing heavily
# from the install scripts for gettext by Santiago Vila
# <sanvila@ctv.es> and octave by Dirk Eddelbuettel <edd@debian.org>.
FLAVOR=$1
PACKAGE=vala-mode-el
if [ ${FLAVOR} = emacs ]; then exit 0; fi
echo install/${PACKAGE}: Handling install for emacsen flavor ${FLAVOR}
#FLAVORTEST=`echo $FLAVOR | cut -c-6`
#if [ ${FLAVORTEST} = xemacs ] ; then
# SITEFLAG="-no-site-file"
#else
# SITEFLAG="--no-site-file"
#fi
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}
ELRELDIR=../../../emacs/site-lisp/${PACKAGE}
install -m 755 -d ${ELCDIR}
cd ${ELDIR}
FILES=`echo *.el`
cd ${ELCDIR}
ln -sf ${ELRELDIR}/*.el .
cat << EOF > path.el
(debian-pkg-add-load-path-item ".")
(setq byte-compile-warnings nil)
EOF
${FLAVOR} ${FLAGS} ${FILES}
rm -f path.el
exit 0
#!/bin/sh -e
# /usr/lib/emacsen-common/packages/remove/vala-mode-el
FLAVOR=$1
PACKAGE=vala-mode-el
if [ ${FLAVOR} != emacs ]; then
echo remove/${PACKAGE}: purging byte-compiled files for ${FLAVOR}
rm -rf /usr/share/${FLAVOR}/site-lisp/${PACKAGE}
fi
;; -*-emacs-lisp-*-
;; Figure out package dir:
(let ((package-dir (concat "/usr/share/"
(symbol-name debian-emacs-flavor)
"/site-lisp/vala-mode-el")))
;; If package-dir does not exist, this package must have
;; removed but not purged, and we should skip the setup.
(when (file-directory-p package-dir)
;; add it to the load-path:
(cond ((fboundp 'debian-pkg-add-load-path-item)
(debian-pkg-add-load-path-item package-dir))
((fboundp 'add-to-list)
(add-to-list load-path package-dir))
(t
(setq load-path (cons package-dir load-path))))
;; Installation snippet per https://live.gnome.org/Vala/Emacs
(autoload 'vala-mode "vala-mode" "Major mode for editing Vala code." t)
(add-to-list 'auto-mode-alist '("\\.vala$" . vala-mode))
(add-to-list 'auto-mode-alist '("\\.vapi$" . vala-mode))
(add-to-list 'file-coding-system-alist '("\\.vala$" . utf-8))
(add-to-list 'file-coding-system-alist '("\\.vapi$" . utf-8))))
#!/usr/bin/make -f
%:
dh $@ --parallel
vala-mode.el /usr/share/emacs/site-lisp/vala-mode-el/
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment