[Pkg-ocaml-maint-commits] r3763 - in /trunk/packages/cmigrep/trunk/debian: control copyright dirs docs emacsen-install emacsen-remove rules

treinen at users.alioth.debian.org treinen at users.alioth.debian.org
Wed May 16 20:57:38 UTC 2007


Author: treinen
Date: Wed May 16 20:57:38 2007
New Revision: 3763

URL: http://svn.debian.org/wsvn/pkg-ocaml-maint/?sc=1&rev=3763
Log:
cmigrep: now with install of emacs mode

Added:
    trunk/packages/cmigrep/trunk/debian/docs
    trunk/packages/cmigrep/trunk/debian/emacsen-install
    trunk/packages/cmigrep/trunk/debian/emacsen-remove
Modified:
    trunk/packages/cmigrep/trunk/debian/control
    trunk/packages/cmigrep/trunk/debian/copyright
    trunk/packages/cmigrep/trunk/debian/dirs
    trunk/packages/cmigrep/trunk/debian/rules

Modified: trunk/packages/cmigrep/trunk/debian/control
URL: http://svn.debian.org/wsvn/pkg-ocaml-maint/trunk/packages/cmigrep/trunk/debian/control?rev=3763&op=diff
==============================================================================
--- trunk/packages/cmigrep/trunk/debian/control (original)
+++ trunk/packages/cmigrep/trunk/debian/control Wed May 16 20:57:38 2007
@@ -2,19 +2,24 @@
 Section: devel
 Priority: extra
 Maintainer: Debian OCaml Maintainers <debian-ocaml-maint at lists.debian.org>
-Uploaders: Ralf Treinen <treinen at debian.org>, Sven Luther <luther at debian.org>, Remi Vanicat <vanicat at debian.org>, Stefano Zacchiroli <zack at debian.org>, Samuel Mimram <smimram at debian.org>
+Uploaders: Ralf Treinen <treinen at debian.org>, 
+ Remi Vanicat <vanicat at debian.org>, Samuel Mimram <smimram at debian.org>,
+ Stefano Zacchiroli <zack at debian.org>, Sven Luther <luther at debian.org>,
 Build-Depends: debhelper (>= 4.0), dpatch
-Build-Depends-Indep: ocaml-nox (>= 3.09.1), libpcre-ocaml-dev, ocaml-findlib, ocaml-compiler-libs
+Build-Depends-Indep: ocaml-nox (>= 3.09.1), libpcre-ocaml-dev, ocaml-findlib,
+ ocaml-compiler-libs
 Standards-Version: 3.7.2
 XS-Vcs-Svn: svn://svn.debian.org/svn/pkg-ocaml-maint/trunk/packages/cmigrep
 XS-Vcs-Browser: http://svn.debian.org/wsvn/pkg-ocaml-maint/trunk/packages/cmigrep/trunk/
 
 Package: cmigrep
 Architecture: all
-Depends: ocaml-base-nox-${F:OCamlABI}, ${misc:Depends}
+Depends: ocaml-base-nox-${F:OCamlABI}
+Conflicts: ocaml-tools (<= 2007.02.04-2)
+Replaces: ocaml-tools
 Description: gather information from ocaml compiled interface files
-  This program allows you to search in compiled interface files (extension
-  .cmi) generated by the Objective Caml compiler.
+ This program allows you to search in compiled interface files (file 
+ extension .cmi) generated by the Objective Caml compiler.
 
 
 

Modified: trunk/packages/cmigrep/trunk/debian/copyright
URL: http://svn.debian.org/wsvn/pkg-ocaml-maint/trunk/packages/cmigrep/trunk/debian/copyright?rev=3763&op=diff
==============================================================================
--- trunk/packages/cmigrep/trunk/debian/copyright (original)
+++ trunk/packages/cmigrep/trunk/debian/copyright Wed May 16 20:57:38 2007
@@ -1,9 +1,9 @@
-This package was debianized by Ralf <treinen at debian.org> on
+This package was debianized by Ralf Treinen <treinen at debian.org> on
 Wed, 16 May 2007 11:49:03 +0200.
 
 It was downloaded from http://homepage.mac.com/letaris/
 
-Upstream Author(s): 
+Upstream Author: 
 
     Eric Stokes
 
@@ -15,7 +15,7 @@
 
     This library 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.1 of
+    published byg the Free Software Foundation; either version 2.1 of
     the License, or (at your option) any later version.
 
 On Debian systems you can find a copy of this license in

Modified: trunk/packages/cmigrep/trunk/debian/dirs
URL: http://svn.debian.org/wsvn/pkg-ocaml-maint/trunk/packages/cmigrep/trunk/debian/dirs?rev=3763&op=diff
==============================================================================
--- trunk/packages/cmigrep/trunk/debian/dirs (original)
+++ trunk/packages/cmigrep/trunk/debian/dirs Wed May 16 20:57:38 2007
@@ -1,1 +1,2 @@
 usr/bin
+usr/share/emacs/site-lisp

Added: trunk/packages/cmigrep/trunk/debian/docs
URL: http://svn.debian.org/wsvn/pkg-ocaml-maint/trunk/packages/cmigrep/trunk/debian/docs?rev=3763&op=file
==============================================================================
--- trunk/packages/cmigrep/trunk/debian/docs (added)
+++ trunk/packages/cmigrep/trunk/debian/docs Wed May 16 20:57:38 2007
@@ -1,0 +1,1 @@
+README

Added: trunk/packages/cmigrep/trunk/debian/emacsen-install
URL: http://svn.debian.org/wsvn/pkg-ocaml-maint/trunk/packages/cmigrep/trunk/debian/emacsen-install?rev=3763&op=file
==============================================================================
--- trunk/packages/cmigrep/trunk/debian/emacsen-install (added)
+++ trunk/packages/cmigrep/trunk/debian/emacsen-install Wed May 16 20:57:38 2007
@@ -1,0 +1,38 @@
+#! /bin/sh -e
+# /usr/lib/emacsen-common/packages/install/cmigrep
+
+# Written by Jim Van Zandt <jrv at vanzandt.mv.com>, borrowing heavily
+# from the install scripts for gettext by Santiago Vila
+# <sanvila at ctv.es> and octave by Dirk Eddelbuettel <edd at debian.org>.
+
+FLAVOR=$1
+PACKAGE=cmigrep
+
+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`
+cp ${FILES} ${ELCDIR}
+cd ${ELCDIR}
+
+cat << EOF > path.el
+(setq load-path (cons "." load-path) byte-compile-warnings nil)
+EOF
+${FLAVOR} ${FLAGS} ${FILES}
+rm -f *.el path.el path.elc
+
+exit 0

Added: trunk/packages/cmigrep/trunk/debian/emacsen-remove
URL: http://svn.debian.org/wsvn/pkg-ocaml-maint/trunk/packages/cmigrep/trunk/debian/emacsen-remove?rev=3763&op=file
==============================================================================
--- trunk/packages/cmigrep/trunk/debian/emacsen-remove (added)
+++ trunk/packages/cmigrep/trunk/debian/emacsen-remove Wed May 16 20:57:38 2007
@@ -1,0 +1,10 @@
+#!/bin/sh -e
+# /usr/lib/emacsen-common/packages/remove/cmigrep
+
+FLAVOR=$1
+PACKAGE=cmigrep
+
+if [ ${FLAVOR} != emacs ]; then
+    echo remove/${PACKAGE}: purging byte-compiled files for ${FLAVOR}
+    rm -rf /usr/share/${FLAVOR}/site-lisp/${PACKAGE}
+fi

Modified: trunk/packages/cmigrep/trunk/debian/rules
URL: http://svn.debian.org/wsvn/pkg-ocaml-maint/trunk/packages/cmigrep/trunk/debian/rules?rev=3763&op=diff
==============================================================================
--- trunk/packages/cmigrep/trunk/debian/rules (original)
+++ trunk/packages/cmigrep/trunk/debian/rules Wed May 16 20:57:38 2007
@@ -1,15 +1,9 @@
 #!/usr/bin/make -f
-# debian/rules for ocaml-tools
+# debian/rules for cmigrep
 
 #export DH_VERBOSE=1
 
 OCAMLABI := $(shell ocamlc -version)
-
-# top level dir for documentation
-export DOCDIR=debian/cmigrep/usr/share/doc/ocaml-tools
-
-# share dir where files are to be installed
-export SHDIR=debian/cmigrep/usr/share/ocaml-tools
 
 include /usr/share/dpatch/dpatch.make
 
@@ -31,6 +25,7 @@
 	dh_clean -k
 	dh_installdirs
 	cp cmigrep debian/cmigrep/usr/bin
+	cp cmigrep.el debian/cmigrep/usr/share/emacs/site-lisp
 
 binary-arch: build install
 
@@ -41,6 +36,7 @@
 	dh_installman debian/cmigrep.1
 	dh_installchangelogs
 	dh_installdebconf
+	dh_installemacsen
 	dh_link
 	dh_compress
 	dh_fixperms




More information about the Pkg-ocaml-maint-commits mailing list