[Pkg-haskell-commits] darcs: haskell-hsqml: Add pkg-config fix for Setup.hs.

Christopher Reichert creichert07 at gmail.com
Sun Dec 21 18:20:03 UTC 2014


Wed Nov 26 07:37:05 UTC 2014  Christopher Reichert <creichert07 at gmail.com>
  * Add pkg-config fix for Setup.hs.
  
  Patches provided by gspreeman at
  
  https://launchpad.net/~gspreemann/+archive/ubuntu/haskell/+files/haskell-hsqml_0.3.2.0-0ubuntu0gspr1.debian.tar.xz
  

    A ./patches/
    A ./patches/pkgconfig-hack.patch
    A ./patches/series

Wed Nov 26 07:37:05 UTC 2014  Christopher Reichert <creichert07 at gmail.com>
  * Add pkg-config fix for Setup.hs.
  
  Patches provided by gspreeman at
  
  https://launchpad.net/~gspreemann/+archive/ubuntu/haskell/+files/haskell-hsqml_0.3.2.0-0ubuntu0gspr1.debian.tar.xz
  
diff -rN -u old-haskell-hsqml/patches/pkgconfig-hack.patch new-haskell-hsqml/patches/pkgconfig-hack.patch
--- old-haskell-hsqml/patches/pkgconfig-hack.patch	1970-01-01 00:00:00.000000000 +0000
+++ new-haskell-hsqml/patches/pkgconfig-hack.patch	2014-12-21 18:20:03.175918722 +0000
@@ -0,0 +1,27 @@
+--- a/Setup.hs
++++ b/Setup.hs
+@@ -16,6 +16,7 @@
+ import Distribution.Simple.Utils
+ import Distribution.Text
+ import Distribution.Verbosity
++import qualified Data.Version as V
+ import qualified Distribution.InstalledPackageInfo as I
+ import qualified Distribution.ModuleName as ModuleName
+ import Distribution.PackageDescription
+@@ -237,6 +238,8 @@
+       dist    = fromFlag $ regDistPref flags
+       pkgDb   = withPackageDB lbi
+       clbi    = extractCLBI lbi
++      PackageName name = packageName pkg
++      version = packageVersion pkg
+   instPkgInfo <- generateRegistrationInfo
+     verb pkg lib lbi clbi inplace dist
+   let instPkgInfo' = instPkgInfo {
+@@ -252,6 +255,7 @@
+     Just regFile -> do
+       writeUTF8File (fromMaybe (display (packageId pkg) <.> "conf") regFile) $
+         I.showInstalledPackageInfo instPkgInfo'
++      putStrLn ("Creating package registration file: " ++ name ++ "-" ++ V.showVersion version ++ ".conf")
+     _ | fromFlag (regGenScript flags) ->
+       die "Registration scripts are not implemented."
+       | otherwise -> 
diff -rN -u old-haskell-hsqml/patches/series new-haskell-hsqml/patches/series
--- old-haskell-hsqml/patches/series	1970-01-01 00:00:00.000000000 +0000
+++ new-haskell-hsqml/patches/series	2014-12-21 18:20:03.179918723 +0000
@@ -0,0 +1 @@
+pkgconfig-hack.patch




More information about the Pkg-haskell-commits mailing list