[Pkg-haskell-commits] darcs: haskell-hoogle: New upstream version 4.2.23

Raúl Benencia rul at kalgan.cc
Sun Oct 6 15:31:56 UTC 2013


Sun Oct  6 15:25:53 UTC 2013  Ra[_<U+00FA>_]l Benencia <rul at kalgan.cc>
  * New upstream version 4.2.23
  
  It was needed to adapt the patch add-local-loction-database.patch in order
  for it to work with this new version.
  
  The patch fix-extract-tarball.patch was addded to fix a bug when trying to
  extract a couple of missing tarballs.
  

    M ./changelog -1 +8
    M ./control -3 +2
    M ./patches/add-local-loction-database.patch -48 +34
    A ./patches/fix-extract-tarball.patch
    M ./patches/series +1

Sun Oct  6 15:25:53 UTC 2013  Raúl Benencia <rul at kalgan.cc>
  * New upstream version 4.2.23
  
  It was needed to adapt the patch add-local-loction-database.patch in order
  for it to work with this new version.
  
  The patch fix-extract-tarball.patch was addded to fix a bug when trying to
  extract a couple of missing tarballs.
  
diff -rN -u old-haskell-hoogle/changelog new-haskell-hoogle/changelog
--- old-haskell-hoogle/changelog	2013-10-06 15:31:56.515284226 +0000
+++ new-haskell-hoogle/changelog	2013-10-06 15:31:56.519300497 +0000
@@ -1,7 +1,14 @@
-haskell-hoogle (4.2.16-4) UNRELEASED; urgency=low
+haskell-hoogle (4.2.23-1) UNRELEASED; urgency=low
 
+  [ Joachim Breitner ]
   * Adjust watch file to new hackage layout
 
+  [ Raúl Benencia ]
+  * New upstream release
+  * Remove obsolete DM-Upload-Allowed control field
+  * Add fix-extract-tarball.patch
+  * Depend on haskell-src-exts 1.14
+
  -- Joachim Breitner <nomeata at debian.org>  Sat, 05 Oct 2013 18:20:36 +0200
 
 haskell-hoogle (4.2.16-3) unstable; urgency=low
diff -rN -u old-haskell-hoogle/control new-haskell-hoogle/control
--- old-haskell-hoogle/control	2013-10-06 15:31:56.489912989 +0000
+++ new-haskell-hoogle/control	2013-10-06 15:31:56.519300497 +0000
@@ -17,8 +17,8 @@
                , libghc-cmdargs-prof
                , libghc-conduit-dev (>= 0.2)
                , libghc-conduit-prof
-               , libghc-src-exts-dev (>= 1.12)
-               , libghc-src-exts-dev (<< 1.14)
+               , libghc-src-exts-dev (>= 1.14)
+               , libghc-src-exts-dev (<< 1.15)
                , libghc-src-exts-prof
                , libghc-http-types-dev (>= 0.7)
                , libghc-http-types-prof
@@ -58,7 +58,6 @@
 Homepage: http://www.haskell.org/hoogle/
 Vcs-Darcs: http://darcs.debian.org/pkg-haskell/haskell-hoogle
 Vcs-Browser: http://darcs.debian.org/cgi-bin/darcsweb.cgi?r=pkg-haskell/haskell-hoogle
-DM-Upload-Allowed: yes
 
 Package: libghc-hoogle-dev
 Architecture: any
diff -rN -u old-haskell-hoogle/patches/add-local-loction-database.patch new-haskell-hoogle/patches/add-local-loction-database.patch
--- old-haskell-hoogle/patches/add-local-loction-database.patch	2013-10-06 15:31:56.483275835 +0000
+++ new-haskell-hoogle/patches/add-local-loction-database.patch	2013-10-06 15:31:56.537732816 +0000
@@ -1,64 +1,50 @@
-Forwarded: http://code.google.com/p/ndmitchell/issues/detail?id=590
-
-Index: haskell-hoogle-4.2.15/src/CmdLine/Type.hs
-===================================================================
---- haskell-hoogle-4.2.15.orig/src/CmdLine/Type.hs	2013-01-29 11:35:35.000000000 +0100
-+++ haskell-hoogle-4.2.15/src/CmdLine/Type.hs	2013-02-17 17:26:49.000000000 +0100
-@@ -34,7 +34,7 @@
+--- a/src/Recipe/Haddock.hs
++++ b/src/Recipe/Haddock.hs
+@@ -1,7 +1,7 @@
+ {-# LANGUAGE PatternGuards #-}
+ 
+ module Recipe.Haddock(
+-    haddockToHTML, haddockHacks
++    haddockToHTML, haddockHacks, haddockPackageUrl
+     ) where
+ 
+ import General.Base
+--- a/src/CmdLine/Type.hs
++++ b/src/CmdLine/Type.hs
+@@ -35,7 +35,7 @@
      | Data {redownload :: Bool, local :: [String], datadir :: FilePath, threads :: Int, actions :: [String]}
      | Server {port :: Int, local_ :: Bool, databases :: [FilePath], resources :: FilePath, dynamic :: Bool, template :: [FilePath]}
      | Combine {srcfiles :: [FilePath], outfile :: String}
--    | Convert {srcfile :: String, outfile :: String}
-+    | Convert {srcfile :: String, outfile :: String, addlocation :: Bool}
+-    | Convert {srcfile :: String, outfile :: String, doc :: Maybe String, merge :: [String], haddock :: Bool}
++    | Convert {srcfile :: String, outfile :: String, doc :: Maybe String, merge :: [String], haddock :: Bool, addlocation :: Bool}
      | Log {logfiles :: [FilePath]}
      | Test {testFiles :: [String], example :: Bool}
      | Dump {database :: String, section :: [String]}
-@@ -92,6 +92,7 @@
- convert = Convert
-     {srcfile = def &= argPos 0 &= typ "INPUT"
-     ,outfile = def &= argPos 1 &= typ "DATABASE" &= opt ""
+@@ -97,6 +97,7 @@
+     ,doc = def &= typDir &= help "Path to the root of local or Hackage documentation for the package (implies --haddock)"
+     ,merge = def &= typ "DATABASE" &= help "Merge other databases"
+     ,haddock = def &= help "Apply haddock-specific hacks"
 +    ,addlocation = def &= help "Add location infomation to database"
      } &= help "Convert an input file to a database"
  
  data_ = Data
-Index: haskell-hoogle-4.2.15/src/Console/All.hs
-===================================================================
---- haskell-hoogle-4.2.15.orig/src/Console/All.hs	2013-01-29 11:35:35.000000000 +0100
-+++ haskell-hoogle-4.2.15/src/Console/All.hs	2013-02-17 17:33:42.662665170 +0100
-@@ -3,6 +3,7 @@
- 
- import CmdLine.All
- import Recipe.All
-+import Recipe.Hackage
- import Console.Log
- import Console.Search
- import Console.Test
-@@ -36,12 +37,15 @@
+--- a/src/Console/All.hs
++++ b/src/Console/All.hs
+@@ -40,12 +40,15 @@
  
  action (Log files) = logFiles files
  
--action (Convert from to) = do
-+action (Convert from to addloc) = do
-     to <- return $ if null to then replaceExtension from "hoo" else to
+-action (Convert from to doc merge haddock) = do
++action (Convert from to doc merge haddock addloc) = do
      when (any isUpper $ takeBaseName to) $ putStrLn $ "Warning: Hoogle databases should be all lower case, " ++ takeBaseName to
      putStrLn $ "Converting " ++ from
      src <- readFileUtf8 from
--    let (err,db) = createDatabase Haskell [] src
-+    let from' = "file://" ++ from
-+        src' = if addloc then unlines . haddockPackageUrl from' . lines $ src
-+               else src
-+        (err,db) = createDatabase Haskell [] src'
-     unless (null err) $ putStr $ unlines $ "Warning: parse errors" : map show err
-     saveDatabase to db
-     putStrLn $ "Written " ++ to
-Index: haskell-hoogle-4.2.15/src/Recipe/Hackage.hs
-===================================================================
---- haskell-hoogle-4.2.15.orig/src/Recipe/Hackage.hs	2013-01-29 11:35:35.000000000 +0100
-+++ haskell-hoogle-4.2.15/src/Recipe/Hackage.hs	2013-02-17 17:26:49.000000000 +0100
-@@ -1,5 +1,5 @@
- 
--module Recipe.Hackage(makePlatform, makeDefault, makePackage, makeAll) where
-+module Recipe.Hackage(makePlatform, makeDefault, makePackage, makeAll, haddockPackageUrl) where
- 
- import Recipe.Type
- import Recipe.Cabal
+-    convert merge (takeBaseName from) to $ unlines $ addLocalDoc doc (lines src)
++    convert merge (takeBaseName from) to $ unlines . fixURLs $ addLocalDoc doc (lines src)
+     where
++      fixURLs :: [String] -> [String]
++      fixURLs lns = if not addloc then lns else haddockPackageUrl ("file://" ++ from) lns
++
+       addLocalDoc :: Maybe FilePath -> [String] -> [String]
+       addLocalDoc doc = if haddock
+                           then haddockHacks $ addDoc doc
diff -rN -u old-haskell-hoogle/patches/fix-extract-tarball.patch new-haskell-hoogle/patches/fix-extract-tarball.patch
--- old-haskell-hoogle/patches/fix-extract-tarball.patch	1970-01-01 00:00:00.000000000 +0000
+++ new-haskell-hoogle/patches/fix-extract-tarball.patch	2013-10-06 15:31:56.541579892 +0000
@@ -0,0 +1,19 @@
+Description: Ask if a tarball exists before trying to extract its contents
+ When a contents of the tarball are already present in the filesystem,
+ hoogle will not download it again. In this case, the tarball must not be
+ extracted because it does not exists.
+Bug: https://github.com/ndmitchell/hoogle/pull/35
+Author: Raúl Benencia <rul at kalgan.cc>
+--- a/src/Recipe/Download.hs
++++ b/src/Recipe/Download.hs
+@@ -47,8 +47,8 @@
+                 , (inputs <.> "txt", inputs <.> "tar.gz", "http://old.hackage.haskell.org/packages/archive/00-hoogle.tar.gz")
+                 ]
+     withDownloader opt downloader items
+-    extractTarball cabals
+-    extractTarball inputs
++    doesFileExist (cabals <.> "tar.gz") >>= \b -> when b $ extractTarball cabals
++    doesFileExist (inputs <.> "tar.gz") >>= \b -> when b $ extractTarball inputs
+ 
+ 
+ check :: String -> IO (Maybe FilePath)
diff -rN -u old-haskell-hoogle/patches/series new-haskell-hoogle/patches/series
--- old-haskell-hoogle/patches/series	2013-10-06 15:31:56.429655515 +0000
+++ new-haskell-hoogle/patches/series	2013-10-06 15:31:56.541579892 +0000
@@ -1 +1,2 @@
 add-local-loction-database.patch
+fix-extract-tarball.patch




More information about the Pkg-haskell-commits mailing list