git.iko.soy/typeable/pandoc
on master help sign in
Removed custom Setup.hs, use build-type: simple.
e8fba10John MacFarlane
Setup.hs+1−37
@@ -1,38 +1,2 @@
1−{-
2−Copyright (C) 2006-2018 John MacFarlane <jgm@berkeley.edu>
3−
4−This program is free software; you can redistribute it and/or modify
5−it under the terms of the GNU General Public License as published by
6−the Free Software Foundation; either version 2 of the License, or
7−(at your option) any later version.
8−
9−This program is distributed in the hope that it will be useful,
10−but WITHOUT ANY WARRANTY; without even the implied warranty of
11−MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12−GNU General Public License for more details.
13−
14−You should have received a copy of the GNU General Public License
15−along with this program; if not, write to the Free Software
16−Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17−-}
18−
19import Distribution.Simple
1import Distribution.Simple
20−import Distribution.Simple.Setup (CopyFlags(..), fromFlag)
2+main = defaultMain
21−import Distribution.PackageDescription (PackageDescription(..))
22−import Distribution.Simple.Utils (notice, installOrdinaryFiles)
23−import Distribution.Simple.LocalBuildInfo
24−
25−main :: IO ()
26−main = defaultMainWithHooks $ simpleUserHooks {
27− postCopy = installManPage
28− }
29−
30−installManPage :: Args -> CopyFlags
31− -> PackageDescription -> LocalBuildInfo -> IO ()
32−installManPage _ flags pkg lbi = do
33− let verbosity = fromFlag (copyVerbosity flags)
34− let copydest = fromFlag (copyDest flags)
35− let mandest = mandir (absoluteInstallDirs pkg lbi copydest)
36− ++ "/man1"
37− notice verbosity $ "Copying man page to " ++ mandest
38− installOrdinaryFiles verbosity mandest [("man", "pandoc.1")]
pandoc.cabal+1−4
@@ -1,7 +1,7 @@
1name: pandoc
1name: pandoc
2version: 2.6
2version: 2.6
3cabal-version: 2.0
3cabal-version: 2.0
4−build-type: Custom
4+build-type: Simple
5license: GPL-2
5license: GPL-2
6license-file: COPYING.md
6license-file: COPYING.md
7copyright: (c) 2006-2018 John MacFarlane
7copyright: (c) 2006-2018 John MacFarlane
@@ -346,9 +346,6 @@ flag trypandoc
346 Description: Build trypandoc cgi executable.
346 Description: Build trypandoc cgi executable.
347 Default: False
347 Default: False
348
348
349−custom-setup
350− setup-depends: base, Cabal >= 2.0
351−
352library
349library
353 build-depends: base >= 4.8 && < 5,
350 build-depends: base >= 4.8 && < 5,
354 syb >= 0.1 && < 0.8,
351 syb >= 0.1 && < 0.8,