gtk2hs-buildtools 0.13.5.3 → 0.13.5.4
raw patch · 2 files changed
+7/−1 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- gtk2hs-buildtools.cabal +1/−1
- src/Gtk2HsSetup.hs +6/−0
gtk2hs-buildtools.cabal view
@@ -1,5 +1,5 @@ Name: gtk2hs-buildtools-Version: 0.13.5.3+Version: 0.13.5.4 License: GPL-2 License-file: COPYING Copyright: (c) 2001-2010 The Gtk2Hs Team
src/Gtk2HsSetup.hs view
@@ -11,7 +11,11 @@ ) where import Data.Maybe (mapMaybe)+#if MIN_VERSION_Cabal(2,4,0) import Distribution.Pretty (prettyShow)+#else+import Distribution.Simple.LocalBuildInfo (getComponentLocalBuildInfo)+#endif import Distribution.Simple import Distribution.Simple.PreProcess import Distribution.InstalledPackageInfo ( importDirs,@@ -192,6 +196,7 @@ "Package contains no library to register:" (packageId pkg_descr) where verbosity = fromFlag (regVerbosity flags) +#if MIN_VERSION_Cabal(2,4,0) getComponentLocalBuildInfo :: LocalBuildInfo -> LBI.ComponentName -> ComponentLocalBuildInfo getComponentLocalBuildInfo lbi cname = case LBI.componentNameCLBIs lbi cname of@@ -203,6 +208,7 @@ error $ "internal error: the component name " ++ show cname ++ "is ambiguous. Refers to: " ++ intercalate ", " (map (prettyShow . LBI.componentUnitId) clbis)+#endif register :: PackageDescription -> LocalBuildInfo -> RegisterFlags -- ^Install in the user's database?; verbose