--- scala-mode-el-20111005.orig/debian/changelog +++ scala-mode-el-20111005/debian/changelog @@ -0,0 +1,19 @@ +scala-mode-el (20111005-2.1) unstable; urgency=medium + + * Non-maintainer upload. + * Switch build depends from "emacs23 | emacs" to emacs. + Thanks to Gabriele Giacone. (Closes: #754025) + + -- Ana Beatriz Guerrero Lopez Sat, 13 Sep 2014 00:01:41 +0200 + +scala-mode-el (20111005-2) unstable; urgency=low + + * change dependency from emacsen to emacs (Closes: 644784) + + -- Mike O'Connor Fri, 16 Dec 2011 12:23:00 -0500 + +scala-mode-el (20111005-1) unstable; urgency=low + + * Initial release. + + -- Mike O'Connor Wed, 05 Oct 2011 23:15:06 -0400 --- scala-mode-el-20111005.orig/debian/compat +++ scala-mode-el-20111005/debian/compat @@ -0,0 +1 @@ +7 --- scala-mode-el-20111005.orig/debian/control +++ scala-mode-el-20111005/debian/control @@ -0,0 +1,19 @@ +Source: scala-mode-el +Section: editors +Priority: extra +Maintainer: Mike O'Connor +Build-Depends: debhelper (>= 7.0.50~) +Build-Depends-Indep: emacs +Standards-Version: 3.9.2 +Vcs-Browser: http://git.vireo.org/scala-mode-el.git +Vcs-Git: git://git.vireo.org/scala-mode-el.git +Homepage: http://www.scala-lang.org + +Package: scala-mode-el +Architecture: all +Depends: ${misc:Depends}, emacs23 | emacsen +Description: Emacs major mode for editing scala source code + scala-mode provides syntax highlighting and indentation for scala + source code inside emacs. Included is the ability to interact with a + scala interpreter inside emacs and to send expressions from scala + source files to the running interpreter. --- scala-mode-el-20111005.orig/debian/copyright +++ scala-mode-el-20111005/debian/copyright @@ -0,0 +1,58 @@ +Initially packaged by Mike O'Connor on October 5, 2011 + +The software was obtained via svn checkout from: +http://lampsvn.epfl.ch/svn-repos/scala/scala-tool-support/trunk/src/emacs + +See +http://www.scala-lang.org/node/354 + +Authors: +Michel Schinz +Anders Bach Nielsen +Iulian Dragos +Stephane Micheloud +Victor Rodriguez +? +Hemant Kumar +Ulrick Müller + +Copyright: +Copyright (C) 2009-2011 Scala Dev Team at EPFL +Copyright (c) 2002-2011 EPFL, Lausanne + +License: + +;; Copyright (c) 2002-2011 EPFL, Lausanne, unless otherwise specified. +;; All rights reserved. +;; +;; This software was developed by the Programming Methods Laboratory of the +;; Swiss Federal Institute of Technology (EPFL), Lausanne, Switzerland. +;; +;; Permission to use, copy, modify, and distribute this software in source +;; or binary form for any purpose with or without fee is hereby granted, +;; provided that the following conditions are met: +;; +;; 1. Redistributions of source code must retain the above copyright +;; notice, this list of conditions and the following disclaimer. +;; +;; 2. Redistributions in binary form must reproduce the above copyright +;; notice, this list of conditions and the following disclaimer in the +;; documentation and/or other materials provided with the distribution. +;; +;; 3. Neither the name of the EPFL nor the names of its contributors +;; may be used to endorse or promote products derived from this +;; software without specific prior written permission. +;; +;; +;; THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND +;; ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +;; IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +;; ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE +;; FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +;; DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +;; SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +;; CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +;; LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +;; OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +;; SUCH DAMAGE. + --- scala-mode-el-20111005.orig/debian/docs +++ scala-mode-el-20111005/debian/docs @@ -0,0 +1,3 @@ +README +FUTURE +contrib \ No newline at end of file --- scala-mode-el-20111005.orig/debian/emacsen-install +++ scala-mode-el-20111005/debian/emacsen-install @@ -0,0 +1,30 @@ +#!/bin/sh -e + +FLAVOR=$1 +if [ ${FLAVOR} = emacs ]; then exit 0; fi +if [ ${FLAVOR%${FLAVOR#?}} = 'x' ]; then echo "ignoring unsupported flavor: $FLAVOR" ; exit 0 ; fi + +PACKAGE=scala-mode +echo install/${PACKAGE}: Handling install for emacsen flavor ${FLAVOR} + +# The byte-compiled files goes into the site-lisp directory. +BCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE} +install -m 755 -d ${BCDIR} + +# The elisp source files are in the generic site-list directory. +SRCDIR=/usr/share/emacs/site-lisp/${PACKAGE} +SRC=`find ${SRCDIR} -name '*.el' -exec basename '{}' ';'` + +# Prepare for byte-compiling the source files. +cd ${BCDIR} +ln -sf ${SRCDIR}/*.el . +cat << EOF > path.el +(setq load-path (cons "." load-path) byte-compile-warnings nil) +EOF + +# Byte-compile elisp files. +FLAGS="--no-site-file --no-init-file --batch -l path.el -f batch-byte-compile" +${FLAVOR} ${FLAGS} ${SRC} +rm -f path.el + +exit 0 --- scala-mode-el-20111005.orig/debian/emacsen-remove +++ scala-mode-el-20111005/debian/emacsen-remove @@ -0,0 +1,8 @@ +#!/bin/sh -e +FLAVOR=$1 +PACKAGE=scala-mode +if [ ${FLAVOR} != emacs ]; then + echo remove/${PACKAGE}: purging byte-compiled files for ${FLAVOR} + rm -rf /usr/share/${FLAVOR}/site-lisp/${PACKAGE} +fi +exit 0 --- scala-mode-el-20111005.orig/debian/emacsen-startup +++ scala-mode-el-20111005/debian/emacsen-startup @@ -0,0 +1,21 @@ +;; -*-emacs-lisp-*- + +(if (not (file-exists-p "/usr/share/emacs/site-lisp/scala-mode")) + (message "Package scala-mode-el removed but not purged. Skipping setup.") + + (let ((instdir (concat "/usr/share/" + (symbol-name debian-emacs-flavor) + "/site-lisp/scala-mode"))) + + ;; Only load scala-mode if it has been installed. + (if (zerop (length (file-expand-wildcards instdir))) + (message "scala-mode not for this flavor. Skipping.") + + ;; The sml-mode package follows the Debian/GNU Linux 'emacsen' policy and + ;; byte-compiles its elisp files for each 'emacs flavor'. The compiled + ;; code is then installed in a subdirectory of the respective site-lisp + ;; directory. + (debian-pkg-add-load-path-item instdir) + + ;; Autoload sml-mode top-level functions site-wide. + (load "scala-mode-auto")))) --- scala-mode-el-20111005.orig/debian/rules +++ scala-mode-el-20111005/debian/rules @@ -0,0 +1,45 @@ +#!/usr/bin/make -f + +PACKAGE=scala-mode-el + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + $(MAKE) clean + dh_clean + +build: build-arch build-indep +build-arch: build-stamp +build-indep: build-stamp + +build-stamp: + dh_testdir + $(MAKE) autoloads + touch $@ + +install: build + dh_testdir + dh_testroot + dh_prep + dh_installdirs usr/share/emacs/site-lisp/scala-mode + cp *el debian/scala-mode-el/usr/share/emacs/site-lisp/scala-mode + +binary-indep: install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installemacsen + dh_compress + dh_fixperms + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +binary-arch: build install + +binary: binary-indep binary-arch + +.PHONY: build clean binary-indep binary-arch binary install