--- alex-2.0.1.orig/alex/src/Main.hs +++ alex-2.0.1/alex/src/Main.hs @@ -48,20 +48,20 @@ case getOpt Permute argInfo args of (cli,_,[]) | DumpHelp `elem` cli -> do prog <- getProgramName - bye (usageInfo (usageHeader prog) argInfo) + bye (usageInfo usageHeader argInfo) (cli,_,[]) | DumpVersion `elem` cli -> bye copyright (cli,[file],[]) -> runAlex cli file (_,_,errors) -> do prog <- getProgramName - die (concat errors ++ usageInfo (usageHeader prog) argInfo) + die (concat errors ++ usageInfo usageHeader argInfo) copyright :: String copyright = "Alex version " ++ version ++ ", (c) 2003 Chris Dornan and Simon Marlow\n" -usageHeader :: String -> String -usageHeader prog = "Usage: " ++ prog ++ " [OPTION...] file\n" +usageHeader :: String +usageHeader = "Usage: alex [OPTION...] file\n" runAlex cli file = do basename <- case (reverse file) of --- alex-2.0.1.orig/debian/rules +++ alex-2.0.1/debian/rules @@ -0,0 +1,92 @@ +#!/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. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +version := $(shell dpkg-parsechangelog | sed -ne 's/^Version: \([^-]*\)-.*/\1/p') +docdir := `pwd`/debian/`dh_listpackages`/usr/share/doc/alex + +build: build-stamp +build-stamp: + dh_testdir + + touch configure + ./configure --prefix=/usr + $(MAKE) + $(MAKE) -C alex/doc html + sed -e "s#@LIBDIR@#/usr/lib/alex-$(version)#g" \ + -e "s#@DOCDIR@#/usr/share/doc/alex#g" \ + -e "s#@VERSION@#$(version)#g" \ + alex/doc/alex.1.in > alex/doc/alex.1 + echo ".so man1/alex.1" > debian/alex-$(version).1 + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + touch configure + -$(MAKE) distclean + rm -f alex/doc/alex.1 debian/alex-$(version).1 + rm -f alex/doc/alex.out + rm -f mk/config.mk mk/config.h mk/stamp-h + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + $(MAKE) prefix=`pwd`/debian/`dh_listpackages`/usr install + + for d in html; do mkdir -p $(docdir)/$$d; done + cp -a alex/doc/alex/* $(docdir)/html/ + cp -a alex/examples $(docdir) + +# Build architecture-independent files here. +binary-indep: build install + @: + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installexamples +# dh_install +# dh_installmenu +# dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installcatalogs +# dh_installpam +# dh_installmime +# dh_installinit +# dh_installcron +# dh_installinfo +# dh_undocumented + dh_installman debian/alex-$(version).1 alex/doc/alex.1 + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_perl +# dh_python +# dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install + --- alex-2.0.1.orig/debian/changelog +++ alex-2.0.1/debian/changelog @@ -0,0 +1,41 @@ +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 + --- alex-2.0.1.orig/debian/control +++ alex-2.0.1/debian/control @@ -0,0 +1,15 @@ +Source: alex +Section: devel +Priority: optional +Maintainer: Ian Lynagh (wibble) +Standards-Version: 3.5.6.0 +Build-Depends: debhelper (>= 4), ghc6 | ghc5 (>= 5.04), jade, docbook-utils, docbook-xml, docbook-xsl, xsltproc + +Package: alex +Architecture: any +Depends: ${shlibs: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.0.1.orig/debian/compat +++ alex-2.0.1/debian/compat @@ -0,0 +1 @@ +4 --- alex-2.0.1.orig/debian/copyright +++ alex-2.0.1/debian/copyright @@ -0,0 +1,41 @@ +This package was originally debianized by Ian Lynagh +on 2003-09-08. + +It was downloaded from +http://www.haskell.org/alex/dist/alex-2.0.1-src.tar.gz + +Upstream Author: Simon Marlow (simonmar@microsoft.com) + +Copyright: + +The Glasgow Haskell Compiler License + +Copyright 1999, The University Court of the University of Glasgow. +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 name of the University nor the names of its contributors may be + used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE UNIVERSITY COURT OF THE UNIVERSITY OF +GLASGOW AND THE CONTRIBUTORS ÄS 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 +UNIVERSITY COURT OF THE UNIVERSITY OF GLASGOW OR THE 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.