summaryrefslogtreecommitdiff
path: root/p/haskell-hsqml
diff options
context:
space:
mode:
authorChristopher Reichert <creichert07@gmail.com>2014-11-26 10:37:05 +0300
committerChristopher Reichert <creichert07@gmail.com>2014-11-26 10:37:05 +0300
commite252bc9130d94e3fddb54b017b0b04156dd9e53c (patch)
tree6fda26446430b975d63fe7377e5566fa8bc3e4a9 /p/haskell-hsqml
parentd47133f92dd07e0616e1159313cdc871b59080fb (diff)
downloadDHG_packages-e252bc9130d94e3fddb54b017b0b04156dd9e53c.tar.gz
haskell-hsqml: 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
Diffstat (limited to 'p/haskell-hsqml')
-rw-r--r--p/haskell-hsqml/debian/patches/pkgconfig-hack.patch27
-rw-r--r--p/haskell-hsqml/debian/patches/series1
2 files changed, 28 insertions, 0 deletions
diff --git a/p/haskell-hsqml/debian/patches/pkgconfig-hack.patch b/p/haskell-hsqml/debian/patches/pkgconfig-hack.patch
new file mode 100644
index 000000000..74cb53922
--- /dev/null
+++ b/p/haskell-hsqml/debian/patches/pkgconfig-hack.patch
@@ -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 --git a/p/haskell-hsqml/debian/patches/series b/p/haskell-hsqml/debian/patches/series
new file mode 100644
index 000000000..ff22292bc
--- /dev/null
+++ b/p/haskell-hsqml/debian/patches/series
@@ -0,0 +1 @@
+pkgconfig-hack.patch