hackport 0.4.3 → 0.4.4
raw patch · 4 files changed
+19/−31 lines, 4 filesdep +network-uridep ~network
Dependencies added: network-uri
Dependency ranges changed: network
Files
- AnsiColor.hs +9/−25
- Merge/Dependencies.hs +3/−0
- Portage/Dependency/Normalize.hs +4/−3
- hackport.cabal +3/−3
AnsiColor.hs view
@@ -6,7 +6,10 @@ -} module AnsiColor- where+ ( Color(..)+ , bold+ , inColor+ ) where import Data.List @@ -33,30 +36,11 @@ inColor :: Color -> Bool -> Color -> String -> String inColor c bf bg txt = esc (col c bf bg) ++ txt ++ esc ["00"] -bold, italic, underline, inverse :: String -> String-bold = ansi "1" "22"-italic = ansi "3" "23"-underline = ansi "4" "24"-inverse = ansi "7" "27"+bold :: String -> String+bold = ansi "1" "22"+-- italic = ansi "3" "23"+-- underline = ansi "4" "24"+-- inverse = ansi "7" "27" ansi :: String -> String -> String -> String ansi on off txt = esc [on] ++ txt ++ esc [off]--{--data Doc = Doc (Bool -> String -> String)--char chr = Doc (\_ c -> chr:c)--text str = Doc (\_ c -> str ++ c)--(Doc t) <> (Doc u) = Doc (\b c -> t b (u b c))--t <+> u = t <> char ' ' <> u--showDoc (Doc d) b = d b ""--color (Doc d) color = Doc (\ b c ->- if not b- then d b c- else inColor color False Default (d b ""))--}
Merge/Dependencies.hs view
@@ -339,6 +339,8 @@ , ("pgf", any_c_p "media-libs" "libpgf") , ("ssh2", any_c_p "net-libs" "libssh2") , ("dl", any_c_p "virtual" "libc")+ , ("glfw", any_c_p "media-libs" "glfw")+ , ("nettle", any_c_p "dev-libs" "nettle") ] ---------------------------------------------------------------@@ -487,4 +489,5 @@ ,("panelw", ("sys-libs", "ncurses", Portage.AnySlot)) ,("libssh2", ("net-libs", "libssh2", Portage.AnySlot)) ,("SDL_image", ("media-libs", "sdl-image", Portage.AnySlot))+ ,("libzmq", ("net-libs", "zeromq", Portage.AnySlot)) ]
Portage/Dependency/Normalize.hs view
@@ -31,10 +31,10 @@ normalization_step :: Int -> Dependency -> Dependency normalization_step level = id- . tp "PC2" (stabilize_pass propagate_context)+ . tp "PC2" (stabilize_pass (tp "PC2 step" propagate_context)) . tp "F3" (stabilize_pass flatten) . tp "LC" lift_context- . tp "PC1" (stabilize_pass propagate_context)+ . tp "PC1" (stabilize_pass (tp "PC1 step" propagate_context)) . tp "F2" (stabilize_pass flatten) . tp "RD" (stabilize_pass remove_duplicates) . tp "RE" (stabilize_pass remove_empty)@@ -243,8 +243,9 @@ | (optimized_d, other_deps) <- slice_list deps , let ctx' = ctx ++ other_deps d' = go ctx' optimized_d+ d'ctx = d' : ctx v = case d' /= optimized_d of- True -> Just (d':other_deps)+ True -> Just (d':map (go d'ctx) other_deps) False -> Nothing -- haven't managed to optimize anything ] ++ [Just deps] -- unmodified DependAnyOf deps -> DependAnyOf $ map (go ctx) deps
hackport.cabal view
@@ -1,5 +1,5 @@ Name: hackport-Version: 0.4.3+Version: 0.4.4 License: GPL License-file: LICENSE Author: Henning Günther, Duncan Coutts, Lennart Kolmodin@@ -29,7 +29,7 @@ filepath, parsec, mtl,- network,+ network >= 2.6, network-uri >= 2.6, pretty, regex-compat, MissingH,@@ -103,7 +103,7 @@ filepath, parsec, mtl,- network,+ network >= 2.6, network-uri >= 2.6, pretty, regex-compat, HTTP >= 4000.0.3,