--- lhs2tex-1.13.orig/debian/postinst +++ lhs2tex-1.13/debian/postinst @@ -0,0 +1,46 @@ +#! /bin/sh +# postinst script for lhs2tex +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package +# + +case "$1" in + configure) + if [ -x /usr/bin/mktexlsr ]; then + /usr/bin/mktexlsr + fi + + + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + --- lhs2tex-1.13.orig/debian/watch +++ lhs2tex-1.13/debian/watch @@ -0,0 +1,5 @@ +# format version number, currently 3; this line is compulsory! +version=3 + +opts="uversionmangle=s/(.bz2|.gz)$//;s/(\d+)pre/$1~pre/" \ + http://people.cs.uu.nl/andres/lhs2tex/ ./lhs2tex-(.*)\.tar\.(bz2|gz) --- lhs2tex-1.13.orig/debian/copyright +++ lhs2tex-1.13/debian/copyright @@ -0,0 +1,366 @@ +This package was debianized by John Goerzen on +Fri, 28 Jan 2005 09:50:20 -0600. + +It was downloaded from http://www.cs.uu.nl/~andres/lhs2tex/ and can +now be found at http://www.informatik.uni-bonn.de/~loeh/lhs2tex/ + +The package is Copyright: (C) 1997-2006 Ralf Hinze, Andres Loeh +The file lazylist.sty is Copyright: (C) 1990 Alan Jeffrey + +Upstream Authors: +Ralf Hinze and Andres Loeh + + ralf@informatik.uni-bonn.de + lhs2TeX@andres-loeh.de + +License of the package except for the file lazylist.sty: + + 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; version 2 dated June, 1991. + + As a special exception, permission is granted to include the files + (or parts of the files) lhs2TeX.sty, lhs2TeX.fmt, as well as files + (or parts of files) distributed in the Library subdirectory of this + package that include a notice in their header, literally in other + documents, regardless of the conditions or license applying to these + documents. + + 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, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, + MA 02110-1301, USA. + +On Debian systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. + +License of the file lazylist.sty: + + Use and distribution are subject to the LaTeX Project Public + License (lppl), version 1.2 (or any later version, at your + convenience). + + +The LaTeX Project Public License +=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- + +LPPL Version 1.2 1999-09-03 + +Copyright 1999 LaTeX3 Project + Everyone is allowed to distribute verbatim copies of this + license document, but modification of it is not allowed. + + +PREAMBLE +======== + +The LaTeX Project Public License (LPPL) is the license under which the +base LaTeX distribution is distributed. + +You may use this license for any program that you have written and wish +to distribute. This license may be particularly suitable if your +program is TeX-related (such as a LaTeX package), but you may use it +even if your program is unrelated to TeX. The section `WHETHER AND HOW +TO DISTRIBUTE PROGRAMS UNDER THIS LICENSE', below, gives instructions, +examples, and recommendations for authors who are considering +distributing their programs under this license. + +In this license document, `The Program' refers to any program +distributed under this license. + +This license gives conditions under which The Program may be distributed +and conditions under which modified versions of The Program may be +distributed. Individual files of The Program may bear supplementary +and/or superseding conditions on modification of themselves and on the +distribution of modified versions of themselves, but *no* file of The +Program may bear supplementary or superseding conditions on the +distribution of an unmodified copy of the file. A distributor wishing +to distribute a complete, unmodified copy of The Program therefore +needs to check the conditions only in this license and nowhere else. + +Activities other than distribution and/or modification of The Program +are not covered by this license; they are outside its scope. In +particular, the act of running The Program is not restricted. + +We, the LaTeX3 Project, believe that the conditions below give you +the freedom to make and distribute modified versions of The Program +that conform with whatever technical specifications you wish while +maintaining the availability, integrity, and reliability of +The Program. If you do not see how to achieve your goal while +meeting these conditions, then read the document `cfgguide.tex' +in the base LaTeX distribution for suggestions. + + +CONDITIONS ON DISTRIBUTION AND MODIFICATION +=========================================== + +You may distribute a complete, unmodified copy of The Program. +Distribution of only part of The Program is not allowed. + +You may not modify in any way a file of The Program that bears a legal +notice forbidding modification of that file. + +You may distribute a modified file of The Program if, and only if, the +following eight conditions are met: + + 1. You must meet any additional conditions borne by the file on the + distribution of a modified version of the file as described below + in the subsection `Additional Conditions on Individual Files of + The Program'. + + 2. If the file is a LaTeX software file, then you must meet any + applicable additional conditions on the distribution of a modified + version of the file that are described below in the subsection + `Additional Conditions on LaTeX Software Files'. + + 3. You must not distribute the modified file with the filename of the + original file. + + 4. In the modified file, you must acknowledge the authorship and + name of the original file, and the name (if any) of the program + which contains it. + + 5. You must change any identification string in the file to indicate + clearly that the modified file is not part of The Program. + + 6. You must change any addresses in the modified file for the + reporting of errors in the file or in The Program generally to + ensure that reports for files no longer maintained by the original + maintainers will be directed to the maintainers of the modified + files. + + 7. You must distribute the modified file under a license that forbids + distribution both of the modified file and of any files derived + from the modified file with the filename of the original file. + + 8. You must do either (A) or (B): + + (A) distribute a copy of The Program (that is, a complete, + unmodified copy of The Program) together with the modified + file; if your distribution of the modified file is made by + offering access to copy the modified file from a designated + place, then offering equivalent access to copy The Program + from the same place meets this condition, even though third + parties are not compelled to copy The Program along with the + modified file; + + (B) provide to those who receive the modified file information + that is sufficient for them to obtain a copy of The Program; + for example, you may provide a Uniform Resource Locator (URL) + for a site that you expect will provide them with a copy of + The Program free of charge (either the version from which + your modification is derived, or perhaps a later version). + +Note that in the above, `distribution' of a file means making the +file available to others by any means. This includes, for instance, +installing the file on any machine in such a way that the file is +accessible by users other than yourself. `Modification' of a file +means any procedure that produces a derivative file under any +applicable law -- that is, a file containing the original file or +a significant portion of it, either verbatim or with modifications +and/or translated into another language. + +Changing the name of a file (other than as necessitated by the file +conventions of the target file systems) is considered to be a +modification of the file. + +The distribution conditions in this license do not have to be +applied to files that have been modified in accordance with the +above conditions. Note, however, that Condition 7. does apply to +any such modified file. + +The conditions above are not intended to prohibit, and hence do not +apply to, the updating, by any method, of a file so that it becomes +identical to the latest version of that file of The Program. + + + +A Recommendation on Modification Without Distribution +----------------------------------------------------- + +It is wise never to modify a file of The Program, even for your own +personal use, without also meeting the above eight conditions for +distributing the modified file. While you might intend that such +modified files will never be distributed, often this will happen by +accident -- you may forget that you have modified the file; or it may +not occur to you when allowing others to access the modified file +that you are thus distributing it and violating the conditions of +this license. It is usually in your best interest to keep your copy +of The Program identical with the public one. Many programs provide +ways to control the behavior of that program without altering its +licensed files. + + +Additional Conditions on Individual Files of The Program +-------------------------------------------------------- + +An individual file of The Program may bear additional conditions that +supplement and/or supersede the conditions in this license if, and only +if, such additional conditions exclusively concern modification of the +file or distribution of a modified version of the file. The conditions +on individual files of The Program therefore may differ only with +respect to the kind and extent of modification of those files that +is allowed, and with respect to the distribution of modified versions +of those files. + + +Additional Conditions on LaTeX Software Files +--------------------------------------------- + +If a file of The Program is intended to be used with LaTeX (that is, +if it is a LaTeX software file), then the following additional +conditions, which supplement and/or supersede the conditions +above, apply to the file according to its filename extension: + + - You may not modify any file with filename extension `.ins' since + these are installation files containing the legal notices that are + placed in the files they generate. + + - You may distribute modified versions of files with filename + extension `.fd' (LaTeX font definition files) under the standard + conditions of the LPPL as described above. You may also distribute + such modified LaTeX font definition files with their original names + provided that: + (1) the only changes to the original files either enable use of + available fonts or prevent attempts to access unavailable fonts; + (2) you also distribute the original, unmodified files (TeX input + paths can be used to control which set of LaTeX font definition + files is actually used by TeX). + + - You may distribute modified versions of files with filename + extension `.cfg' (configuration files) with their original names. + The Program may (and usually will) specify the range of commands + that are allowed in a particular configuration file. + +Because of portability and exchangeability issues in LaTeX software, +The LaTeX3 Project deprecates the distribution of modified versions of +components of LaTeX or of generally available contributed code for them, +but such distribution can meet the conditions of this license. + + +NO WARRANTY +=========== + +There is no warranty for The Program. Except when otherwise stated in +writing, The Copyright Holder provides The Program `as is', without +warranty of any kind, either expressed or implied, including, but not +limited to, the implied warranties of merchantability and fitness for +a particular purpose. The entire risk as to the quality and performance +of The Program is with you. Should The Program prove defective, you +assume the cost of all necessary servicing, repair, or correction. + +In no event unless agreed to in writing will The Copyright Holder, or +any author named in the files of The Program, or any other party who may +distribute and/or modify The Program as permitted above, be liable to +you for damages, including any general, special, incidental or +consequential damages arising out of any use of The Program or out of +inability to use The Program (including, but not limited to, loss of +data, data being rendered inaccurate, or losses sustained by anyone as +a result of any failure of The Program to operate with any other +programs), even if The Copyright Holder or said author or said other +party has been advised of the possibility of such damages. + + +WHETHER AND HOW TO DISTRIBUTE PROGRAMS UNDER THIS LICENSE +========================================================= + +This section contains important instructions, examples, and +recommendations for authors who are considering distributing their +programs under this license. These authors are addressed as `you' in +this section. + + +Choosing This License or Another License +---------------------------------------- + +If for any part of your program you want or need to use *distribution* +conditions that differ from those in this license, then do not refer to +this license anywhere in your program but instead distribute your +program under a different license. You may use the text of this license +as a model for your own license, but your license should not refer to +the LPPL or otherwise give the impression that your program is +distributed under the LPPL. + +The document `modguide.tex' in the base LaTeX distribution explains +the motivation behind the conditions of this license. It explains, +for example, why distributing LaTeX under the GNU General Public +License (GPL) was considered inappropriate. Even if your program is +unrelated to LaTeX, the discussion in `modguide.tex' may still be +relevant, and authors intending to distribute their programs under any +license are encouraged to read it. + + +How to Use This License +----------------------- + +To use this license, place in each of the files of your program both +an explicit copyright notice including your name and the year and also +a statement that the distribution and/or modification of the file is +constrained by the conditions in this license. + +Here is an example of such a notice and statement: + + %% pig.dtx + %% Copyright 2001 M. Y. Name + % + % This program may be distributed and/or modified under the + % conditions of the LaTeX Project Public License, either version 1.2 + % of this license or (at your option) any later version. + % The latest version of this license is in + % http://www.latex-project.org/lppl.txt + % and version 1.2 or later is part of all distributions of LaTeX + % version 1999/12/01 or later. + % + % This program consists of the files pig.dtx and pig.ins + +Given such a notice and statement in a file, the conditions given in +this license document would apply, with `The Program' referring to the +two files `pig.dtx' and `pig.ins', and `The Copyright Holder' referring +to the person `M. Y. Name'. + + +Important Recommendations +------------------------- + + Defining What Constitutes The Program + + The LPPL requires that distributions of The Program contain all the + files of The Program. It is therefore important that you provide a + way for the licensee to determine which files constitute The Program. + This could, for example, be achieved by explicitly listing all the + files of The Program near the copyright notice of each file or by + using a line like + + % This program consists of all files listed in manifest.txt. + + in that place. In the absence of an unequivocal list it might be + impossible for the licensee to determine what is considered by you + to comprise The Program. + + Noting Exceptional Files + + If The Program contains any files bearing additional conditions on + modification, or on distribution of modified versions, of those + files (other than those listed in `Additional Conditions on LaTeX + Software Files'), then it is recommended that The Program contain a + prominent file that defines the exceptional conditions, and either + lists the exceptional files or defines one or more categories of + exceptional files. + + Files containing the text of a license (such as this file) are + often examples of files bearing more restrictive conditions on + modification. LaTeX configuration files (with filename extension + `.cfg') are examples of files bearing less restrictive conditions + on the distribution of a modified version of the file. The + additional conditions on LaTeX software given above are examples + of declaring a category of files bearing exceptional additional + conditions. + +Copyright (C) 1997-2004 Ralf Hinze, Andres Loeh + + --- lhs2tex-1.13.orig/debian/changelog +++ lhs2tex-1.13/debian/changelog @@ -0,0 +1,146 @@ +lhs2tex (1.13-3) unstable; urgency=medium + + * debian/control: + - Add dpatch to the build dependencies. + - Bump Standards-Version to 3.8.0 + * debian/patches/01_always_install_polytable.dpatch: + - Patch config.mk.in to make sure we install the polytable (La)Tex + style. + * debian/patches/10_fix_bashims.dpatch: + - Fix a bashism in the examples of lhs2TeX (Closes: #489624) + * debian/README.source: Added. + * debian/rules: + - Include dpatch snippet + - Remove the sed expressions which is replaced with a regular patch + * Set urgency to medium to get the bashism fix into Lenny. + + -- Arjan Oosting Sun, 20 Jul 2008 11:16:15 +0200 + +lhs2tex (1.13-2) unstable; urgency=low + + * Fix bashism in debian/rules. (Closes: #484397) + * debian/control: + - Drop dependencies on obsolete packages tetex-bin, tetex-base and + tetex-extra. Fixes lintian error depends-on-obsolete-package + * debian/doc-base: + - Change Section to Programming/Haskell + + -- Arjan Oosting Mon, 09 Jun 2008 06:57:19 +0200 + +lhs2tex (1.13-1) unstable; urgency=low + + * New upstream release. + * debian/watch: + - Also look for gzipped tarballs. + * debian/control: + - Point the Vcs-* fields to the trunk directories which contains the + latest version of the debian package. + + -- Arjan Oosting Tue, 26 Feb 2008 08:00:03 +0100 + +lhs2tex (1.13~pre3-2) unstable; urgency=low + + * debian/control: + - Bump build dependency on ghc6 to 6.8.2 which is now needed to build + the package. + + -- Arjan Oosting Mon, 21 Jan 2008 01:30:45 +0100 + +lhs2tex (1.13~pre3-1) unstable; urgency=low + + * New upstream release, which should work with the GHC 6.8 series and be + compatible with Cabal 1.2. + * Fix some lintian warnings + - package-contains-empty-directory usr/sbin/ + - doc-base-file-separator-extra-whitespaces lhs2tex-guide:13 + * debian/control: + - Add libghc6-regex-compat-dev to the build dependencies. + - Replace the Xs-Vcs-* fields with the official Vcs-* fields. + - Add Homepage field. + - Bump Standards-Version to 3.7.3. No changes needed. + * debian/rules: + - Export DEB_HOST_GNU_TYPE and DEB_BUILD_GNU_TYPE as + /usr/share/doc/autotools-dev/README.Debian.gz suggests. + - Remove some generated files during clean. + + -- Arjan Oosting Sat, 19 Jan 2008 17:17:13 +0100 + +lhs2tex (1.12-3) unstable; urgency=low + + * debian/compat: Change to debhelper compatibility level 5. + * debian/control: + - Add XS-Vcs-Browser field. + - Bump dependency on debhelper to debhelper 5 or higher. + + -- Arjan Oosting Thu, 12 Apr 2007 01:22:02 +0200 + +lhs2tex (1.12-2) experimental; urgency=low + + * Add the necessary Depends for texlive in addition to tetex: + - Depend on texlive-latex-base | tetex-bin for the mktexslr program. + - Depend on texlive-latex-base | tetex-base for the styles array and + calc. + - Depend on texlive-latex-base | tetex-extra for the style colortbl. + + -- Arjan Oosting Mon, 12 Feb 2007 00:23:22 +0100 + +lhs2tex (1.12-1) experimental; urgency=low + + * New upstream release. + + -- Arjan Oosting Thu, 11 Jan 2007 16:45:17 +0100 + +lhs2tex (1.11-2) unstable; urgency=low + + * debian/rules: do not rebuild the user guide as it needs ghci which + does not work on all arctectures. + * debian/control: Drop the Build-Depends on tetex-bin, tetex-base and + tetex-extra as we don't rebuild the guide anyway. + + -- Arjan Oosting Fri, 20 Oct 2006 17:08:52 +0200 + +lhs2tex (1.11-1) unstable; urgency=medium + + * Take over maintaince from John Goerzen. Thanks for your work on this + package! + * New upstream release. (Closes: #366969) + * config.mk.in: remove -package lang (Closes: 393822) + * debian/control: + - add Build-Depends on autotools-dev to make sure the latest + config.guess and config.sub are used. + - add missing Build-Depends on tetex-extra. + - added Homepage entry. + - bump Standards-Version. No changes needed. + - add XS-Vcs-Svn field. + * debian/copyright: + - Include the license of lazylist.sty and update the license of the + rest of the package. (Closes: #389924) + * debian/dirs: dropped as it is not necessary. + * debian/doc-base: added doc-base entry for guide. + * debian/postrm: added. Also call mktexlsr when lhs2tex is removed. + * debian/rules: + - copy config.sub and config.guess in the config.status target and + remove them on clean to keep the diff.gz small. + - do not ignore all errors on clean. + - ensure polytable.sty gets included and the guide will be rebuild. + - remove commented out debhelper calls. + - add -O0 to GHCFLAGS when DEB_BUILD_OPTIONS contains noopt and remove + CFLAGS manipulation as this is no C program. + - don't gzip pdf files as most pdf readers can not handle compresses + pdf files and pdf files use internal compression anyway. + * debian/watch: added uscan watch file. + + -- Arjan Oosting Thu, 19 Oct 2006 18:12:48 +0200 + +lhs2tex (1.9-2) unstable; urgency=low + + * Rebuilt to get dep on correct new libgmp3 in sid. Closes: #329276. + + -- John Goerzen Wed, 21 Sep 2005 05:32:01 -0500 + +lhs2tex (1.9-1) unstable; urgency=low + + * Initial Release. Closes: #292653. + + -- John Goerzen Fri, 28 Jan 2005 09:50:20 -0600 + --- lhs2tex-1.13.orig/debian/dirs +++ lhs2tex-1.13/debian/dirs @@ -0,0 +1,2 @@ +usr/bin + --- lhs2tex-1.13.orig/debian/README.source +++ lhs2tex-1.13/debian/README.source @@ -0,0 +1,11 @@ +The used patch system is dpatch. + +To patch the source run "debian/rules patch" + +To add a new patch: +* put it under debian/patches +* add it to debian/patches/00list + +To unpatch the source run "debian/rules unpatch" + +See /usr/share/doc/dpatch for more information. --- lhs2tex-1.13.orig/debian/doc-base +++ lhs2tex-1.13/debian/doc-base @@ -0,0 +1,10 @@ +Document: lhs2tex-guide +Title: Guide to lhs2TeX +Author: Ralf Hinze and Andres Loeh +Abstract: This is a guide to lhs2TeX, a preprocessor that takes as + input a literate Haskell source file and produces as output a + formatted file that can be further processed by LaTeX. +Section: Programming/Haskell + +Format: pdf +Files: /usr/share/doc/lhs2tex/Guide2.pdf --- lhs2tex-1.13.orig/debian/postrm +++ lhs2tex-1.13/debian/postrm @@ -0,0 +1,39 @@ +#! /bin/sh +# postrm script for lhs2tex +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `purge' +# * `upgrade' +# * `failed-upgrade' +# * `abort-install' +# * `abort-install' +# * `abort-upgrade' +# * `disappear' overwrit>r> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + remove|disappear) + mktexlsr + ;; + + purge|upgrade|failed-upgrade|abort-install|abort-upgrade) + ;; + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 + +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 --- lhs2tex-1.13.orig/debian/docs +++ lhs2tex-1.13/debian/docs @@ -0,0 +1,2 @@ +TODO + --- lhs2tex-1.13.orig/debian/compat +++ lhs2tex-1.13/debian/compat @@ -0,0 +1 @@ +5 --- lhs2tex-1.13.orig/debian/control +++ lhs2tex-1.13/debian/control @@ -0,0 +1,40 @@ +Source: lhs2tex +Section: text +Priority: optional +Maintainer: Arjan Oosting +Build-Depends: autotools-dev, debhelper (>= 5.0.0), dpatch, ghc6 (>= 6.8.2), libghc6-regex-compat-dev +Standards-Version: 3.8.0 +Vcs-Svn: https://moonshine.dnsalias.org/svn/arjan-public/debian/lhs2tex/trunk +Vcs-Browser: https://moonshine.dnsalias.org/wsvn/arjan-public/debian/lhs2tex/trunk/ +Homepage: http://www.informatik.uni-bonn.de/~loeh/lhs2tex/ + +Package: lhs2tex +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, texlive-latex-base, texlive-latex-base, texlive-latex-base +Description: Generates LaTeX code from literate Haskell sources + lhs2TeX includes the following features: + . + Different styles to process your source file: for instance, + "tt" style uses a monospaced font for the code while still + allowing you to highlight keywords etc, whereas + "poly" style uses proportional fonts for identifiers, handles + indentation nicely, is able to replace binary operators by + mathematical symbols and take care of complex horizontal + alignments. + . + Formatting directives, which let you customize the way certain + tokens in the source code should appear in the processed + output. + . + A liberal parser that can handle most of the language + extensions; you don't have to restrict yourself to Haskell 98. + . + Preprocessor-style conditionals that allow you to generate + different versions of a document from a single source file + (for instance, a paper and a presentation). + . + Active documents: you can use Haskell to generate parts of the + document (useful for papers on Haskell). + . + A manual explaining all the important aspects of lhs2TeX. + --- lhs2tex-1.13.orig/debian/rules +++ lhs2tex-1.13/debian/rules @@ -0,0 +1,98 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# Include dpatch +include /usr/share/dpatch/dpatch.make + +# These are used for cross-compiling and for saving the configure script +# from having to guess our platform (since we know it already) +export DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) + +# Autoconf 2.52 and higher goes into crosscompiling mode when --host +# is specified, so only pass --host when it is necessary. +ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE)) + CONFIGURE_FLAGS := --build $(DEB_HOST_GNU_TYPE) +else + CONFIGURE_FLAGS := --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE) +endif + +GHCFLAGS := $(shell grep "^GHCFLAGS" config.mk.in | cut -d '=' -f 2) +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + GHCFLAGS += -O0 +endif + +configure: config.status +config.status: + dh_testdir + cp -f /usr/share/misc/config.sub config.sub + cp -f /usr/share/misc/config.guess config.guess + # Don't rebuild the guide as ghci does not work on all architectures.. + # rm -f doc/Guide2.dontbuild + ./configure $(CONFIGURE_FLAGS) --prefix=/usr --mandir=\$${prefix}/share/man --with-texmf=/usr/share/texmf --enable-polytable + + +build: build-stamp +build-stamp: config.status + dh_testdir + $(MAKE) GHCFLAGS="$(GHCFLAGS)" + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp config.status + # Add here commands to clean up after the build process. + if [ -f Makefile ] && [ -f config.mk ] ; then $(MAKE) clean ; fi + # Remove generated files + for EXT in aux log out ptb tex toc; do \ + rm -f doc/Guide2.$$EXT; \ + done + # Don't rebuild the guide as ghci does not work on all architectures.. + # rm -f doc/Guide2.dontbuild doc/Guide2.pdf + rm -f doc/*.sty doc/*.tex doc/.out doc/.script doc/RawSearchPath.lhs + rm -f lhs2TeX.1 Version.lhs config.guess config.log config.mk config.sub + rm -f doc/InteractiveHugs.lhs doc/InteractivePre.lhs + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + $(MAKE) install DESTDIR=$(CURDIR)/debian/lhs2tex docdir=/usr/share/doc/lhs2tex + + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installexamples Examples/* + dh_installman + dh_link + dh_strip + dh_compress -X.pdf + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- lhs2tex-1.13.orig/debian/patches/01_always_install_polytable.dpatch +++ lhs2tex-1.13/debian/patches/01_always_install_polytable.dpatch @@ -0,0 +1,18 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 01_always_install_polytable.dpatch by Arjan Oosting +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: make sure we alway include polytable in the Debian package. + +@DPATCH@ +diff -urNad lhs2tex~/config.mk.in lhs2tex/config.mk.in +--- lhs2tex~/config.mk.in 2008-07-20 11:08:24.000000000 +0200 ++++ lhs2tex/config.mk.in 2008-07-20 11:09:32.000000000 +0200 +@@ -41,6 +41,6 @@ + + polydir = @texmf@/tex/latex/polytable + texdir = @texmf@/tex/latex/lhs2tex +-INSTALL_POLYTABLE = @POLYTABLE_INSTALL@ ++INSTALL_POLYTABLE = yes + MKTEXLSR = @MKTEXLSR@ + --- lhs2tex-1.13.orig/debian/patches/00list +++ lhs2tex-1.13/debian/patches/00list @@ -0,0 +1,2 @@ +01_always_install_polytable +10_fix_bashims --- lhs2tex-1.13.orig/debian/patches/10_fix_bashims.dpatch +++ lhs2tex-1.13/debian/patches/10_fix_bashims.dpatch @@ -0,0 +1,31 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 10_fix_bashims.dpatch by Arjan Oosting +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Fix a bashism in the examples of lhs2TeX + +@DPATCH@ +diff -urNad lhs2tex~/Examples/lhs2TeXpre lhs2tex/Examples/lhs2TeXpre +--- lhs2tex~/Examples/lhs2TeXpre 2008-03-22 21:29:39.000000000 +0100 ++++ lhs2tex/Examples/lhs2TeXpre 2008-07-20 10:52:16.000000000 +0200 +@@ -5,7 +5,7 @@ + + LHSHOME=.. + +-if [ "$1" == "$2" ]; then ++if [ "$1" = "$2" ]; then + cp "$2" "$3" + else + if grep -q "^%include" "$1"; then +diff -urNad lhs2tex~/doc/lhs2TeXpre lhs2tex/doc/lhs2TeXpre +--- lhs2tex~/doc/lhs2TeXpre 2008-03-22 21:29:39.000000000 +0100 ++++ lhs2tex/doc/lhs2TeXpre 2008-07-20 10:53:47.000000000 +0200 +@@ -5,7 +5,7 @@ + + LHSHOME=.. + +-if [ "$1" == "$2" ]; then ++if [ "$1" = "$2" ]; then + cp "$2" "$3" + else + if grep -q "^%include" "$1"; then