[Pkg-ocaml-maint-commits] r2801 - in /trunk/packages/polygen:
trunk/ trunk/debian/ trunk/debian/patches/ upstream/
enrico at users.alioth.debian.org
enrico at users.alioth.debian.org
Mon May 29 15:42:58 UTC 2006
Author: enrico
Date: Mon May 29 15:42:42 2006
New Revision: 2801
URL: http://svn.debian.org/wsvn/pkg-ocaml-maint/?sc=1&rev=2801
Log:
Redid the import following policy/old/svn-howto
Added:
trunk/packages/polygen/trunk/
trunk/packages/polygen/trunk/debian/ (with props)
trunk/packages/polygen/trunk/debian/README.Debian
trunk/packages/polygen/trunk/debian/changelog
trunk/packages/polygen/trunk/debian/compat
trunk/packages/polygen/trunk/debian/control
trunk/packages/polygen/trunk/debian/copyright
trunk/packages/polygen/trunk/debian/make_polygen-data_manpage
trunk/packages/polygen/trunk/debian/man.grm
trunk/packages/polygen/trunk/debian/patches/
trunk/packages/polygen/trunk/debian/patches/01-dont-regenerate-existing-ofiles.diff
trunk/packages/polygen/trunk/debian/patches/02-search-for-grammars.diff
trunk/packages/polygen/trunk/debian/patches/03-makefile.diff
trunk/packages/polygen/trunk/debian/patches/04-create-mode.diff
trunk/packages/polygen/trunk/debian/patches/05-8bit-strings.diff
trunk/packages/polygen/trunk/debian/polygen-data.manpages
trunk/packages/polygen/trunk/debian/polygen-data.postinst
trunk/packages/polygen/trunk/debian/polygen.dirs
trunk/packages/polygen/trunk/debian/polygen.manpages
trunk/packages/polygen/trunk/debian/rules (with props)
trunk/packages/polygen/trunk/debian/svn-deblayout
trunk/packages/polygen/upstream/
trunk/packages/polygen/upstream/polygen_1.0.6.ds1.orig.tar.gz (with props)
Propchange: trunk/packages/polygen/trunk/debian/
------------------------------------------------------------------------------
mergeWithUpstream = 1
Added: trunk/packages/polygen/trunk/debian/README.Debian
URL: http://svn.debian.org/wsvn/pkg-ocaml-maint/trunk/packages/polygen/trunk/debian/README.Debian?rev=2801&op=file
==============================================================================
--- trunk/packages/polygen/trunk/debian/README.Debian (added)
+++ trunk/packages/polygen/trunk/debian/README.Debian Mon May 29 15:42:42 2006
@@ -1,0 +1,40 @@
+README for the Polygen Debian package
+=====================================
+
+Polygen is...
+
+ ...the tool everybody was so anxiously expecting.
+ - Daily Telegraph
+
+ The solution to all occultism problems.
+ - Harold Tribune
+
+ ...the finest product ever designed for alpinism.
+ - The Sun
+
+ The ultimate solution to all problems. No way to miss it.
+ - GirlPower
+
+
+Polygen is fun.
+
+It's even more fun if you start creating your own grammars.
+
+If you want to play, you can have a look at the existing grammars in
+/usr/share/polygen, and keep /usr/share/doc/polygen/HOWTO-Refman.en.html as a
+reference.
+
+If you happen to create some nice grammars, don't forget to send them to me!
+You can do it nicely with reportbug:
+
+ reportbug -kA mygrammar.grm polygen
+
+I'll take care of forwarding your grammars to the upstream authors, and they
+will include them in the next polygen-data and in the wonderful website
+www.polygen.org
+
+
+Enjoy your Polygen, Trombygen, Polliflex, Sporkysnell, Polpycess!
+
+---
+Enrico Zini <enrico at debian.org>
Added: trunk/packages/polygen/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-ocaml-maint/trunk/packages/polygen/trunk/debian/changelog?rev=2801&op=file
==============================================================================
--- trunk/packages/polygen/trunk/debian/changelog (added)
+++ trunk/packages/polygen/trunk/debian/changelog Mon May 29 15:42:42 2006
@@ -1,0 +1,104 @@
+polygen (1.0.6.ds1-3) unstable; urgency=low
+
+ * Recompiled with ocaml 3.09.0-4, which broke dependencies once again but is
+ supposed to solve all dependency problems. Closes: #348247.
+
+ -- Enrico Zini <enrico at debian.org> Mon, 16 Jan 2006 21:52:49 +0100
+
+polygen (1.0.6.ds1-2) unstable; urgency=low
+
+ * Added new patch 05-8bit-strings.diff to make polygen accept UTF-8
+ strings.
+
+ -- Enrico Zini <enrico at debian.org> Sat, 31 Dec 2005 11:41:01 +0800
+
+polygen (1.0.6.ds1-1) unstable; urgency=low
+
+ * Repackaged upstream .zip files, and added .ds1 to the version to mark this
+ Debian change to the upstream version.
+ * Updated build-deps to work with the new Ocaml, thanks to Julien Cristau.
+ Closes: #338049.
+ * New grammars from upstream.
+ * Fixed typo in description. Closes: #306908.
+
+ -- Enrico Zini <enrico at debian.org> Mon, 21 Nov 2005 21:06:32 +0100
+
+polygen (1.0.6-9) unstable; urgency=high
+
+ * Directly install the .grm.o files built at build time, and remove the need
+ for postinst and postrm. It removes the annoying delays at install time,
+ and really closes: #325468.
+ * Urgency set to high since we close a security bug (hopefully for real this
+ time).
+ * Need a postinst to compensate for previously existing broken postrm from
+ previous polygens
+
+ -- Enrico Zini <enrico at debian.org> Wed, 31 Aug 2005 13:34:20 +0200
+
+polygen (1.0.6-8) unstable; urgency=high
+
+ * Added a patch to honor umask when creating .grm.o files.
+ Closes: #325468.
+ * Urgency set to high since we close a security bug.
+ * Bumped Standards-version.
+
+ -- Enrico Zini <enrico at debian.org> Mon, 29 Aug 2005 16:51:08 +0200
+
+polygen (1.0.6-7) unstable; urgency=high
+
+ * Make the polygen-data manpage build script executable before using it.
+ diff doesn't preserve permissions, so the +x bit is not kept while
+ packaging; that's a mismatch between how dpkg-buildpackage works and how
+ one would expect it to work. Closes: #306113.
+ * Urgency is high because of the ongoing ocaml transition.
+
+ -- Enrico Zini <enrico at debian.org> Sun, 24 Apr 2005 13:43:11 +0200
+
+polygen (1.0.6-6) unstable; urgency=low
+
+ * Autogenerate polygen-data manpage. Closes: #301454.
+
+ -- Enrico Zini <enrico at debian.org> Fri, 22 Apr 2005 02:29:30 +0200
+
+polygen (1.0.6-5) unstable; urgency=low
+
+ * Finally added README.Debian
+ * Changed Ocaml dependencies. Closes: #300848.
+
+ -- Enrico Zini <enrico at debian.org> Wed, 23 Mar 2005 23:21:24 +0100
+
+polygen (1.0.6-4) unstable; urgency=low
+
+ * Recommend polygen-data. Closes: #288695.
+ * Fixed package description
+
+ -- Enrico Zini <enrico at debian.org> Sun, 23 Jan 2005 15:47:19 +0800
+
+polygen (1.0.6-3) unstable; urgency=low
+
+ * Removed bashism in postinst
+ * Added postrm to get rid of precompiled grammar objects. Closes: #284903.
+ * Depend on ocaml-base-nox | ocaml-base. Closes: #284913.
+
+ -- Enrico Zini <enrico at debian.org> Tue, 14 Dec 2004 00:39:11 +0800
+
+polygen (1.0.6-2) unstable; urgency=low
+
+ * Updated build-dependencies to include cdbs and unzip
+
+ -- Enrico Zini <enrico at debian.org> Thu, 25 Nov 2004 23:27:19 +0100
+
+polygen (1.0.6-1) unstable; urgency=low
+
+ * Initial release. Closes: #271804
+ * Added 3 patches:
+ 01-dont-regenerate-existing-ofiles.diff
+ Don't try to regenerate precompiled grammars if they exist already
+ 02-search-for-grammars.diff
+ Search for grammars in various obvious places if the file given as a
+ parameter is not found
+ 03-makefile.diff
+ Fix the build system to correctly generate a bytecode arch-independent
+ executable
+
+ -- Enrico Zini <enrico at debian.org> Tue, 23 Nov 2004 23:05:37 +0100
Added: trunk/packages/polygen/trunk/debian/compat
URL: http://svn.debian.org/wsvn/pkg-ocaml-maint/trunk/packages/polygen/trunk/debian/compat?rev=2801&op=file
==============================================================================
--- trunk/packages/polygen/trunk/debian/compat (added)
+++ trunk/packages/polygen/trunk/debian/compat Mon May 29 15:42:42 2006
@@ -1,0 +1,1 @@
+4
Added: trunk/packages/polygen/trunk/debian/control
URL: http://svn.debian.org/wsvn/pkg-ocaml-maint/trunk/packages/polygen/trunk/debian/control?rev=2801&op=file
==============================================================================
--- trunk/packages/polygen/trunk/debian/control (added)
+++ trunk/packages/polygen/trunk/debian/control Mon May 29 15:42:42 2006
@@ -1,0 +1,49 @@
+Source: polygen
+Section: games
+Priority: optional
+Maintainer: Enrico Zini <enrico at debian.org>
+Build-Depends-Indep: debhelper (>= 4.0.0), ocaml-nox, cdbs
+Standards-Version: 3.6.2.0
+
+Package: polygen
+Architecture: all
+Depends: ${shlibs:Depends}, ocaml-base-nox-${F:OCamlABI}
+Recommends: polygen-data
+Description: generator of random sentences from grammar definitions
+ PolyGen is a program for generating random sentences according to a grammar
+ definition, that is following custom syntactical and lexical rules.
+ .
+ Formally, it is an interpreter of a language itself designed to define
+ languages, where to interpret means executing a source program in real time
+ and eventually outputting its result.
+ .
+ Here a source program is a grammar definition, the execution consists in the
+ exploration of such grammar by selecting a random path and the result is the
+ sentence built on the way.
+ .
+ Though PolyGen is quite a serious piece of software then, what else would be
+ more noble for it than being used as a parody tool for linguistical habits,
+ stereotypes and trends of this foolish era?
+ .
+ Principles of parody are focusing a ridiculous topic and eventually
+ abstracting its rules and schemes (here in terms of a grammar definition) by
+ which reproducing it through the variatio device. And randomization is
+ perfect at this purpose thanks to its purely asemantic behaviour =:)
+
+
+Package: polygen-data
+Architecture: all
+Depends: polygen
+Description: grammar definitions for PolyGen
+ PolyGen is a program for generating random sentences according to a grammar
+ definition, that is following custom syntactical and lexical rules.
+ .
+ Formally, it is an interpreter of a language itself designed to define
+ languages, where to interpret means executing a source program in real time
+ and eventually outputting its result.
+ .
+ Here a source program is a grammar definition, the execution consists in the
+ exploration of such grammar by selecting a random path and the result is the
+ sentence built on the way.
+ .
+ This package contains various grammar files suited for polygen.
Added: trunk/packages/polygen/trunk/debian/copyright
URL: http://svn.debian.org/wsvn/pkg-ocaml-maint/trunk/packages/polygen/trunk/debian/copyright?rev=2801&op=file
==============================================================================
--- trunk/packages/polygen/trunk/debian/copyright (added)
+++ trunk/packages/polygen/trunk/debian/copyright Mon May 29 15:42:42 2006
@@ -1,0 +1,23 @@
+PolyGen was packaged for Debian by Enrico Zini <enrico at debian.org>
+on Wed Sep 15 13:43:37 CEST 2004
+
+It was downloaded from:
+ http://polygen.org/web/Download.424.0.html
+
+Upstream author: Alvise Spanò <alvise.spano at quendi.it>
+
+Copyright (C) 2002-03 Alvise Spanò
+
+License:
+
+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 can be
+found in /usr/share/common-licenses/GPL file.
Added: trunk/packages/polygen/trunk/debian/make_polygen-data_manpage
URL: http://svn.debian.org/wsvn/pkg-ocaml-maint/trunk/packages/polygen/trunk/debian/make_polygen-data_manpage?rev=2801&op=file
==============================================================================
--- trunk/packages/polygen/trunk/debian/make_polygen-data_manpage (added)
+++ trunk/packages/polygen/trunk/debian/make_polygen-data_manpage Mon May 29 15:42:42 2006
@@ -1,0 +1,112 @@
+#!/usr/bin/perl -w
+
+# Generate the polygen-data manpage, scanning the grammar files whose name is
+# supplied on stdin.
+#
+# Copyright: (C) 2005 Enrico Zini <enrico at debian.org>
+#
+# 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 can be
+# found in /usr/share/common-licenses/GPL file.
+
+use strict;
+use warnings;
+use File::Basename;
+
+our $POLYGEN = ($ENV{POLYGEN} or "polygen");
+
+sub extract_metadata ($)
+{
+ my ($file) = @_;
+ my %res;
+
+ # Read the grammar
+ open(IN, "$POLYGEN -info '$file'|") or die "Cannot run $POLYGEN -info '$file': $!";
+ my $lastfield;
+ while (<IN>)
+ {
+ chop;
+ if (/^([^:]+):\s*(.+?)\s*$/)
+ {
+ $res{$1} = $2;
+ $lastfield = $1;
+ } elsif (/^\s*$/) {
+ } else {
+ if (defined $lastfield)
+ {
+ $res{$lastfield} .= "\n".$_;
+ } else {
+ die "UNPARSED in $file: $_\n";
+ }
+ }
+ }
+ close(IN);
+
+ return \%res;
+}
+
+print q{
+.TH POLYGEN-DATA 6
+.SH NAME
+polygen-data \- assorted polygen grammars
+.SH SYNOPSIS
+.B polygen \fIgrammar\fP
+.SH "DESCRIPTION"
+All of these grammars output all sort of strange and out\-of\-control things.
+No personal, racial, societal slurs are intended. For amusement only.
+.P
+You can find out more information about a grammar with the command
+.B polygen -info \fIgrammar\fP
+};
+
+my %langnames = (
+ fra => "French",
+ ita => "Italian",
+ eng => "English"
+);
+
+my %langs;
+
+while (my $file = <>)
+{
+ chop($file);
+
+ my ($name, $path) = fileparse($file);
+
+ $path =~ s/(.+\/)?(.+)\/$/$2/;
+
+ my $md = extract_metadata($file);
+ $md->{filename} = $name;
+
+ push(@{$langs{$path}}, $md);
+
+}
+
+for my $lang ('eng', 'ita', 'fra')
+{
+ print ".SS ", $langnames{$lang}, " grammars\n";
+
+ for my $md (@{$langs{$lang}})
+ {
+ print ".IP ", $md->{filename}, "\n";
+ print $md->{title}, "\n";
+ }
+}
+
+print q{
+.SH "SEE ALSO"
+polygen(1)
+.SH AUTHORS
+Polygen has been written by Manta.
+.P
+These grammars have been written by various contributors. Run \fBpolygen
+-info\fP \fIgrammar\fP to see informations about their authors.
+};
Added: trunk/packages/polygen/trunk/debian/man.grm
URL: http://svn.debian.org/wsvn/pkg-ocaml-maint/trunk/packages/polygen/trunk/debian/man.grm?rev=2801&op=file
==============================================================================
--- trunk/packages/polygen/trunk/debian/man.grm (added)
+++ trunk/packages/polygen/trunk/debian/man.grm Mon May 29 15:42:42 2006
@@ -1,0 +1,71 @@
+I ::= "title: Polygen manpage\n"
+ ^ "author: Enrico Zini <enirco at debian.org>\n"
+ ^ "language: english\n"
+ ^ "status: embryonic\n"
+ ^ "topic: polygen\n"
+ ^ "comment: The generated manpage is still incomplete.\n"
+ ^ "created: 15/09/2004"
+;
+
+S ::= ".TH POLYGEN 1 \"September 15, 2004\"\n"
+ ^ ".SH NAME\n"
+ ^ Name "\n"
+ ^ ".SH SYNOPSIS\n"
+ ^ ".B polygen\n"
+ ^ ".RI [options]\nsources\n"
+ ^ ".SH DESCRIPTION\n"
+ ^ Description "\n"
+ ^ ".SH OPTIONS\n"
+ ^ "Please run \\fBpolygen\\fP without parameters for an explanation on how to run \\fBpolygen\\fP.\n"
+ ^ ".SH SEE ALSO\n"
+ ^ "polygen-data(6),\n"
+ ^ "http://www.pdos.lcs.mit.edu/scigen/\n"
+ ^ ".SH AUTHOR\n"
+ ^ Author
+;
+
+Name ::= Polygen "-" ShortDesc
+ ;
+
+Polygen ::= "Polygen"
+ ;
+
+ShortDesc ::= Polygen "is a" Whatis "for" Whatitdoes Howitdoes
+ ;
+
+Whatis ::= Attribute ( "program" | "tool" | "system" | "gadget" )
+ ;
+
+Attribute ::= ( _ | "powerful" | ^"n advanced" | ^"n innovative" )
+ ;
+
+Whatitdoes ::= ( "generating" | "creating" | "bursting out" | "computing" )
+ Random
+ ( "sentences" | "wisdom" | "nonsense" )
+ ;
+
+Random ::= ( "random" | "deep" | "enlightening" | "zen" | "casual" | "accidental" | "aleatory" | "automatic" | "capricious" | "causeless" | "chancy" | "circumstantial" | "cool" | "cursory" | "destinal" | "desultory" | "dicey" | "erratic" | "extemporaneous" | "flippant" | "fluky" | "flunky" | "fortuitous" | "frivolous" | "gratuitous" | "iffy" | "improvised" | "incidental" | "serendipitous" | "spontaneous" | "stochastic" | "superfluous" | "thoughtless" | "unconscious" )
+ ;
+
+Howitdoes ::= "according to a grammar definition, that is following custom syntactical and lexical rules."
+ ;
+
+Description ::= ShortDesc "\n.PP\n"
+ ^ "Formally, it is an interpreter of a language itself designed to define languages, where to interpret means executing a source program in real time and eventually outputting its result."
+ ^ "\n.PP\n"
+ ^ "Here a source program is a grammar definition, the execution consists in the exploration of such grammar by selecting a random path and the result is the sentence built on the way."
+ ^ "\n.PP\n"
+ ^ "Though PolyGen is quite a seriuos piece of software then, what else would be more noble for it than being used as a parody tool for linguistical habits, stereotypes and trends of this foolish era?"
+ ^ "\n.PP\n"
+ ^ "Principles of parody are focusing a ridiculous topic and eventually abstracting its rules and schemes (here in terms of a grammar definition) by which reproducing it through the variatio device."
+ ^ "\n.PP\n"
+ ^ "And randomization is perfect at this purpose thanks to its purely asemantic behaviour =:)"
+ ;
+
+Author ::= "Manta"
+ ^ "\n.PP\n"
+ ^ "This manpage has been generated after instructions given by Enrico Zini <enrico at debian.org>."
+ ;
+
+
+
Added: trunk/packages/polygen/trunk/debian/patches/01-dont-regenerate-existing-ofiles.diff
URL: http://svn.debian.org/wsvn/pkg-ocaml-maint/trunk/packages/polygen/trunk/debian/patches/01-dont-regenerate-existing-ofiles.diff?rev=2801&op=file
==============================================================================
--- trunk/packages/polygen/trunk/debian/patches/01-dont-regenerate-existing-ofiles.diff (added)
+++ trunk/packages/polygen/trunk/debian/patches/01-dont-regenerate-existing-ofiles.diff Mon May 29 15:42:42 2006
@@ -1,0 +1,21 @@
+--- polygen-1.0.6/src/main.ml 2004-06-25 11:58:00.000000000 +0200
++++ polygen-1.0.6/src/main.ml 2004-11-23 19:44:14.000000000 +0100
+@@ -150,10 +176,14 @@
+ done;
+
+ (* store compiled grammar *)
+- try
+- msg "storing compiled grammar...";
+- store_obj source decls
+- with Failure s -> msg s
++ if (Sys.file_exists(source^".o") = false)
++ then
++ begin
++ try
++ msg "storing compiled grammar...";
++ store_obj source decls
++ with Failure s -> msg s
++ end
+ ;;
+
+
Added: trunk/packages/polygen/trunk/debian/patches/02-search-for-grammars.diff
URL: http://svn.debian.org/wsvn/pkg-ocaml-maint/trunk/packages/polygen/trunk/debian/patches/02-search-for-grammars.diff?rev=2801&op=file
==============================================================================
--- trunk/packages/polygen/trunk/debian/patches/02-search-for-grammars.diff (added)
+++ trunk/packages/polygen/trunk/debian/patches/02-search-for-grammars.diff Mon May 29 15:42:42 2006
@@ -1,0 +1,42 @@
+--- src/main.ml 2004-06-25 11:58:00.000000000 +0200
++++ src/main.ml 2004-11-23 19:44:14.000000000 +0100
+@@ -119,6 +119,29 @@
+ msg "preprocessing grammar...";
+ Pre.pre decls0
+
++let find_grammar source =
++ if (Sys.file_exists(source)) then
++ source
++ else if (Sys.file_exists(source^".grm")) then
++ source^".grm"
++ else if (Sys.file_exists("/usr/share/polygen/"^source)) then
++ "/usr/share/polygen/"^source
++ else if (Sys.file_exists("/usr/share/polygen/"^source^".grm")) then
++ "/usr/share/polygen/"^source^".grm"
++ else if (Sys.file_exists("/usr/share/polygen/eng/"^source)) then
++ "/usr/share/polygen/eng/"^source
++ else if (Sys.file_exists("/usr/share/polygen/eng/"^source^".grm")) then
++ "/usr/share/polygen/eng/"^source^".grm"
++ else if (Sys.file_exists("/usr/share/polygen/fra/"^source)) then
++ "/usr/share/polygen/fra/"^source
++ else if (Sys.file_exists("/usr/share/polygen/fra/"^source^".grm")) then
++ "/usr/share/polygen/fra/"^source^".grm"
++ else if (Sys.file_exists("/usr/share/polygen/ita/"^source)) then
++ "/usr/share/polygen/ita/"^source
++ else if (Sys.file_exists("/usr/share/polygen/ita/"^source^".grm")) then
++ "/usr/share/polygen/ita/"^source^".grm"
++ else
++ source
+
+ (* main *)
+
+@@ -132,6 +155,9 @@
+ fprintf !dest "%s\n" (Absyn1.pretty_decls "" (get_decls1 source))
+
+ | Generate ->
++ let source = (find_grammar source)
++ in
++
+ (* load complied or source grammar *)
+ let decls =
+ try
Added: trunk/packages/polygen/trunk/debian/patches/03-makefile.diff
URL: http://svn.debian.org/wsvn/pkg-ocaml-maint/trunk/packages/polygen/trunk/debian/patches/03-makefile.diff?rev=2801&op=file
==============================================================================
--- trunk/packages/polygen/trunk/debian/patches/03-makefile.diff (added)
+++ trunk/packages/polygen/trunk/debian/patches/03-makefile.diff Mon May 29 15:42:42 2006
@@ -1,0 +1,74 @@
+--- src/makefile 2004-11-23 22:47:56.000000000 +0100
++++ src/makefile 2004-11-23 23:00:32.000000000 +0100
+@@ -10,27 +10,37 @@
+ VERSION := $(shell cat <VERSION)
+ DATE := $(shell cat <DATE)
+
+-MLDEP = ocamldep -native
+-MLC = ocamlopt.opt
++# must be linked in this order
++SRCS := ver.ml \
++ prelude.ml \
++ err.ml \
++ absyn.ml \
++ env.ml \
++ check.ml \
++ pre.ml \
++ gen.ml \
++ fake.ml \
++ parser.ml \
++ lexer.ml \
++ io.ml \
++ main.ml
++
++ifeq ($(NATIVE), false)
++MLC = ocamlc
++MLCOPTS = -unsafe
++MLLDOPTS = unix.cma
++OBJS := $(SRCS:.ml=.cmo)
++else
++MLC = ocamlopt
+ MLCOPTS = -inline 23 -unsafe
+ MLLDOPTS = unix.cmxa
++OBJS := $(SRCS:.ml=.cmx)
++endif
++
++MLDEP = ocamldep -native
+ MLLEX = ocamllex
+ MLYACC = ocamlyacc
+
+-# must be linked in this order
+-OBJS := ver.cmx \
+- prelude.cmx \
+- err.cmx \
+- absyn.cmx \
+- env.cmx \
+- check.cmx \
+- pre.cmx \
+- gen.cmx \
+- fake.cmx \
+- parser.cmx lexer.cmx \
+- io.cmx \
+- main.cmx
+-SRCS := $(OBJS:.cmx=.ml)
+
+
+ all: $(NAME)
+@@ -41,13 +51,16 @@
+ %.cmi: %.mli
+ $(MLC) -c $(MLCOPTS) $< -o $@
+
++%.cmo: %.ml
++ $(MLC) -c $(MLCOPTS) $< -o $@
++
+ %.cmx: %.ml
+ $(MLC) -c $(MLCOPTS) $< -o $@
+
+ parser.mli parser.ml lexer.ml: lexer.mll parser.mly
+ $(MLLEX) lexer.mll
+ $(MLYACC) parser.mly
+- # workaround for ocamlyacc "open" lack
++ # workaround for ocamlyacc "open" lack
+ @mv parser.mli _parser.mli
+ @echo -e "open Absyn\n" >parser.mli
+ @cat <_parser.mli >>parser.mli
Added: trunk/packages/polygen/trunk/debian/patches/04-create-mode.diff
URL: http://svn.debian.org/wsvn/pkg-ocaml-maint/trunk/packages/polygen/trunk/debian/patches/04-create-mode.diff?rev=2801&op=file
==============================================================================
--- trunk/packages/polygen/trunk/debian/patches/04-create-mode.diff (added)
+++ trunk/packages/polygen/trunk/debian/patches/04-create-mode.diff Mon May 29 15:42:42 2006
@@ -1,0 +1,16 @@
+--- polygen-1.0.6/src/io.ml 2004-06-25 10:38:35.000000000 +0200
++++ polygen-1.0.6/src/io.ml 2005-08-29 16:28:09.822686120 +0200
+@@ -57,12 +57,11 @@
+ let file = source ^ __obj in
+ try
+ let tmp = Printf.sprintf "%s.%d" file (Unix.getpid ()) in
+- let oc = open_out_gen [Open_wronly; Open_binary; Open_creat; Open_trunc] 0o600 tmp in
++ let oc = open_out_gen [Open_wronly; Open_binary; Open_creat; Open_trunc] 0o666 tmp in
+ let obj = make_obj data
+ in
+ Marshal.to_channel oc obj [];
+ close_out oc;
+- Unix.chmod tmp 0o666;
+ Unix.rename tmp file
+
+ with Unix.Unix_error (e, _, _) ->
Added: trunk/packages/polygen/trunk/debian/patches/05-8bit-strings.diff
URL: http://svn.debian.org/wsvn/pkg-ocaml-maint/trunk/packages/polygen/trunk/debian/patches/05-8bit-strings.diff?rev=2801&op=file
==============================================================================
--- trunk/packages/polygen/trunk/debian/patches/05-8bit-strings.diff (added)
+++ trunk/packages/polygen/trunk/debian/patches/05-8bit-strings.diff Mon May 29 15:42:42 2006
@@ -1,0 +1,16 @@
+--- polygen-1.0.6/src/lexer.mll 2005-11-21 20:21:00.000000000 +0100
++++ polygen-1.0.6/src/lexer.mll 2005-12-11 23:44:49.000000000 +0100
+@@ -24,12 +24,7 @@
+ let c = String.make 1 (char_of_int (int_of_string s))
+ in
+ c ^ (quote lexbuf) }
+-
+- | ['a'-'z' 'A'-'Z' '0'-'9' '!' '£' '$' '%' '&' '/' '(' ')' '=' '?' '^' '\''
+- '[' ']' '*' '+' '@' '#' '<' '>' ',' '.' '-' ';' ':' '_' '{' '}' '`' '~'
+- '|' ' '] { let s = Lexing.lexeme lexbuf in s ^ (quote lexbuf) }
+-
+- | _ { raise (Failure ("illegal character '" ^ (String.escaped (Lexing.lexeme lexbuf)) ^ "' within quote")) }
++ | _ { let s = Lexing.lexeme lexbuf in s ^ (quote lexbuf) }
+
+ and comment = parse
+ "*)" { token lexbuf }
Added: trunk/packages/polygen/trunk/debian/polygen-data.manpages
URL: http://svn.debian.org/wsvn/pkg-ocaml-maint/trunk/packages/polygen/trunk/debian/polygen-data.manpages?rev=2801&op=file
==============================================================================
--- trunk/packages/polygen/trunk/debian/polygen-data.manpages (added)
+++ trunk/packages/polygen/trunk/debian/polygen-data.manpages Mon May 29 15:42:42 2006
@@ -1,0 +1,1 @@
+polygen-data.6
Added: trunk/packages/polygen/trunk/debian/polygen-data.postinst
URL: http://svn.debian.org/wsvn/pkg-ocaml-maint/trunk/packages/polygen/trunk/debian/polygen-data.postinst?rev=2801&op=file
==============================================================================
--- trunk/packages/polygen/trunk/debian/polygen-data.postinst (added)
+++ trunk/packages/polygen/trunk/debian/polygen-data.postinst Mon May 29 15:42:42 2006
@@ -1,0 +1,17 @@
+#!/bin/sh
+
+#set +C # turn off noclobber
+
+if [ ! -e /usr/share/polygen/ita/polygen.grm.o ]
+then
+ echo -n "Generating grammar objects..."
+
+ # Set the right umask
+ umask 0022
+
+ find /usr/share/polygen/ -type f -iname '*.grm' ! -iname '*.grm.o' -exec polygen "{}" \; > /dev/null
+
+ echo "done."
+fi
+
+#DEBHELPER#
Added: trunk/packages/polygen/trunk/debian/polygen.dirs
URL: http://svn.debian.org/wsvn/pkg-ocaml-maint/trunk/packages/polygen/trunk/debian/polygen.dirs?rev=2801&op=file
==============================================================================
--- trunk/packages/polygen/trunk/debian/polygen.dirs (added)
+++ trunk/packages/polygen/trunk/debian/polygen.dirs Mon May 29 15:42:42 2006
@@ -1,0 +1,2 @@
+usr/bin
+usr/share/doc
Added: trunk/packages/polygen/trunk/debian/polygen.manpages
URL: http://svn.debian.org/wsvn/pkg-ocaml-maint/trunk/packages/polygen/trunk/debian/polygen.manpages?rev=2801&op=file
==============================================================================
--- trunk/packages/polygen/trunk/debian/polygen.manpages (added)
+++ trunk/packages/polygen/trunk/debian/polygen.manpages Mon May 29 15:42:42 2006
@@ -1,0 +1,1 @@
+polygen.1
Added: trunk/packages/polygen/trunk/debian/rules
URL: http://svn.debian.org/wsvn/pkg-ocaml-maint/trunk/packages/polygen/trunk/debian/rules?rev=2801&op=file
==============================================================================
--- trunk/packages/polygen/trunk/debian/rules (added)
+++ trunk/packages/polygen/trunk/debian/rules Mon May 29 15:42:42 2006
@@ -1,0 +1,67 @@
+#!/usr/bin/make -f
+
+OCAMLABI=$(shell ocamlc -version)
+DEB_DH_GENCONTROL_ARGS = -- -VF:OCamlABI="$(OCAMLABI)"
+
+POLYGEN_BASE=.
+DEB_BUILDDIR=$(POLYGEN_BASE)/src
+POLYGEN=$(DEB_BUILDDIR)/polygen
+export POLYGEN
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/makefile.mk
+include /usr/share/cdbs/1/rules/simple-patchsys.mk
+
+# set $(NATIVE) to true if this arch has an optimising compiler
+#NATIVE := $(shell test -x /usr/bin/ocamlopt.opt && echo true || echo false)
+# Forcing native to false to have a Architecture: all package, since polygen
+# doesn't have special optimization requirements
+NATIVE := false
+
+# No toplevel makefile: we'll add a -C to the make invocation
+#DEB_MAKE_BUILD_TARGET+="-Csrc"
+
+# If we have the optimising compiler, build natively with debugging because
+# we can strip it later. if we don't, disable debugging because stripping
+# the non-native binaries removes the bytecode and leaves you with the
+# interpreter, and a somewhat useless binary... =)
+
+DEB_MAKE_BUILD_TARGET+="NATIVE=$(NATIVE)"
+DEB_STRIP_EXCLUDE+=polygen
+
+#ifeq ($(NATIVE), true)
+#DEB_MAKE_BUILD_TARGET+="MLC=ocamlopt"
+#else
+#DEB_MAKE_BUILD_TARGET+="MLC=ocamlc"
+#DEB_MAKE_BUILD_TARGET+="MLCOPTS=-unsafe"
+#DEB_MAKE_BUILD_TARGET+="MLLDOPTS=unix.cma"
+#DEB_STRIP_EXCLUDE+=polygen
+#endif
+
+# Hook in the build system the creation of the manpage
+# Invoking polygen to extract the metadata from the grammars will also generate
+# the .grm.o files, that we can later install.
+build/polygen::
+ $(POLYGEN) debian/man.grm > polygen.1
+ chmod 0755 debian/make_polygen-data_manpage
+ find $(POLYGEN_BASE)/grm/ -name \*.grm | debian/make_polygen-data_manpage > polygen-data.6
+
+install/polygen::
+ install -o root -g root -m 755 $(POLYGEN) debian/$(cdbs_curpkg)/usr/bin/
+ install -o root -g root -m 755 -d debian/$(cdbs_curpkg)/usr/share/doc/polygen
+ install -o root -g root -m 644 $(POLYGEN_BASE)/eng/HOWTO-Refman.html debian/$(cdbs_curpkg)/usr/share/doc/polygen/HOWTO-Refman.en.html
+ install -o root -g root -m 644 $(POLYGEN_BASE)/ita/HOWTO-Refman.html debian/$(cdbs_curpkg)/usr/share/doc/polygen/HOWTO-Refman.it.html
+ install -o root -g root -m 644 $(POLYGEN_BASE)/README debian/$(cdbs_curpkg)/usr/share/doc/polygen/README
+ install -o root -g root -m 644 $(POLYGEN_BASE)/Credits debian/$(cdbs_curpkg)/usr/share/doc/polygen/Credits
+
+install/polygen-data::
+ # grammar data files
+ for lang in eng ita fra ;\
+ do \
+ install -o root -g root -m 755 -d debian/$(cdbs_curpkg)/usr/share/polygen/$$lang/ ;\
+ find $(POLYGEN_BASE)/grm/$$lang/ -iname '*.grm*' -exec \
+ install -o root -g root -m 644 '{}' debian/$(cdbs_curpkg)/usr/share/polygen/$$lang/ \; ; \
+ done
+
+clean::
+ rm -f debian/man.grm.o polygen.1 polygen-data.6
Propchange: trunk/packages/polygen/trunk/debian/rules
------------------------------------------------------------------------------
svn:executable = *
Added: trunk/packages/polygen/trunk/debian/svn-deblayout
URL: http://svn.debian.org/wsvn/pkg-ocaml-maint/trunk/packages/polygen/trunk/debian/svn-deblayout?rev=2801&op=file
==============================================================================
--- trunk/packages/polygen/trunk/debian/svn-deblayout (added)
+++ trunk/packages/polygen/trunk/debian/svn-deblayout Mon May 29 15:42:42 2006
@@ -1,0 +1,4 @@
+origDir=../upstream
+origUrl=svn+ssh://svn.debian.org/svn/pkg-ocaml-maint/trunk/packages/polygen/upstream
+tagsUrl=svn+ssh://svn.debian.org/svn/pkg-ocaml-maint/tags/packages/polygen
+
Added: trunk/packages/polygen/upstream/polygen_1.0.6.ds1.orig.tar.gz
URL: http://svn.debian.org/wsvn/pkg-ocaml-maint/trunk/packages/polygen/upstream/polygen_1.0.6.ds1.orig.tar.gz?rev=2801&op=file
==============================================================================
Binary file - no diff available.
Propchange: trunk/packages/polygen/upstream/polygen_1.0.6.ds1.orig.tar.gz
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
More information about the Pkg-ocaml-maint-commits
mailing list