[Pkg-haskell-commits] darcs: haskell-snap: Rename snap to snap-framework (Closes: 741503)

Joachim Breitner mail at joachim-breitner.de
Tue Apr 15 21:30:11 UTC 2014


Tue Apr 15 21:27:13 UTC 2014  Joachim Breitner <mail at joachim-breitner.de>
  * Rename snap to snap-framework (Closes: 741503) 

    M ./changelog +1
    M ./control -1 +2
    M ./libghc-snap-dev.haskell-binaries -1 +1
    A ./patches/
    A ./patches/rename-snap-binary
    A ./patches/series

Tue Apr 15 21:27:13 UTC 2014  Joachim Breitner <mail at joachim-breitner.de>
  * Rename snap to snap-framework (Closes: 741503) 
diff -rN -u old-haskell-snap/changelog new-haskell-snap/changelog
--- old-haskell-snap/changelog	2014-04-15 21:30:11.483119868 +0000
+++ new-haskell-snap/changelog	2014-04-15 21:30:11.483119868 +0000
@@ -2,6 +2,7 @@
 
   * Move libghc-snap-loader-dynamic-dev dependency to Recommends (not
     available on all architectures).
+  * Rename snap to snap-framework (Closes: 741503) 
 
  -- Joachim Breitner <nomeata at debian.org>  Tue, 15 Apr 2014 23:16:51 +0200
 
diff -rN -u old-haskell-snap/control new-haskell-snap/control
--- old-haskell-snap/control	2014-04-15 21:30:11.483119868 +0000
+++ new-haskell-snap/control	2014-04-15 21:30:11.483119868 +0000
@@ -132,7 +132,8 @@
  .
  The Snaplets API
  .
- The "snap" executable program for generating starter projects
+ The "snap-framework" executable program for generating starter projects (which
+ is called "snap" elsewhere)
  .
  Snaplets for sessions, authentication, and templates
 
diff -rN -u old-haskell-snap/libghc-snap-dev.haskell-binaries new-haskell-snap/libghc-snap-dev.haskell-binaries
--- old-haskell-snap/libghc-snap-dev.haskell-binaries	2014-04-15 21:30:11.483119868 +0000
+++ new-haskell-snap/libghc-snap-dev.haskell-binaries	2014-04-15 21:30:11.487119869 +0000
@@ -1 +1 @@
-snap
+snap-framework
diff -rN -u old-haskell-snap/patches/rename-snap-binary new-haskell-snap/patches/rename-snap-binary
--- old-haskell-snap/patches/rename-snap-binary	1970-01-01 00:00:00.000000000 +0000
+++ new-haskell-snap/patches/rename-snap-binary	2014-04-15 21:30:11.487119869 +0000
@@ -0,0 +1,73 @@
+Description: Rename snap binary
+ To avoid a conflict
+Author: Joachim Breitner <nomeata at debian.org>
+Bug-Debian: http://bugs.debian.org/741503
+Forwarded: not-needed
+
+--- haskell-snap-0.13.2.4.orig/snap.cabal
++++ haskell-snap-0.13.2.4/snap.cabal
+@@ -16,7 +16,7 @@ description:
+     @$ cabal install snap
+     $ mkdir myproject
+     $ cd myproject
+-    $ snap init@
++    $ snap-framework init@
+     .
+     If you have trouble or any questions, see our FAQ page
+     (<http://snapframework.com/faq>) or the documentation
+@@ -214,7 +214,7 @@ Library
+     ghc-options: -Wall -fwarn-tabs -funbox-strict-fields -O2
+                  -fno-warn-orphans
+ 
+-Executable snap
++Executable snap-framework
+   hs-source-dirs: src
+   main-is: Snap/Starter.hs
+ 
+--- haskell-snap-0.13.2.4.orig/src/Snap/Starter.hs
++++ haskell-snap-0.13.2.4/src/Snap/Starter.hs
+@@ -30,7 +30,7 @@ usage = unlines
+     , ""
+     , "Usage:"
+     , ""
+-    , "  snap <action>"
++    , "  snap-framework <action>"
+     , ""
+     , "    <action> can be one of:"
+     , "      init - create a new project directory structure in the " ++
+@@ -48,7 +48,7 @@ initUsage = unlines
+     , ""
+     , "Usage:"
+     , ""
+-    , "  snap init [type]"
++    , "  snap-framework init [type]"
+     , ""
+     , "    [type] can be one of:"
+     , "      default   - A default project using snaplets and heist"
+--- haskell-snap-0.13.2.4.orig/test/suite/Snap/TestCommon.hs
++++ haskell-snap-0.13.2.4/test/suite/Snap/TestCommon.hs
+@@ -35,7 +35,7 @@ import SafeCWD
+ 
+ ------------------------------------------------------------------------------
+ testGeneratedProject :: String  -- ^ project name and directory
+-                     -> String  -- ^ arguments to @snap init@
++                     -> String  -- ^ arguments to @snap-framework init@
+                      -> String  -- ^ arguments to @cabal install@
+                      -> Int     -- ^ port to run http server on
+                      -> IO ()   -- ^ action to run when the server goes up
+@@ -94,11 +94,11 @@ testGeneratedProject projName snapInitAr
+         findSnap = do
+             home <- fromEnv "HOME" "."
+             p1   <- gimmeIfExists $ snapRoot </> "dist" </> "build"
+-                                             </> "snap" </> "snap"
+-            p2   <- gimmeIfExists $ home </> ".cabal" </> "bin" </> "snap"
+-            p3   <- findExecutable "snap"
++                                             </> "snap-framework" </> "snap-framework"
++            p2   <- gimmeIfExists $ home </> ".cabal" </> "bin" </> "snap-framework"
++            p3   <- findExecutable "snap-framework"
+ 
+-            return $ fromMaybe (error "couldn't find snap executable")
++            return $ fromMaybe (error "couldn't find snap-framework executable")
+                                (getFirst $ mconcat $ map First [p1,p2,p3])
+ 
+     --------------------------------------------------------------------------
diff -rN -u old-haskell-snap/patches/series new-haskell-snap/patches/series
--- old-haskell-snap/patches/series	1970-01-01 00:00:00.000000000 +0000
+++ new-haskell-snap/patches/series	2014-04-15 21:30:11.487119869 +0000
@@ -0,0 +1 @@
+rename-snap-binary




More information about the Pkg-haskell-commits mailing list