Commit c3656ee8 authored by Joachim Breitner's avatar Joachim Breitner

alex: Adopt for the Debian Haskell Group and adjust packaging.

parent 79b80c86
dist-ghc6/build/alex/alex usr/bin
debian/tmp-inst-ghc6/usr/share/alex* usr/share
......@@ -2,6 +2,7 @@ alex (2.3.1-1) UNRELEASED; urgency=low
* New upstream release (Closes: #530313)
* Let watchfile point to hackage
* Adopt for the Debian Haskell Group and adjust packaging.
-- Joachim Breitner <nomeata@debian.org> Mon, 05 Oct 2009 16:45:55 +0200
......
Source: alex
Section: devel
Section: haskell
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
Maintainer: Debian Haskell Group <pkg-haskell-maintainers@lists.alioth.debian.org>
Uploaders: Joachim Breitner <nomeata@debian.org>
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}
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
......
......@@ -2,103 +2,42 @@
# 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
prefix := /usr
DEB_BUILD_DEPENDENCIES = build-arch
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
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 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
# 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
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-*/
configure/alex::
# doc/configure is not shipped, generate it
cd doc && autoconf && rm -r autom4te.cache && ./configure --prefix=/usr
cp -a doc/alex/* `pwd`/debian/`dh_listpackages`/usr/share/doc/alex/html
cp -a examples `pwd`/debian/`dh_listpackages`/usr/share/doc/alex
# used in build to stick version into man page
ghc6 --make debian/get_version.hs -o debian/get_version
# Build architecture-independent files here.
binary-indep: build install
@:
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
# 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
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
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment