--- alex-2.3.1.orig/debian/rules +++ alex-2.3.1/debian/rules @@ -0,0 +1,43 @@ +#!/usr/bin/make -f +# debian/rules for alex +# This file is public domain software, originally written by Joey Hess. +# Adapted for alex by Ian Lynagh. +# Largely rewritten for cdbs and hlibrary.mk by Joachim Breitner in 2009. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +DEB_BUILD_DEPENDENCIES = build-arch + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/class/hlibrary.mk + +clean:: + [ ! -f doc/config.mk ] || $(MAKE) -C doc clean + # Remove these so setup clean doesn't remove the generated files + #rm -f src/Parser.y src/Scan.x + + rm -f debian/get_version.o debian/get_version.hi debian/get_version + rm -f doc/alex.1 + # Hacks: + rm -f doc/config.log doc/config.status doc/config.mk doc/configure + + +configure/alex:: + # doc/configure is not shipped, generate it + cd doc && autoconf && rm -r autom4te.cache && ./configure --prefix=/usr + + # used in build to stick version into man page + ghc6 --make debian/get_version.hs -o debian/get_version + +build/alex:: build-ghc6-stamp + $(MAKE) -C doc html + sed -e "s#@LIBDIR@#/usr/lib/alex-`debian/get_version`#g" \ + -e "s#@DOCDIR@#/usr/share/doc/alex#g" \ + -e "s#@VERSION@#`debian/get_version`#g" \ + doc/alex.1.in > doc/alex.1 + +install/alex:: debian/tmp-inst-ghc6 + dh_installdirs usr/share/doc/alex/html + cp -a doc/alex/* `pwd`/debian/`dh_listpackages`/usr/share/doc/alex/html + --- alex-2.3.1.orig/debian/alex.install +++ alex-2.3.1/debian/alex.install @@ -0,0 +1,2 @@ +dist-ghc6/build/alex/alex usr/bin +debian/tmp-inst-ghc6/usr/share/alex* usr/share --- alex-2.3.1.orig/debian/watch +++ alex-2.3.1/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://hackage.haskell.org/packages/archive/alex/([\d\.]+)/alex-([\d\.]+).tar.gz --- alex-2.3.1.orig/debian/control +++ alex-2.3.1/debian/control @@ -0,0 +1,26 @@ +Source: alex +Section: haskell +Priority: optional +Maintainer: Debian Haskell Group +Uploaders: Joachim Breitner +Standards-Version: 3.8.3 +Build-Depends: cdbs (>= 0.4.59), + haskell-devscripts (>= 0.6.16), + debhelper (>= 7), + ghc6 (>= 6.10.4), + jade, + docbook-utils, + docbook-xsl, + docbook-xml, + xsltproc, +Homepage: http://www.haskell.org/alex/ +Vcs-Darcs: http://darcs.debian.org/pkg-haskell/alex + +Package: alex +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: lexical analyser generator for Haskell + Alex is a tool for generating lexical analysers in Haskell, given a + description of the tokens to be recognised in the form of regular + expressions. It is similar to the tool lex or flex for C/C++. + --- alex-2.3.1.orig/debian/alex.manpages +++ alex-2.3.1/debian/alex.manpages @@ -0,0 +1 @@ +doc/alex.1 --- alex-2.3.1.orig/debian/alex.examples +++ alex-2.3.1/debian/alex.examples @@ -0,0 +1 @@ +examples/* --- alex-2.3.1.orig/debian/get_version.hs +++ alex-2.3.1/debian/get_version.hs @@ -0,0 +1,16 @@ + +module Main (main) where + +import Data.Version ( showVersion ) +import Distribution.Package +import Distribution.PackageDescription +import Distribution.PackageDescription.Parse ( readPackageDescription ) +import Distribution.Simple.Utils +import Distribution.Verbosity +import Distribution.Version + +main :: IO () +main = do fp <- findPackageDesc "." + pd <- readPackageDescription normal fp + putStr $ showVersion $ pkgVersion $ package $ packageDescription pd + --- alex-2.3.1.orig/debian/copyright +++ alex-2.3.1/debian/copyright @@ -0,0 +1,40 @@ +This package was originally debianized by Ian Lynagh +on 2003-09-08. + +It was downloaded from +http://haskell.org/alex/alex-2.1.0rc.tar.gz + +Upstream Author: Simon Marlow (simonmar@microsoft.com) + +Copyright: + +Copyright (c) 1995-2003, Chris Dornan and Simon Marlow +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + + * Neither the name of the copyright holders, nor the names of the + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --- alex-2.3.1.orig/debian/compat +++ alex-2.3.1/debian/compat @@ -0,0 +1 @@ +7 --- alex-2.3.1.orig/debian/changelog +++ alex-2.3.1/debian/changelog @@ -0,0 +1,99 @@ +alex (2.3.1-1) unstable; urgency=low + + * New upstream release (Closes: #530313) + * Let watchfile point to hackage + * Adopt for the Debian Haskell Group and adjust packaging. + + -- Joachim Breitner Mon, 05 Oct 2009 17:22:19 +0200 + +alex (2.2-0.2) unstable; urgency=low + + * Non-maintainer upload. + * Fix "FTBFS: Not in scope: `buildVerbose'", thanks to Matt Kraai for the + patch (Closes: #516277) + + -- Joachim Breitner Wed, 18 Mar 2009 19:01:37 +0100 + +alex (2.2-0.1) unstable; urgency=low + + * Non-maintainer upload. + * New upstream release (Closes: #464360) + - Cabal 1.2 is now required. (Closes: #460388) + - ByteString wrappers: use Alex to lex ByteStrings directly. + - Fixes a spelling mistake. (Closes: #419671) + * debian/control: + - Added Homepage field. + - Bump the build dependency on ghc6 to 6.8.2 as the packages needs + Cabal 1.2 to build. + - Bump the Standards-Version to 3.7.3. No changes needed. + * debian/copyright: + - Fix debian-copyright-file-uses-obsolete-national-encoding lintian + warning. + - Update debian/copyright file with info from upstream LICENSE file. + * debian/get_version.hs: Updated for Cabal 1.2 + * debian/rules: + - Fix debian-rules-ignores-make-clean-error lintian warning. + - Remove the LICENSE installed by ./setup copy + * Add debian/watch file. + + -- Arjan Oosting Sun, 27 Apr 2008 15:31:08 +0200 + +alex (2.1.0~rc1-1) unstable; urgency=low + + * New upstream (release candidate) version. + * Removed alex/ prefixes from various paths in debian/rules. + * doc/configure generated by autoconf is in the Debian diff. + * Build using cabal: + * Various debian/rules changes. + * Create debian/get_version.hs for extracting the version from the cabal + file. + * Requires ghc6 >= 6.4.2. + * No longer tries to detect platform. Closes: #332980, #340326. + * Add 'XSLTPROC_OPTS = --nonet' to doc/config.mk.in. + * Remove src/Parser.y and src/Scan.x before cleaning so the generated + files don't get cleaned. + * Set Standards-Version to 3.7.2 (no changes needed). + + -- Ian Lynagh (wibble) Thu, 26 Oct 2006 17:28:46 +0000 + +alex (2.0.1-1) unstable; urgency=low + + * New upstream version. + * Compiled against new libgmp3-dev. + * Add build-deps on xsltproc, docbook-xml and docbook-xsl. + * Remove ps from "$(MAKE) -C alex/doc ps html" in debian/rules as + the ps docs don't build. + * Only copy the HTML docs into the install directory as the other + aren't built. + * index.html is now built for us, so we don't need to symlink + alex.html to it. + + -- Ian Lynagh (wibble) Sun, 18 Sep 2005 20:11:47 +0000 + +alex (2.0-3) unstable; urgency=low + + * Added x86_64 Linux to configure{,.in}. Closes: #253167. + * Remove unportable {,} syntax from debian/rules. + * Delete alex/doc/alex.out in clean target. + + -- Ian Lynagh (wibble) Thu, 15 Jul 2004 21:25:08 +0000 + +alex (2.0-2) unstable; urgency=low + + * Added s390, m68k, mips, hppa, arm and powerpc Linux to configure{,.in} + + -- Ian Lynagh (wibble) Wed, 01 Oct 2003 12:31:01 +0000 + +alex (2.0-1) unstable; urgency=low + + * Initial release. Closes: #151044. + * Changed configure{,.in} to not require flex. + * Wrote manpage for alex(1). + * Fix references to happy/parsers and version/verbose confusion in the docs. + * Changed wrapper to use $@ and ${1+"$@"} rather than $* + * When giving usage info, always use the name "alex" (otherwise + alex.bin is given). + * Add sparc case to configure{,.in}. + + -- Ian Lynagh (wibble) Tue, 09 Sep 2003 15:14:27 +0000 +