--- cmigrep-1.5.orig/debian/changelog +++ cmigrep-1.5/debian/changelog @@ -0,0 +1,111 @@ +cmigrep (1.5-4) unstable; urgency=low + + [ Stephane Glondu ] + * Switch packaging to git + + [ Mehdi Dogguy ] + * Bump Standards-Version to 3.8.2 + o Add a README.source + * Add myself to uploaders + * Remove usage of old OCaml's standard library location (It was harmless + but there is no reason to keep it) + * Tighten build depends to ease OCaml 3.11.1 transition. + * Add DM-Upload-Allowed (with team consent) + + -- Mehdi Dogguy Tue, 07 Jul 2009 13:50:53 +0200 + +cmigrep (1.5-3) unstable; urgency=low + + * Patch 02no-private-flag: some constructors in the typing/types module + of the compiler libs have lost the "private" field. + * Convert to cdbs, build-depend on cdbs and dh-ocaml + * Add dependency on ${misc:Depends} + * Rename debian/dirs -> debian/cmigrep.dirs, + debian/docs -> debian/cmigrep.docs + * Create debian/cmigrep.manpages + * Cleanup Uploaders + * Standards-Version: 3.8.0 (no change) + * Recompile for ocaml 3.11. + + -- Ralf Treinen Mon, 02 Mar 2009 21:05:56 +0100 + +cmigrep (1.5-2) unstable; urgency=low + + [ Ralf Treinen ] + * Rebuild with OCaml 3.10.2 + + -- Stefano Zacchiroli Mon, 26 May 2008 12:27:08 +0200 + +cmigrep (1.5-1) unstable; urgency=low + + * New upstream release. + * debian/control: added Homepage field. + + -- Ralf Treinen Wed, 30 Apr 2008 22:33:16 +0200 + +cmigrep (1.4-4) unstable; urgency=low + + [ Stefano Zacchiroli ] + * fix vcs-svn field to point just above the debian/ dir + + [ Ralf Treinen ] + * Rebuild with ocaml 3.10.1 + * Standards-Version 3.7.3 (no change) + * Fix capitalization of OCaml in short package description + * Do not use .UR macro in manpage + * Do not install emacs mode any longer: compilation errors, and seems + not realy useful (closes: Bug#448148). + + -- Ralf Treinen Mon, 25 Feb 2008 09:21:44 +0100 + +cmigrep (1.4-3) unstable; urgency=low + + * Install emacs mode into its own subdirectory to comply with emacs + policy 6.C (closes: Bug#448142). + + -- Ralf Treinen Mon, 29 Oct 2007 21:01:05 +0100 + +cmigrep (1.4-2) unstable; urgency=low + + * Upload to unstable. + + -- Ralf Treinen Mon, 03 Sep 2007 19:13:37 +0200 + +cmigrep (1.4-1) experimental; urgency=low + + * New upstream release. + + -- Ralf Treinen Fri, 24 Aug 2007 17:08:16 +0200 + +cmigrep (1.3-4) experimental; urgency=low + + * Added dependency on libpcre-ocaml (closes: Bug#433650). + + -- Ralf Treinen Wed, 18 Jul 2007 17:40:58 +0200 + +cmigrep (1.3-3) experimental; urgency=low + + * Rebuild against ocaml 3.10 + * Use dpatch + * Patch 01make-without-godi: provide in the Makefile directly the include + paths for the compiler libs. + + -- Ralf Treinen Sat, 07 Jul 2007 10:22:03 +0200 + +cmigrep (1.3-2) unstable; urgency=high + + * Removed trailing common in the uploaders field (closes: Bug#426486). + * Fix install-emacsen: compile only cmigrep.el, don't remove unrelated + el files (!), compile with -no-site-files, do not create a path.el + + -- Ralf Treinen Sat, 30 Jun 2007 15:36:59 +0200 + +cmigrep (1.3-1) unstable; urgency=low + + * Initial release (Closes: Bug#424893). This package is a split off from + the ocaml-tools package. + * debian/rules: fix the "clean" target which was broken for cmigrep in + the ocaml-tools package (Closes: Bug#424390). + + -- Ralf Treinen Fri, 25 May 2007 20:46:39 +0200 + --- cmigrep-1.5.orig/debian/cmigrep.docs +++ cmigrep-1.5/debian/cmigrep.docs @@ -0,0 +1 @@ +README --- cmigrep-1.5.orig/debian/cmigrep.1 +++ cmigrep-1.5/debian/cmigrep.1 @@ -0,0 +1,84 @@ +.TH CMIGREP 1 +.SH NAME +cmigrep \- search in ocaml compiled interface files +.SH SYNOPSIS +.B cmigrep +.I +.RI \ +.SH DESCRIPTION +This manual page documents briefly the +.BR cmigrep +command. +This manual page was written for the Debian GNU/Linux distribution +because the original program does not have a manual page. + +.B cmigrep +allows to search for information in compiled interfaces of OCaml modules. +By default, the search applies to the modules described in the \fI.cmi\fR files +in the curent directory and in the ocaml standard directory, but this can be +changed with the -I option (see below). + +The argument +.I +can be an exact module name, or a shell +wildcard. Multiple modules can be specified. Example: "ModA ModB Foo*.Make" +means to search ModA, ModB, and any submodule Make of a module that +starts with Foo. + +.SH OPTIONS + +.SS General Options + +.TP +.B \-I directory +Add \fIdirectory\fR to the search path for modules +.TP +.B -package packages +comma seperated list of findlib packages to search +.TP +.B open modules +comma seperated list of open modules (in order!) +.TP +.B -help, --help +display list of options + +.SS Search Patterns + +.TP +.B -t regexp +print types with matching names +.TP +.B -r regexp +print record field labels with matching names +.TP +.B -c regexp +print constructors with matching names +.TP +.B -p regexp +print polymorphic variants with matching names +.TP +.B -m regexp +print all matching module names in the path +.TP +.B -e regexp +print exceptions with matching constructors +.TP +.B -v regexp +print values with matching names +.TP +.B -o regexp +print all classes with matching names +.TP +.B -a regexp +print all names which match the given expression + +.SH SEE ALSO +Examples can be found on +.I /usr/share/doc/cmigrep/README\fR. + +.SH AUTHOR +\fBcmigrep\fR is written by Eric Stokes +. +.PP +This manual page was compiled by Ralf Treinen +. --- cmigrep-1.5.orig/debian/compat +++ cmigrep-1.5/debian/compat @@ -0,0 +1 @@ +5 --- cmigrep-1.5.orig/debian/README.source +++ cmigrep-1.5/debian/README.source @@ -0,0 +1,20 @@ +cmigrep Debian source package +============================= + +Patching upstream sources +------------------------- + +This package uses dpatch to manage all modifications to the upstream +source. Changes are stored in the source package as diffs in +debian/patches and applied during the build. + +To get the fully patched source after unpacking the source package, cd +to the root level of the source package and run: + + debian/rules patch + +Removing a patch is as simple as removing its entry from the +debian/patches/00list file, and please also remove the patch file +itself. + + -- Mehdi Dogguy , Tue, 7 Jul 2009 13:05:54 +0200 --- cmigrep-1.5.orig/debian/rules +++ cmigrep-1.5/debian/rules @@ -0,0 +1,12 @@ +#!/usr/bin/make -f + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/class/makefile.mk +include /usr/share/cdbs/1/rules/dpatch.mk +include /usr/share/cdbs/1/rules/ocaml.mk + +DEB_MAKE_BUILD_TARGET = byte + +install/cmigrep:: + cp cmigrep debian/cmigrep/usr/bin + --- cmigrep-1.5.orig/debian/cmigrep.dirs +++ cmigrep-1.5/debian/cmigrep.dirs @@ -0,0 +1 @@ +usr/bin --- cmigrep-1.5.orig/debian/copyright +++ cmigrep-1.5/debian/copyright @@ -0,0 +1,25 @@ +This package was debianized by Ralf Treinen on +Wed, 16 May 2007 11:49:03 +0200. + +It was downloaded from http://homepage.mac.com/letaris/ + +Upstream Author: + + Eric Stokes + +Copyright: + + Copyright (C) 2004 Eric Stokes + +License: + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License as + 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 +/usr/share/common-licenses/GPL. + +The Debian packaging is (C) 2007, Ralf Treinen +and is licensed under the GPL, see `/usr/share/common-licenses/GPL'. --- cmigrep-1.5.orig/debian/gbp.conf +++ cmigrep-1.5/debian/gbp.conf @@ -0,0 +1,2 @@ +[DEFAULT] +pristine-tar = True --- cmigrep-1.5.orig/debian/watch +++ cmigrep-1.5/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://homepage.mac.com/letaris/cmigrep-(.*)\.tar\.bz2 --- cmigrep-1.5.orig/debian/cmigrep.manpages +++ cmigrep-1.5/debian/cmigrep.manpages @@ -0,0 +1 @@ +debian/cmigrep.1 --- cmigrep-1.5.orig/debian/control +++ cmigrep-1.5/debian/control @@ -0,0 +1,29 @@ +Source: cmigrep +Section: devel +Priority: extra +Maintainer: Debian OCaml Maintainers +Uploaders: Ralf Treinen , + Remi Vanicat , + Samuel Mimram , + Mehdi Dogguy , + Stefano Zacchiroli +Build-Depends: debhelper (>= 5.0), dpatch, cdbs, dh-ocaml +Build-Depends-Indep: ocaml-nox (>= 3.11.1), + libpcre-ocaml-dev (>= 6.0.1-1), + ocaml-findlib (>= 1.2.4-2), + ocaml-compiler-libs +DM-Upload-Allowed: yes +Standards-Version: 3.8.2 +Vcs-Git: git://git.debian.org/git/pkg-ocaml-maint/packages/cmigrep.git +Vcs-Browser: http://git.debian.org/?p=pkg-ocaml-maint/packages/cmigrep.git +Homepage: http://homepage.mac.com/letaris/ + +Package: cmigrep +Architecture: all +Depends: ocaml-base-nox-${F:OCamlABI}, libpcre-ocaml, ${misc:Depends} +Conflicts: ocaml-tools (<= 2007.02.04-2) +Replaces: ocaml-tools +Description: search in OCaml compiled interface files + This program allows you to search for items (like for instance types, + constructors, or exceptions) in compiled interface files generated by + the Objective Caml compiler. --- cmigrep-1.5.orig/debian/unused/emacsen-remove +++ cmigrep-1.5/debian/unused/emacsen-remove @@ -0,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 --- cmigrep-1.5.orig/debian/unused/rules.debhelper +++ cmigrep-1.5/debian/unused/rules.debhelper @@ -0,0 +1,49 @@ +#!/usr/bin/make -f +# debian/rules for cmigrep + +#export DH_VERBOSE=1 + +include /usr/share/dpatch/dpatch.make + +OCAMLABI := $(shell ocamlc -version) + +build: cmigrep + +cmigrep: patch + dh_testdir + make byte GODI_LIB=/usr/lib/ocaml/$(OCAMLABI)/compiler-libs + +clean: unpatch + dh_testdir + dh_testroot + dh_clean + make clean + +install: + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + cp cmigrep debian/cmigrep/usr/bin + # cp cmigrep.el debian/cmigrep/usr/share/emacs/site-lisp/cmigrep + +binary-arch: build install + +binary-indep: build install + dh_testdir + dh_testroot + dh_installdocs + dh_installman debian/cmigrep.1 + dh_installchangelogs + dh_installdebconf + # dh_installemacsen + dh_link + dh_compress + dh_fixperms + dh_installdeb + dh_gencontrol -- -VF:OCamlABI="$(OCAMLABI)" + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install patch unpatch --- cmigrep-1.5.orig/debian/unused/emacsen-install +++ cmigrep-1.5/debian/unused/emacsen-install @@ -0,0 +1,36 @@ +#! /bin/sh -e +# /usr/lib/emacsen-common/packages/install/cmigrep + +# adapted for cmigrep from a template which was +# written by Jim Van Zandt , borrowing heavily +# from the install scripts for gettext by Santiago Vila +# and octave by Dirk Eddelbuettel . + +FLAVOR=$1 +PACKAGE=cmigrep + +if [ ${FLAVOR} = emacs ]; then exit 0; fi + +echo install/${PACKAGE}: Handling install for emacsen flavor ${FLAVOR} + +FLAGS="${SITEFLAG} -q -batch -f batch-byte-compile -no-site-file" +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=cmigrep.el +cp ${FILES} ${ELCDIR} +cd ${ELCDIR} + +${FLAVOR} ${FLAGS} ${FILES} +rm ${FILES} + +exit 0 --- cmigrep-1.5.orig/debian/patches/02no-private-flag.dpatch +++ cmigrep-1.5/debian/patches/02no-private-flag.dpatch @@ -0,0 +1,29 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## no-private-flag.dpatch by Ralf Treinen +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: The fields Type_variant and Type_record have lost the "private" +## DP: field in the passage from ocaml 3.10 to 3.11. [treinen@debian.org] + +@DPATCH@ +diff -urNad trunk~/cmigrep.ml trunk/cmigrep.ml +--- trunk~/cmigrep.ml 2008-04-02 02:37:07.000000000 +0200 ++++ trunk/cmigrep.ml 2009-03-02 21:01:16.000000000 +0100 +@@ -304,7 +304,7 @@ + (function + | Tsig_type (id, type_decl, _rec_status) -> + begin match type_decl.type_kind with +- | Type_variant (constructors, _private) -> ++ | Type_variant (constructors) -> + List.iter + (fun (name, type_exprs) -> + if Pcre.pmatch ~rex:exp name then begin +@@ -382,7 +382,7 @@ + (function + | Tsig_type (id, type_decl, _rec_status) -> + begin match type_decl.type_kind with +- | Type_record (labels, _, _) -> ++ | Type_record (labels, _) -> + List.iter + (fun (name, mutable_flag, type_expr) -> + if Pcre.pmatch ~rex:exp name then begin --- cmigrep-1.5.orig/debian/patches/00list +++ cmigrep-1.5/debian/patches/00list @@ -0,0 +1,2 @@ +01make-without-godi +02no-private-flag --- cmigrep-1.5.orig/debian/patches/01make-without-godi.dpatch +++ cmigrep-1.5/debian/patches/01make-without-godi.dpatch @@ -0,0 +1,32 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 01make-without-godi.dpatch by Ralf Treinen +## +## DP: Compile without godi. Provide directly the include directories for +## DP: the compiler-libs. + +@DPATCH@ +diff -urNad trunk~/Makefile trunk/Makefile +--- trunk~/Makefile 2007-04-01 16:43:39.000000000 +0200 ++++ trunk/Makefile 2007-07-07 10:18:23.000000000 +0200 +@@ -16,17 +16,15 @@ + includecore.cmo includemod.cmo parmatch.cmo typetexp.cmo stypes.cmo \ + typecore.cmo typedecl.cmo typeclass.cmo typemod.cmo cmigrep.ml + +- +-GODI_CONF=$(shell godi_confdir) +-GODI_BASE=$(shell cat $(GODI_CONF)/godi.conf | grep ^LOCALBASE | sed -e 's/LOCALBASE *= *//') +-GODI_LIB=$(GODI_BASE)/lib/ocaml/compiler-lib ++COMPILERLIBFLAGS=-I +compiler-libs/parsing -I +compiler-libs/typing \ ++-I +compiler-libs/utils + + all: +- ocamlfind ocamlopt -o cmigrep -I $(GODI_LIB) \ ++ ocamlfind ocamlopt -o cmigrep $(COMPILERLIBFLAGS) \ + -package pcre,findlib,unix -linkpkg $(SOURCES) + + byte: +- ocamlfind ocamlc -o cmigrep -I $(GODI_LIB) \ ++ ocamlfind ocamlc -o cmigrep $(COMPILERLIBFLAGS) \ + -package pcre,findlib,unix -linkpkg $(BYTESOURCES) + + install: