git.iko.soy/typeable/pandoc
on master help sign in
Include Pandoc.cabal in repository; do not generate it from
c841becfiddlosopher
Pandoc.cabal.in → Pandoc.cabalrenamed+7−7
@@ -1,18 +1,18 @@
1Name: Pandoc
1Name: Pandoc
2−Version: @VERSION@
2+Version: 0.4
3License: GPL
3License: GPL
4License-File: COPYING
4License-File: COPYING
5Author: John MacFarlane <jgm at berkeley dot edu>
5Author: John MacFarlane <jgm at berkeley dot edu>
6Stability: alpha
6Stability: alpha
7Homepage: http://sophos.berkeley.edu/macfarlane/pandoc
7Homepage: http://sophos.berkeley.edu/macfarlane/pandoc
8−Package-URL: http://pandoc.googlecode.com/files/pandoc-@VERSION@.tar.gz
8+Package-URL: http://pandoc.googlecode.com/files/pandoc-0.4.tar.gz
9Category: Text
9Category: Text
10Tested-With: GHC
10Tested-With: GHC
11Synopsis: Utilities for translating between various markup formats
11Synopsis: Utilities for translating between various markup formats
12Description: Haskell utilities for translating between markdown, HTML,
12Description: Haskell utilities for translating between markdown, HTML,
13 reStructuredText, LaTeX, DocBook, and RTF
13 reStructuredText, LaTeX, DocBook, and RTF
14−Build-Depends: @BUILD_DEPENDS@
14+Build-Depends: base, parsec, xhtml, mtl, regex-compat
15−@HS_SOURCE_DIRS@: src
15+Hs-Source-Dirs: src
16Exposed-Modules: Text.ParserCombinators.Pandoc,
16Exposed-Modules: Text.ParserCombinators.Pandoc,
17 Text.Pandoc,
17 Text.Pandoc,
18 Text.Pandoc.ASCIIMathML,
18 Text.Pandoc.ASCIIMathML,
@@ -32,9 +32,9 @@ Exposed-Modules: Text.ParserCombinators.Pandoc,
32 Text.Pandoc.Readers.Markdown,
32 Text.Pandoc.Readers.Markdown,
33 Text.Pandoc.Readers.RST,
33 Text.Pandoc.Readers.RST,
34 Text.Pandoc.Readers.LaTeX
34 Text.Pandoc.Readers.LaTeX
35−Ghc-Options: @HCFLAGS@
35+Ghc-Options: -O0
36
36
37Executable: pandoc
37Executable: pandoc
38−@HS_SOURCE_DIRS@: src
38+Hs-Source-Dirs: src
39Main-Is: Main.hs
39Main-Is: Main.hs
40−Ghc-Options: @HCFLAGS@
40+Ghc-Options: -O0
cabalizedeleted−44
@@ -1,44 +0,0 @@
1−#!/bin/sh
2−# Preprocesses cabal file.
3−
4−BASE_DEPENDS="base parsec xhtml mtl"
5−
6−GHC64_DEPENDS=${GHC64_DEPENDS}
7−GHC66_DEPENDS=${GHC66_DEPENDS-"regex-compat"}
8−HCFLAGS=${HCFLAGS-"-O0"}
9−
10−set -- $(ghc --version)
11−while [ -n "$1" ] && [ "$1" != 'version' ]; do
12− shift
13−done
14−shift
15−ghc_version="$1"
16−
17−BUILD_DEPENDS="${BASE_DEPENDS}"
18−case "$ghc_version" in
19−6.4*)
20− BUILD_DEPENDS="${BUILD_DEPENDS} ${GHC64_DEPENDS}"
21− ;;
22−6.[5-9]*)
23− BUILD_DEPENDS="${BUILD_DEPENDS} ${GHC66_DEPENDS}"
24− ;;
25−*)
26− echo >&2 "WARNING: Unsupported GHC version '$ghc_version'; proceeding anyway"
27− break
28− ;;
29−esac
30−BUILD_DEPENDS=$(echo $BUILD_DEPENDS | sed -e 's# #, #g')
31−
32−PANDOC_VERSION=$(sed -ne 's/^version[[:space:]]*=[[:space:]]*"\([^"]*\)"/\1/p' src/Main.hs)
33−
34−# Handle 'Hs-Source-Dir' option name which was deprecated in Cabal > 1.1.3.
35−HS_SOURCE_DIRS='Hs-Source-Dirs'
36−cabal_version=$(ghc-pkg -l | sed -ne 's/.*[Cc]abal-\([^,]*\).*/\1/p')
37−if printf "$cabal_version\n1.1.3" | sort | tail -n 1 | grep -q '1\.1\.3'; then
38− HS_SOURCE_DIRS='Hs-Source-Dir'
39−fi
40−
41−sed -e "s#@HCFLAGS@#$HCFLAGS#g" \
42− -e "s#@BUILD_DEPENDS@#$BUILD_DEPENDS#g" \
43− -e "s#@HS_SOURCE_DIRS@#$HS_SOURCE_DIRS#g" \
44− -e "s#@VERSION@#$PANDOC_VERSION#g"