[gap-toric] 02/02: Imported Zeroth Debian patch 1.8+ds-1

Jerome Benoit calculus-guest at moszumanska.debian.org
Wed Dec 14 05:20:44 UTC 2016


This is an automated email from the git hooks/post-receive script.

calculus-guest pushed a commit to branch master
in repository gap-toric.

commit 1715badc712a46e79e7214938acc5f7480c270fa
Author: Jerome Benoit <calculus at rezozer.net>
Date:   Wed Dec 14 05:19:13 2016 +0000

    Imported Zeroth Debian patch 1.8+ds-1
---
 debian/adhoc/extract_examples.g                    |  89 +++++++++++++++
 debian/adhoc/makedoc.g                             |   6 +
 debian/adhoc/tst/testall.g                         |  22 ++++
 debian/changelog                                   |   5 +
 debian/clean                                       |  15 +++
 debian/compat                                      |   1 +
 debian/control                                     |  26 +++++
 debian/copyright                                   |  59 ++++++++++
 debian/gap-toric.doc-base                          |  21 ++++
 debian/gap-toric.docs                              |   1 +
 debian/gap-toric.install                           |   4 +
 debian/gap-toric.links                             |   2 +
 debian/patches/debianization-documentation.patch   |  21 ++++
 debian/patches/debianization-tests.patch           |  19 ++++
 debian/patches/series                              |   4 +
 ...-documentation-examples-math-possible_bug.patch |  26 +++++
 ...tream-correct-documentation-examples-typo.patch | 125 +++++++++++++++++++++
 debian/rules                                       |  27 +++++
 debian/source/format                               |   1 +
 debian/source/lintian-overrides                    |   1 +
 debian/tests/control                               |   1 +
 debian/tests/makecheck.tst                         |  13 +++
 debian/watch                                       |   3 +
 23 files changed, 492 insertions(+)

diff --git a/debian/adhoc/extract_examples.g b/debian/adhoc/extract_examples.g
new file mode 100644
index 0000000..f93c259
--- /dev/null
+++ b/debian/adhoc/extract_examples.g
@@ -0,0 +1,89 @@
+###########################################################################
+##
+## extract_examples.g                                   Alexander Konovalov
+##
+###########################################################################
+## Fetched  from GitHub-Gist  <https://gist.github.com/alex-konovalov>  and
+## adapted  with respect  to packaging needs for  Debian  by  Jerome Benoit
+## <calculus at rezozer.net> on behalf of the Debian Science Team.
+###########################################################################
+
+# This GAP script extracts examples from package manuals in GAPDoc format
+# (http://www.math.rwth-aachen.de/~Frank.Luebeck/GAPDoc/). The output will
+# be stored in the 'tst' directory of the package in files 'pkgnameXX.tst'
+# (one file per chapter for each chapter that contains examples).
+#
+# Extracted examples may be tested using the 'Test' function, for example:
+# gap> Test("tst/pkgnameXX.tst");
+# or
+# gap> Test("tst/tomlib.tst",rec(compareFunction:="uptowhitespace"));
+#
+# This script is tested with GAP 4.7.5 and TomLib 1.2.4.
+#
+# To use this script, set up PKGNAME, PKGMAIN and PKGMANUALFILES files
+# variables. The example below shows how to do this for the TomLib package.
+#
+###########################################################################
+
+SetPackagePath("toric",".");
+
+# The name of the package
+####PKGNAME := "tomlib";
+PKGNAME := "toric";
+
+# The name of the main manual file (with extension)
+####PKGMAIN := "tomlib.xml";
+PKGMAIN := "toric.xml";
+
+# List of source files containing parts of documentation
+# (paths should be relative to the directory containing PKGMAIN file)
+####PKGMANUALFILES:= ["../gap/tmadmin.tmd", "../gap/stdgen.gd"];
+PKGMANUALFILES:= [ "../PackageInfo.g" ];
+
+###########################################################################
+#
+# You do not need to edit anything below this line
+#
+###########################################################################
+
+ExtractPackageManualExamples:=function( pkgname, main, files )
+local path, tst, i, s, name, output, ch, a;
+path:=Directory(
+        Concatenation(PackageInfo(pkgname)[1].InstallationPath, "/doc") );
+Print("Extracting manual examples for ", pkgname, " package ...\n" );
+tst:=ExtractExamples( path, main, files, "Chapter" );
+Print(Length(tst), " chapters detected\n");
+for i in [ 1 .. Length(tst) ] do
+  Print( "Chapter ", i, " : \c" );
+  if Length( tst[i] ) > 0 then
+    s := String(i);
+    if Length(s)=1 then
+      # works for <100 chapters (no packages with more chapters are known).
+      s:=Concatenation("0",s);
+    fi;
+    name := Filename(
+              Directory(
+                Concatenation( PackageInfo(pkgname)[1].InstallationPath,
+                               "/tst" ) ),
+                Concatenation( LowercaseString(pkgname), "-examples-ch", s, ".tst" ) );
+    output := OutputTextFile( name, false ); # to empty the file first
+    SetPrintFormattingStatus( output, false ); # to avoid line breaks
+    ch := tst[i];
+    AppendTo(output, "# ", pkgname, ", chapter ",i,"\n");
+    for a in ch do
+      AppendTo(output, "\n# ",a[2], a[1]);
+    od;
+    Print("extracted ", Length(ch), " examples \n");
+  else
+    Print("no examples \n" );
+  fi;
+od;
+end;
+
+ExtractPackageManualExamples( PKGNAME, PKGMAIN, PKGMANUALFILES );
+
+QUIT;
+###########################################################################
+##
+#E
+##
diff --git a/debian/adhoc/makedoc.g b/debian/adhoc/makedoc.g
new file mode 100644
index 0000000..3bd9e63
--- /dev/null
+++ b/debian/adhoc/makedoc.g
@@ -0,0 +1,6 @@
+# debian/makedoc.g -- GAP script
+SetPackagePath("toric",".");
+LoadPackage("toric");;
+MakeGAPDocDoc("doc","toric",[],"toric");;
+CopyHTMLStyleFiles("doc");
+GAPDocManualLab( "toric" );;
diff --git a/debian/adhoc/tst/testall.g b/debian/adhoc/tst/testall.g
new file mode 100644
index 0000000..910e94b
--- /dev/null
+++ b/debian/adhoc/tst/testall.g
@@ -0,0 +1,22 @@
+PKGNAME:="toric";;
+LoadPackage(PKGNAME);;
+pkgdir:=DirectoriesPackageLibrary(PKGNAME,"tst");;
+status:=true;;
+for xdx in [1.. 99] do
+	xdx_str:=ReplacedString(String(xdx,2)," ","0");
+	xtstfl:=Filename(pkgdir[1],Concatenation(PKGNAME,"-examples-ch",xdx_str,".tst"));
+	if IsExistingFile(xtstfl) then
+		Print("#I  Testing ",xtstfl,"\c");
+		if not Test(xtstfl,rec(compareFunction:="uptowhitespace")) then
+			Print("  [FAIL]\n\c");
+			status:=false;
+		else
+			Print("  [PASS]\n\c");
+		fi;
+	fi;
+od;
+if status then
+	Print("#I  No errors detected while testing package ",PKGNAME,"\n\c");
+else
+	Print("#I  Errors detected while testing package ",PKGNAME,"\n\c");
+fi;
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..0f22551
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+gap-toric (1.8+ds-1) unstable; urgency=medium
+
+  * Initial release (Closes: #848053).
+
+ -- Jerome Benoit <calculus at rezozer.net>  Wed, 14 Dec 2016 05:18:32 +0000
diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..cd39187
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1,15 @@
+doc/chap*.txt
+doc/chap*.html
+doc/chooser.html
+doc/toric.{tex,aux,bbl,blg,brf,idx,ilg,ind,log,out,pnr,toc}
+doc/manual.{six,lab}
+doc/manual.pdf
+doc/lefttoc.css
+doc/manual.{css,js}
+doc/nocolorprompt.css
+doc/ragged.css
+doc/rainbow.js
+doc/times.css
+doc/toggless.{css,js}
+doc/mathjax
+tst/toric-examples-*.tst
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..f599e28
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+10
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..457368e
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,26 @@
+Source: gap-toric
+Section: math
+Priority: optional
+Maintainer: Debian Science Maintainers <debian-science-maintainers at lists.alioth.debian.org>
+Uploaders: Jerome Benoit <calculus at rezozer.net>
+Build-Depends:
+ debhelper (>= 10),
+ gap (>=4r8p6), gap-gapdoc (>=1.5.1-3),
+ texlive-latex-extra, texlive-fonts-recommended
+Standards-Version: 3.9.8
+Homepage: http://www.gap-system.org/Packages/toric.html
+Vcs-Git: https://anonscm.debian.org/git/debian-science/packages/gap-toric.git
+Vcs-Browser: https://anonscm.debian.org/cgit/debian-science/packages/gap-toric.git
+
+Package: gap-toric
+Provides: gap-pkg-toric
+Architecture: all
+Depends: gap (>=4r8p6), gap-gapdoc (>=1.5.1-3), ${misc:Depends}
+Suggests: gap-guava
+Description: toric variety for GAP
+ GAP is a system for computational discrete algebra with particular
+ emphasis on computational group theory, but which has already proved
+ useful also in other areas.
+ .
+ This package provides for GAP routines for working with toric varieties
+ and dealing with cones and related combinatorial geometric object.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..0fff69a
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,59 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0
+Upstream-Name: GAP package toric
+Upstream-Contact: David Joyner <wdjoyner at gmail.com>
+Source: http://www.gap-system.org/Packages/toric.html
+Files-Excluded:
+ html
+ doc/chap*.txt
+ doc/chap*.html
+ doc/toric.tex
+ doc/toric.aux
+ doc/toric.bbl
+ doc/toric.blg
+ doc/toric.brf
+ doc/toric.idx
+ doc/toric.ilg
+ doc/toric.ind
+ doc/toric.log
+ doc/toric.pnr
+ doc/toric.toc
+ doc/manual.six
+ doc/manual.pdf
+
+Files: *
+Copyright:
+ 2004-2016 David Joyner <wdjoyner at gmail.com>
+License: GPL-2+
+
+Files: debian/*
+Copyright:
+ 2016 Jerome Benoit <calculus at rezozer.net>
+License: GPL-2+
+
+Files: debian/adhoc/extract_examples.g
+Copyright:
+	2016 Jerome Benoit <calculus at rezozer.net>
+License: public-domain
+ This file is public domain and come with NO WARRANTY of any kind.
+Comment:
+ This file is an adapted version of a GAP script initialy written by
+ Alexander Konovalov <alexk at mcs.st-andrews.ac.uk> who deposited it at
+ GitHub-Gist <https://gist.github.com/alex-konovalov>. It was fetched,
+ adopted, and slightly modified by hand.
+
+License: GPL-2+
+ This package 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 package 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.
+ .
+ You should have received a copy of the GNU General Public License
+ along with this package. If not, see <http://www.gnu.org/licenses/>.
+ .
+ On Debian systems, the complete text of the GNU General
+ Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
diff --git a/debian/gap-toric.doc-base b/debian/gap-toric.doc-base
new file mode 100644
index 0000000..8a1917f
--- /dev/null
+++ b/debian/gap-toric.doc-base
@@ -0,0 +1,21 @@
+Document: gap-toric
+Title: Toric: a GAP Package for computing with toric varieties
+Author: David Joyner <wdjoyner at gmail.com>
+Abstract:
+ This manual describes the toric package for working with toric varieties
+ in GAP. Toric varieties can be dealt with more easily than general varieties
+ since often times questions about a toric variety can be reformulated in
+ terms of combinatorial geometry. The toric GAP package is implemented in the
+ GAP language.
+Section: Science/Mathematics
+
+Format: pdf
+Files: /usr/share/doc/gap-toric/doc/manual.pdf
+
+Format: HTML
+Index: /usr/share/doc/gap-toric/doc/chap0.html
+Files: /usr/share/doc/gap-toric/doc/*.html
+
+Format: text
+Index: /usr/share/doc/gap-toric/doc/chap0.txt
+Files: /usr/share/doc/gap-toric/doc/*.txt
diff --git a/debian/gap-toric.docs b/debian/gap-toric.docs
new file mode 100644
index 0000000..2d082cd
--- /dev/null
+++ b/debian/gap-toric.docs
@@ -0,0 +1 @@
+README.toric
diff --git a/debian/gap-toric.install b/debian/gap-toric.install
new file mode 100644
index 0000000..4a5153c
--- /dev/null
+++ b/debian/gap-toric.install
@@ -0,0 +1,4 @@
+PackageInfo.g init.g read.g toric_examples.test lib               usr/share/gap/pkg/toric
+tst/* debian/adhoc/tst/*                                          usr/share/gap/pkg/toric/tst
+doc/*.txt doc/*.html doc/manual.lab doc/manual.six doc/manual.pdf usr/share/gap/pkg/toric/doc
+doc/mathjax doc/manual.css doc/manual.js                          usr/share/gap/pkg/toric/doc
diff --git a/debian/gap-toric.links b/debian/gap-toric.links
new file mode 100644
index 0000000..75dd4ce
--- /dev/null
+++ b/debian/gap-toric.links
@@ -0,0 +1,2 @@
+usr/share/gap/pkg/toric/doc usr/share/doc/gap-toric/doc
+usr/share/gap/pkg/toric/toric_examples.test usr/share/doc/gap-toric/examples/toric.test
diff --git a/debian/patches/debianization-documentation.patch b/debian/patches/debianization-documentation.patch
new file mode 100644
index 0000000..71fb786
--- /dev/null
+++ b/debian/patches/debianization-documentation.patch
@@ -0,0 +1,21 @@
+Description: debianization: documentation
+ Meant to address Debian specific requirements and stuff for documentation.
+Origin: vendor, Debian
+Author: Jerome Benoit <calculus at rezozer.net>
+Last-Update: 2016-12-14
+
+--- a/PackageInfo.g
++++ b/PackageInfo.g
+@@ -102,10 +102,10 @@
+   PackageDoc := rec(
+     # use same as in GAP            
+     BookName  := "toric",
+-    ArchiveURLSubset := ["doc", "html"],
++    ArchiveURLSubset := ["doc"],
+     # format/extension can be one of .zoo, .tar.gz, .tar.bz2, -win.zip
+     #Archive   := "http://cadigweb.ew.usna.edu/~wdj/gap/toric/toric1.3.gz",
+-    HTMLStart := "html/chap0.html",
++    HTMLStart := "doc/chap0.html",
+     PDFFile   := "doc/manual.pdf",
+     # the path to the .six file used by GAP's help system
+     SixFile   := "doc/manual.six",
diff --git a/debian/patches/debianization-tests.patch b/debian/patches/debianization-tests.patch
new file mode 100644
index 0000000..3a2e74b
--- /dev/null
+++ b/debian/patches/debianization-tests.patch
@@ -0,0 +1,19 @@
+Description: debianization: tests
+ Meant to maintain both a minimal debian/rules and a minimal
+ debian/test/control by fixing annoying warnings and errors and by addressing
+ Debian specific stuff in general.
+Origin: vendor, Debian
+Forwarded: not-needed
+Author: Jerome Benoit <calculus at rezozer.net>
+Last-Update: 2016-12-14
+
+--- a/PackageInfo.g
++++ b/PackageInfo.g
+@@ -169,6 +169,7 @@
+ ##  *Optional*, but recommended: path relative to package root to a file which 
+ ##  contains as many tests of the package functionality as sensible.
+ #TestFile := "toric/toric_examples.test",
++TestFile := "tst/testall.g",
+ 
+ ##  *Optional*: Here you can list some keyword related to the topic 
+ ##  of the package.
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..ceb2fff
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,4 @@
+upstream-correct-documentation-examples-typo.patch
+upstream-correct-documentation-examples-math-possible_bug.patch
+debianization-documentation.patch
+debianization-tests.patch
diff --git a/debian/patches/upstream-correct-documentation-examples-math-possible_bug.patch b/debian/patches/upstream-correct-documentation-examples-math-possible_bug.patch
new file mode 100644
index 0000000..d156f4f
--- /dev/null
+++ b/debian/patches/upstream-correct-documentation-examples-math-possible_bug.patch
@@ -0,0 +1,26 @@
+Description: upstream: correct examples in documentation: math
+ Correct an error as detected through ExtractExamples (section 5.4 in
+ GAPDoc Reference Manual) by the packageitself. This correction is by
+ no mean authoritative: confirmation has been to the upstream maintainer.
+Origin: vendor, Debian
+Forwarded: by-email
+Author: Jerome Benoit <calculus at rezozer.net>
+Last-Update: 2016-12-14
+
+--- a/doc/toric.xml
++++ b/doc/toric.xml
+@@ -788,10 +788,12 @@
+ </ManSection>			  
+ 
+ <Example>
++<![CDATA[
+ gap> J:=IdealAffineToricVariety([[1,0],[3,4]]);
+-[ two-sided ideal in PolynomialRing(..., [ x_1, x_2 ]), (3 generators) ]
++<two-sided ideal in Rationals[x_1,x_2,x_3,x_4,x_5], (3 generators)>
+ gap> GeneratorsOfIdeal(J);
+-[ -x_2^2+x_1, -x_2^3+x_1^2, -x_2^4+x_1^3 ]
++[ -x_4^4+x_1, -x_4^3+x_2, -x_4^2+1 ]
++]]>
+ </Example>
+ 
+ <ManSection>
diff --git a/debian/patches/upstream-correct-documentation-examples-typo.patch b/debian/patches/upstream-correct-documentation-examples-typo.patch
new file mode 100644
index 0000000..8bba8e5
--- /dev/null
+++ b/debian/patches/upstream-correct-documentation-examples-typo.patch
@@ -0,0 +1,125 @@
+Description: upstream: correct examples in documentation: typo
+ Correct the layout of some examples to avoid false errors when
+ testing them (section 5.4 in GAPDoc Reference Manual); meant to
+ be submitted to the upstream maintainer.
+Origin: vendor, Debian
+Forwarded: by-email
+Author: Jerome Benoit <calculus at rezozer.net>
+Last-Update: 2016-12-14
+
+--- a/doc/toric.xml
++++ b/doc/toric.xml
+@@ -599,7 +599,6 @@
+ [ [ 0, 0, 1 ], [ 0, 1, 0 ], [ 1, 0, 0 ] ]
+ gap> Faces(Cones2[2]);
+ [ [ 1/3, 5/6, 1 ], [ 1/2, 0, -1 ], [ 2, 0, 1 ] ]
+-gap>
+ </Example>
+ <!--
+ Cones1:=[[[2,-1],[-1,2]],[[-1,2],[-1,-1]],[[-1,-1],[2,-1]]];;
+@@ -647,7 +646,6 @@
+ 
+ <Example>
+ gap> Delta0:=[ [ [2,0,0],[0,2,0],[0,0,2] ], [ [2,0,0],[0,2,0],[2,-2,1],[1,2,-2] ] ];;
+-gap>
+ gap> NumberOfConesOfFan(Delta0,2);
+ 6
+ gap> ConesOfFan(Delta0,2);
+@@ -659,7 +657,6 @@
+   [ [ 2, -2, 1 ] ], [ [ 2, 0, 0 ] ] ]
+ gap> NumberOfConesOfFan(Delta0,1);
+ 5
+-
+ </Example>
+ <!--
+ Delta0:=[ [ [2,0,0],[0,2,0],[0,0,2] ], [ [2,0,0],[0,2,0],[2,-2,1],[1,2,-2] ] ];;
+@@ -689,21 +686,19 @@
+ 
+ <Example>
+ gap> MaxCones:=[ [ [2,0,0],[0,2,0],[0,0,2] ], 
+-                 [ [2,0,0],[0,2,0],[2,-2,1],[1,2,-2] ] ];;
++>                 [ [2,0,0],[0,2,0],[2,-2,1],[1,2,-2] ] ];;
+ gap> #this is the set of maximal cones in the fan Delta
+ gap> ToricStar([[1,0]],MaxCones);
+ [  ]
+ gap> ToricStar([[2,0,0],[0,2,0]],MaxCones);
+ [ [ [ 0, 2, 0 ], [ 2, 0, 0 ] ], [ [ 2, 0, 0 ], [ 0, 2, 0 ], [ 0, 0, 2 ] ],
+   [ [ 2, 0, 0 ], [ 0, 2, 0 ], [ 2, -2, 1 ], [ 1, 2, -2 ] ] ]
+-gap>
+ gap> MaxCones:=[ [ [2,0,0],[0,2,0],[0,0,2] ], [ [2,0,0],[0,2,0],[1,1,-2] ] ];;
+ gap> ToricStar([[2,0,0],[0,2,0]],MaxCones);
+ [ [ [ 0, 2, 0 ], [ 2, 0, 0 ] ], [ [ 2, 0, 0 ], [ 0, 2, 0 ], [ 0, 0, 2 ] ],
+   [ [ 2, 0, 0 ], [ 0, 2, 0 ], [ 1, 1, -2 ] ] ]
+ gap> ToricStar([[1,0]],MaxCones);
+ [  ]
+-
+ </Example>
+ <!--
+ MaxCones:=[ [ [2,0,0],[0,2,0],[0,0,2] ], [ [2,0,0],[0,2,0],[2,-2,1],[1,2,-2] ] ];;
+@@ -754,7 +749,6 @@
+ gap> L:=[[1,0,0],[1,1,0],[1,1,1],[1,0,1]];;
+ gap> DualSemigroupGenerators(L);
+ [ [ 0, 0, 0 ], [ 0, 0, 1 ], [ 0, 1, 0 ], [ 1, -1, 0 ], [ 1, 0, -1 ] ]
+-gap>
+ </Example>
+ <!--
+ L:=[[1,0],[3,4]];; DualSemigroupGenerators([[1,0],[3,4]]);
+@@ -818,7 +812,6 @@
+ gap> L:=[[1,0,0],[1,1,0],[1,1,1],[1,0,1]];;
+ gap> phi:=EmbeddingAffineToricVariety(L);
+ [ x_3, x_2, x_1/x_5, x_1/x_6 ]
+-
+ </Example>
+ 
+ 
+@@ -856,7 +849,6 @@
+ <Example>
+ gap> DivisorPolytope([6,6,0],[[2,-1],[-1,2],[-1,-1]]);
+ [ 2*x_1-x_2+6, -x_1+2*x_2+6, -x_1-x_2 ]
+-
+ </Example>
+ 
+ See also Example 6.13 in <Cite Key="JV02"/>.
+@@ -886,8 +878,6 @@
+   [ -2, -4 ], [ -2, -3 ], [ -2, -2 ], [ -2, -1 ], [ -2, 0 ], [ -2, 1 ],
+   [ -2, 2 ], [ -1, -3 ], [ -1, -2 ], [ -1, -1 ], [ -1, 0 ], [ -1, 1 ],
+   [ 0, -3 ], [ 0, -2 ], [ 0, -1 ], [ 0, 0 ], [ 1, -2 ], [ 1, -1 ], [ 2, -2 ] ]
+-gap>
+-
+ </Example>
+ <!--
+ Div:=[6,6,0];; Rays:=[[2,-1],[-1,2],[-1,-1]];;
+@@ -917,15 +907,14 @@
+ 
+ <Example>
+ gap> Div:=[6,6,0];; Rays:=[[2,-1],[-1,2],[-1,-1]];;
+-gap> Delta:=[[[2,-1],[-1,2]],[[-1,2],[-1,-1]],[[-1,-1],[2,-1]]];;
+-gap> RiemannRochBasis(Div,Delta,Rays);
++gap> Delta0:=[[[2,-1],[-1,2]],[[-1,2],[-1,-1]],[[-1,-1],[2,-1]]];;
++gap> RiemannRochBasis(Div,Delta0,Rays);
+ [ 1/(x_1^6*x_2^6), 1/(x_1^5*x_2^5), 1/(x_1^5*x_2^4), 1/(x_1^4*x_2^5),
+   1/(x_1^4*x_2^4), 1/(x_1^4*x_2^3), 1/(x_1^4*x_2^2), 1/(x_1^3*x_2^4),
+   1/(x_1^3*x_2^3), 1/(x_1^3*x_2^2), 1/(x_1^3*x_2), 1/x_1^3, 1/(x_1^2*x_2^4),
+   1/(x_1^2*x_2^3), 1/(x_1^2*x_2^2), 1/(x_1^2*x_2), 1/x_1^2, x_2/x_1^2,
+   x_2^2/x_1^2, 1/(x_1*x_2^3), 1/(x_1*x_2^2), 1/(x_1*x_2), 1/x_1, x_2/x_1,
+   1/x_2^3, 1/x_2^2, 1/x_2, 1, x_1/x_2^2, x_1/x_2, x_1^2/x_2^2 ]
+-
+ </Example>
+ <!--
+ Div:=[6,6,0];; Rays:=[[2,-1],[-1,2],[-1,-1]];;
+@@ -957,7 +946,6 @@
+ gap> Cones:=[[[2,-1],[-1,2]],[[-1,2],[-1,-1]],[[-1,-1],[2,-1]]];;
+ gap> EulerCharacteristic(Cones);
+ 3
+-
+ </Example>
+ 
+ Note: <M>X(\Delta)</M> <E>must be non-singular</E>
+@@ -1034,7 +1022,6 @@
+ 31
+ gap> CardinalityOfToricVariety(Cones,7);
+ 57
+-
+ </Example>
+ <!--
+ Cones:=[[[2,-1],[-1,2]],[[-1,2],[-1,-1]],[[-1,-1],[2,-1]]];;
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..e1cd2e4
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,27 @@
+#!/usr/bin/make -f
+
+GAP=/usr/bin/gap
+
+default:
+	@uscan --no-conf --dehs --report || true
+
+%:
+	dh $@
+
+override_dh_auto_build:
+	mkdir -p tst
+	cat debian/adhoc/makedoc.g | $(GAP) -A -q -T
+	cat debian/adhoc/extract_examples.g | $(GAP) -A -q -T
+
+override_dh_auto_test:
+	echo "\
+		SetPackagePath(\"toric\",\".\"); \
+		LoadPackage(\"toric\"); \
+		QUIT_GAP(TestDirectory(\"tst\",rec(testOptions:=rec(compareFunction:=\"uptowhitespace\")))); \
+		" | $(GAP) -A -q -T
+
+override_dh_installchangelogs:
+	dh_installchangelogs --keep CHANGES.toric
+
+get-orig-source:
+	uscan --no-conf --download-current-version --compression xz --verbose
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/source/lintian-overrides b/debian/source/lintian-overrides
new file mode 100644
index 0000000..8b06cb1
--- /dev/null
+++ b/debian/source/lintian-overrides
@@ -0,0 +1 @@
+debian-watch-may-check-gpg-signature
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..0b322d9
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1 @@
+Test-command: echo "QUIT_GAP(TestDirectory(\"debian/tests\"));" | gap -A -q -T
diff --git a/debian/tests/makecheck.tst b/debian/tests/makecheck.tst
new file mode 100644
index 0000000..5a341bd
--- /dev/null
+++ b/debian/tests/makecheck.tst
@@ -0,0 +1,13 @@
+## debian/tests/makecheck.tst -- GAP Test script
+## script format: GAP Reference Manual section 7.9 Test Files (GAP 4r8)
+##
+gap> TestPackageAvailability( "toric" , "=1.8" , true );
+"/usr/share/gap/pkg/toric"
+gap> TestPackage( "toric" );
+#I  Testing /usr/share/gap/pkg/toric/tst/toric-examples-ch02.tst  [PASS]
+#I  Testing /usr/share/gap/pkg/toric/tst/toric-examples-ch03.tst  [PASS]
+#I  Testing /usr/share/gap/pkg/toric/tst/toric-examples-ch04.tst  [PASS]
+#I  No errors detected while testing package toric
+
+##
+## eos
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..aa7b542
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=4
+opts=repack,dversionmangle=s/\+ds//,repacksuffix=+ds \
+ftp://ftp.gap-system.org/pub/gap/gap4/tar.bz2/packages/toric([\d\.]+)\.tar\.bz2

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/gap-toric.git



More information about the debian-science-commits mailing list