[Git][haskell-team/DHG_packages][master] alex: Upgrading from 3.2.7.1 to 3.3.0.0

Ilias Tsitsimpis (@iliastsi) gitlab at salsa.debian.org
Sat Sep 2 20:27:09 BST 2023



Ilias Tsitsimpis pushed to branch master at Debian Haskell Group / DHG_packages


Commits:
f8dee059 by Ilias Tsitsimpis at 2023-09-02T22:22:23+03:00
alex: Upgrading from 3.2.7.1 to 3.3.0.0

- - - - -


6 changed files:

- + p/alex/debian/alex.1.in
- p/alex/debian/alex.manpages
- p/alex/debian/changelog
- p/alex/debian/control
- p/alex/debian/get_version.hs
- p/alex/debian/rules


Changes:

=====================================
p/alex/debian/alex.1.in
=====================================
@@ -0,0 +1,111 @@
+.TH ALEX 1 "2003-09-09" "Glasgow FP Suite" "Alex Lexical Analyser Generator"
+.SH NAME
+alex \- the lexical analyser generator for Haskell
+
+.SH SYNOPSIS
+.B alex
+[\fIOPTION\fR]... \fIfile\fR [\fIOPTION\fR]...
+
+.SH DESCRIPTION
+This manual page documents briefly the
+.BR alex 
+command.
+
+.PP
+This manual page was written for the Debian GNU/Linux distribution
+because the original program does not have a manual page.  Instead, it
+has documentation in various other formats, including DVI, Info and
+HTML; see below.
+
+.PP
+.B Alex
+is a lexical analyser generator system for Haskell. It is similar to the
+tool lex or flex for C/C++.
+
+.PP
+Input files are expected to be of the form
+.I file.x
+and
+.B alex
+will produce output in
+.I file.y
+
+.PP
+Caveat: When using 
+.I hbc 
+(Chalmers Haskell) the command argument structure is slightly
+different.  This is because the hbc run time system takes some flags
+as its own (for setting things like the heap size, etc).  This problem
+can be circumvented by adding a single dash (`-') to your command
+line.  So when using a hbc generated version of Alex, the argument
+structure is:
+
+.B alex \-
+[\fIOPTION\fR]... \fIfile\fR [\fIOPTION\fR]...
+
+.SH OPTIONS
+The programs follow the usual GNU command line syntax, with long
+options starting with two dashes (`--').  A summary of options is
+included below.  For a complete description, see the other
+documentation.
+
+.TP
+.BR \-d ", " \-\-debug
+Instructs Alex to generate a lexer which will output debugging messages
+as it runs.
+
+.TP
+.BR \-g ", " \-\-ghc
+Instructs Alex to generate a lexer which is optimised for compiling with
+GHC. The lexer will be significantly more efficient, both in terms of
+the size of the compiled lexer and its runtime.
+
+.TP
+\fB\-o\fR \fIFILE\fR, \fB\-\-outfile=\fIFILE
+Specifies the filename in which the output is to be placed. By default,
+this is the name of the input file with the
+.I .x
+suffix replaced by
+.I .hs
+
+.TP
+\fB\-i\fR [\fIFILE\fR], \fB\-\-info\fR[=\fIFILE\fR]
+Produces a human-readable rendition of the state machine (DFA) that
+Alex derives from the lexer, in
+.I FILE
+(default:
+.I file.info
+where the input file is
+.I file.x
+).
+
+The format of the info file is currently a bit basic, and not
+particularly informative.
+
+.TP
+.BR \-v ", " \-\-version
+Print version information on standard output then exit successfully.
+
+.SH FILES
+.I @DATADIR@
+
+.SH "SEE ALSO"
+.BR @DOCDIR@ ,
+the Alex homepage
+.UR http://haskell.org/alex/
+(http://haskell.org/alex/)
+.UE
+
+.SH COPYRIGHT
+Alex Version @VERSION@ 
+
+Copyright (c) 1995-2003, Chris Dornan and Simon Marlow
+
+.SH AUTHOR
+This manual page was written by Ian Lynagh
+<igloo at debian.org>, based on the happy manpage, for the Debian GNU/Linux
+system (but may be used by others).
+
+.\" Local variables:
+.\" mode: nroff
+.\" End:


=====================================
p/alex/debian/alex.manpages
=====================================
@@ -1 +1 @@
-doc/alex.1
+debian/alex.1


=====================================
p/alex/debian/changelog
=====================================
@@ -1,8 +1,9 @@
-alex (3.2.7.1-4) UNRELEASED; urgency=medium
+alex (3.3.0.0-1) unstable; urgency=medium
 
   * Declare compliance with Debian policy 4.6.2
+  * New upstream release
 
- -- Ilias Tsitsimpis <iliastsi at debian.org>  Sun, 27 Aug 2023 12:33:22 +0300
+ -- Ilias Tsitsimpis <iliastsi at debian.org>  Sat, 02 Sep 2023 22:14:20 +0300
 
 alex (3.2.7.1-3) unstable; urgency=medium
 


=====================================
p/alex/debian/control
=====================================
@@ -7,19 +7,14 @@ Uploaders:
 Priority: optional
 Section: haskell
 Rules-Requires-Root: no
-Build-Depends: alex <!stage1>,
-               autoconf,
-               cdbs (>= 0.4.59),
-               debhelper (>= 10),
-               docbook-utils,
-               docbook-xml,
-               docbook-xsl,
-               dpkg-dev (>= 1.17.14),
-               ghc (>= 8),
-               happy,
-               haskell-devscripts (>= 0.16.23),
-               libghc-quickcheck2-dev,
-               xsltproc
+Build-Depends:
+ alex <!stage1>,
+ cdbs (>= 0.4.59),
+ debhelper (>= 10),
+ haskell-devscripts (>= 0.16.23),
+ ghc (>= 9.4),
+ happy,
+ libghc-quickcheck2-dev,
 Standards-Version: 4.6.2
 Homepage: http://www.haskell.org/alex/
 Vcs-Browser: https://salsa.debian.org/haskell-team/DHG_packages/tree/master/p/alex


=====================================
p/alex/debian/get_version.hs
=====================================
@@ -2,7 +2,7 @@ module Main (main) where
 
 import Distribution.Package
 import Distribution.PackageDescription
-import Distribution.PackageDescription.Parsec ( readGenericPackageDescription )
+import Distribution.Simple.PackageDescription ( readGenericPackageDescription )
 import Distribution.Pretty                    ( prettyShow )
 import Distribution.Simple.Utils
 import Distribution.Verbosity


=====================================
p/alex/debian/rules
=====================================
@@ -19,33 +19,19 @@ DEB_SETUP_GHC_CONFIGURE_ARGS := --with-alex=/bin/true
 endif
 
 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
-
+	rm -f debian/alex.1
 
 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
 	ghc --make debian/get_version.hs -o debian/get_version
 
 build/alex:: build-ghc-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
+	  debian/alex.1.in > debian/alex.1
 
 install/alex:: debian/tmp-inst-ghc
-	dh_installdirs usr/share/doc/alex/html
-	cp -a doc/alex/* `pwd`/debian/`dh_listpackages`/usr/share/doc/alex/html
 
 # Set the path for the alex binary, used by
 # tests/Makefile to run tests.



View it on GitLab: https://salsa.debian.org/haskell-team/DHG_packages/-/commit/f8dee059267733d0a43336ae70bace30137fe700

-- 
View it on GitLab: https://salsa.debian.org/haskell-team/DHG_packages/-/commit/f8dee059267733d0a43336ae70bace30137fe700
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-haskell-commits/attachments/20230902/35c56837/attachment-0001.htm>


More information about the Pkg-haskell-commits mailing list