[Pkg-haskell-commits] darcs: shelltestrunner: Remove cabal-th depdendency

Iustin Pop iustin at debian.org
Mon Mar 26 17:24:55 UTC 2012


Mon Mar 26 16:54:54 UTC 2012  Iustin Pop <iustin at debian.org>
  * Remove cabal-th depdendency
  Ignore-this: 7b85de91790a42092663e86902975570

    A ./patches/
    A ./patches/remove-cabal-th-dependency.patch
    A ./patches/series

Mon Mar 26 16:54:54 UTC 2012  Iustin Pop <iustin at debian.org>
  * Remove cabal-th depdendency
  Ignore-this: 7b85de91790a42092663e86902975570
diff -rN -u old-shelltestrunner//patches/remove-cabal-th-dependency.patch new-shelltestrunner//patches/remove-cabal-th-dependency.patch
--- old-shelltestrunner//patches/remove-cabal-th-dependency.patch	1970-01-01 00:00:00.000000000 +0000
+++ new-shelltestrunner//patches/remove-cabal-th-dependency.patch	2012-03-26 17:24:54.670750076 +0000
@@ -0,0 +1,37 @@
+Description: Remove cabal-th dependency
+ This is only used to embed the version of the package, but since
+ cabal-th is available just on a few architectures, it makes more sense
+ to hard-code that and thus make shelltestrunner available on more
+ architectures.
+Author: Iustin Pop <iustin at debian.org>
+Forwarded: no
+Last-Update: 2012-03-26
+--- a/shelltest.hs
++++ b/shelltest.hs
+@@ -41,14 +41,14 @@
+ import qualified System.FilePath.Find as Find (extension)
+ import Control.Applicative ((<$>))
+ import Data.Algorithm.Diff
+-import Distribution.PackageDescription.TH (packageVariable, package, pkgVersion)
+ 
+ strace :: Show a => a -> a
+ strace a = trace (show a) a
+ 
+ progname, version, progversion :: String
+ progname = "shelltest"
+-version = $(packageVariable (pkgVersion . package))
++-- sync with the cabal file
++version = "1.2.1"
+ progversion = progname ++ " " ++ version
+ proghelpsuffix :: [String]
+ proghelpsuffix = [
+--- a/shelltestrunner.cabal
++++ b/shelltestrunner.cabal
+@@ -28,7 +28,6 @@
+   ghc-options:    -threaded -W -fwarn-tabs
+   build-depends:
+                  base                 >= 4     && < 5
+-                ,cabal-file-th
+                 ,filemanip            >= 0.3   && < 0.4
+                 ,HUnit                            < 1.3
+                 ,cmdargs              >= 0.7   && < 0.10
diff -rN -u old-shelltestrunner//patches/series new-shelltestrunner//patches/series
--- old-shelltestrunner//patches/series	1970-01-01 00:00:00.000000000 +0000
+++ new-shelltestrunner//patches/series	2012-03-26 17:24:54.670750076 +0000
@@ -0,0 +1 @@
+remove-cabal-th-dependency.patch





More information about the Pkg-haskell-commits mailing list