diff options
| -rw-r--r-- | p/alex/debian/changelog | 90 | ||||
| -rw-r--r-- | p/alex/debian/compat | 1 | ||||
| -rw-r--r-- | p/alex/debian/control | 15 | ||||
| -rw-r--r-- | p/alex/debian/copyright | 40 | ||||
| -rw-r--r-- | p/alex/debian/get_version.hs | 15 | ||||
| -rwxr-xr-x | p/alex/debian/rules | 104 | ||||
| -rw-r--r-- | p/alex/debian/watch | 2 |
7 files changed, 267 insertions, 0 deletions
diff --git a/p/alex/debian/changelog b/p/alex/debian/changelog new file mode 100644 index 000000000..a93ac1e0e --- /dev/null +++ b/p/alex/debian/changelog @@ -0,0 +1,90 @@ +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 <nomeata@debian.org> 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 <arjan@debian.org> 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) <igloo@debian.org> 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) <igloo@debian.org> 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) <igloo@debian.org> 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) <igloo@debian.org> 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) <igloo@debian.org> Tue, 09 Sep 2003 15:14:27 +0000 diff --git a/p/alex/debian/compat b/p/alex/debian/compat new file mode 100644 index 000000000..b8626c4cf --- /dev/null +++ b/p/alex/debian/compat @@ -0,0 +1 @@ +4 diff --git a/p/alex/debian/control b/p/alex/debian/control new file mode 100644 index 000000000..acb0cceb0 --- /dev/null +++ b/p/alex/debian/control @@ -0,0 +1,15 @@ +Source: alex +Section: devel +Priority: optional +Maintainer: Ian Lynagh (wibble) <igloo@debian.org> +Standards-Version: 3.7.3 +Build-Depends: debhelper (>= 4), ghc6 (>= 6.8.2), jade, docbook-utils, docbook-xml, docbook-xsl, xsltproc +Homepage: http://www.haskell.org/alex/ + +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++. diff --git a/p/alex/debian/copyright b/p/alex/debian/copyright new file mode 100644 index 000000000..c6a81cec3 --- /dev/null +++ b/p/alex/debian/copyright @@ -0,0 +1,40 @@ +This package was originally debianized by Ian Lynagh <igloo@debian.org> +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. diff --git a/p/alex/debian/get_version.hs b/p/alex/debian/get_version.hs new file mode 100644 index 000000000..e4e829e3f --- /dev/null +++ b/p/alex/debian/get_version.hs @@ -0,0 +1,15 @@ + +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 diff --git a/p/alex/debian/rules b/p/alex/debian/rules new file mode 100755 index 000000000..75c1a8605 --- /dev/null +++ b/p/alex/debian/rules @@ -0,0 +1,104 @@ +#!/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 + +prefix := /usr + +configure: configure-stamp +configure-stamp: + dh_testdir + + ghc6 --make Setup.lhs -o setup + ./setup configure --prefix=$(prefix) --with-compiler=/usr/bin/ghc6 + touch doc/configure + chmod +x doc/configure + cd doc && ./configure --prefix=$(prefix) + ghc6 --make debian/get_version.hs -o debian/get_version + touch configure-stamp + +build: build-stamp +build-stamp: configure-stamp + dh_testdir + + ./setup build + $(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 + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f configure-stamp build-stamp + + [ ! -f doc/config.mk ] || $(MAKE) -C doc clean + # Remove these so setup clean oesn't remove the generated files + rm -f src/Parser.y src/Scan.x + ghc6 --make Setup.lhs -o setup + -./setup clean + rm -f Setup.o Setup.hi setup + 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 + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs usr/share/doc/alex/html + + ./setup copy --destdir=`pwd`/debian/`dh_listpackages` + rm -r `pwd`/debian/`dh_listpackages`/usr/share/doc/alex-*/ + + cp -a doc/alex/* `pwd`/debian/`dh_listpackages`/usr/share/doc/alex/html + cp -a examples `pwd`/debian/`dh_listpackages`/usr/share/doc/alex + +# 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 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 diff --git a/p/alex/debian/watch b/p/alex/debian/watch new file mode 100644 index 000000000..f7ad9a868 --- /dev/null +++ b/p/alex/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://www.haskell.org/alex/ .*/alex-([\d\.]*).tar.gz |
