debian/0000755000000000000000000000000012237556554007204 5ustar debian/rules0000755000000000000000000000061712237556412010261 0ustar #!/usr/bin/make -f include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/hlibrary.mk DEB_SETUP_GHC_CONFIGURE_ARGS := --datasubdir=$(CABAL_PACKAGE) build/$(CABAL_PACKAGE) :: build-ghc-stamp install/$(CABAL_PACKAGE) :: build/$(CABAL_PACKAGE) $(DEB_SETUP_BIN_NAME) copy --builddir=dist-ghc --destdir=debian/$(CABAL_PACKAGE) rm -rf debian/$(CABAL_PACKAGE)/usr/share/doc debian/control0000644000000000000000000000451012237556470010604 0ustar Source: lambdabot Section: net Priority: optional Maintainer: Debian Haskell Group Uploaders: Clint Adams Build-Depends: debhelper (>= 9) , haskell-devscripts (>= 0.8.13) , cdbs , ghc , ghc-ghci , libghc-dependent-map-dev (>= 0.1) , libghc-dependent-map-dev (<< 0.2) , libghc-dependent-sum-dev (>= 0.2) , libghc-dependent-sum-dev (<< 0.3) , libghc-dependent-sum-template-dev (>= 0.0.0.1) , libghc-edit-distance-dev (>= 0.2) , libghc-haskeline-dev (>= 0.7) , libghc-src-exts-dev (>= 1.14.0) , libghc-hslogger-dev (>= 1.2.1) , libghc-http-dev (>= 1:4000) , libghc-lifted-base-dev (>= 0.2) , libghc-monad-control-dev (>= 0.3) , libghc-mtl-dev (>= 2) , libghc-network-dev (>= 2.3.0.13) , libghc-oeis-dev (>= 0.3.1) , libghc-parsec3-dev , libghc-quickcheck2-dev , libghc-random-dev (>= 1) , libghc-regex-tdfa-dev (>= 1.1) , libghc-safesemaphore-dev (>= 0.9) , libghc-show-dev (>= 0.4) , libghc-split-dev (>= 0.2) , libghc-syb-dev (>= 0.3) , libghc-tagsoup-dev (>= 0.12) , libghc-transformers-dev (>= 0.2) , libghc-transformers-base-dev (>= 0.4) , libghc-utf8-string-dev (>= 0.3) , libghc-zlib-dev (>= 0.5) , libghc-arrows-dev (>= 0.4) , libghc-brainfuck-dev (>= 0.1) , libghc-data-memocombinators-dev (>= 0.4) , libghc-hoogle-dev (>= 4.2) , libghc-iospec-dev (>= 0.2) , libghc-logict-dev (>= 0.5) , libghc-monadrandom-dev (>= 0.1) , libghc-mueval-dev (>= 0.9) , libghc-numbers-dev (>= 3000) , libghc-unlambda-dev (>= 0.1) , libghc-vector-space-dev (>= 0.8) Standards-Version: 3.9.5 Homepage: http://hackage.haskell.org/package/lambdabot Vcs-Browser: http://darcs.debian.org/cgi-bin/darcsweb.cgi?r=pkg-haskell/lambdabot Vcs-Darcs: http://darcs.debian.org/pkg-haskell/lambdabot Package: lambdabot Architecture: any Depends: ${haskell:Depends} , ${shlibs:Depends} , ${misc:Depends} Recommends: ${haskell:Recommends} , djinn Suggests: ${haskell:Suggests} , mueval , aspell , hoogle (>= 4.2.23) , hsbrainfuck , unlambda Provides: ${haskell:Provides} Description: Development tool and advanced IRC bot Lambdabot is an IRC bot written over several years by those on the #haskell IRC channel. . It operates as a command-line tool, embedded in an editor, embedded in GHCi, via Internet Relay Chat and on the Web. debian/copyright0000644000000000000000000000400712237556411011130 0ustar This package was debianized by Clint Adams on Thu, 02 Jun 2011 14:37:55 -0000 It was downloaded from http://hackage.haskell.org/package/lambdabot Upstream Authors: Don Stewart http://www.cse.unsw.edu.au/~dons Copyright: 2004, 2005, 2006 Don Stewart (Donald Bruce Stewart) 2003 Andrew J. Bromage 2003 Shae Erisson 2007 Lennart Kolmodin 2008 Twan van Laarhoven 2005 Einar Karttunen 2006 Jason Dagit 2005 Stefan Wehr 2006 Spencer Janssen 2004 Thomas Jaeger 2004, 2005 Simon Winwood 2005 David House License: Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. The files Plugin/Where.hs, Plugin/Fact.hs, and Plugin/Poll.hs are licensed under the LGPL (/usr/share/common-licenses/LGPL). The files Plugin/{Check.hs,Version.hs,Where.hs,Hoogle.hs,Spell.hs,Compose.hs,Code.hs,UnMtl.hs,Fact.hs,Dynamic.hs,Djinn.hs,BF.hs,DarcsPatchWatch.hs,Pretty.hs,Unlambda.hs,Undo.hs,Seen.hs,Scheck.hs,Babel.hs,Localtime.hs,Poll.hs,Eval.hs} are licensed under the GNU GPL, version 2 or later (/usr/share/common-licenses/GPL-2). debian/patches/0000755000000000000000000000000012237556412010624 5ustar debian/patches/series0000644000000000000000000000006212237556412012037 0ustar correct-bf-binary-name.patch disable-some-plugins debian/patches/correct-bf-binary-name.patch0000644000000000000000000000132412237556411016072 0ustar Description: In Debian the bf binary was renamed to hsbrainfuck. Forwarded: not-needed Author: Raúl Benencia --- a/src/Lambdabot/Config/Core.hs +++ b/src/Lambdabot/Config/Core.hs @@ -56,7 +56,7 @@ -- Program names/locations config "aspellBinary" [t| String |] [| "aspell" |] -config "bfBinary" [t| String |] [| "bf" |] +config "bfBinary" [t| String |] [| "hsbrainfuck" |] config "djinnBinary" [t| String |] [| "djinn" |] config "ghcBinary" [t| String |] [| "ghc" |] config "ghciBinary" [t| String |] [| "ghci" |] debian/patches/disable-some-plugins0000644000000000000000000001424312237556411014575 0ustar Description: Disable some plugins Not all plugins are very useful, and some pull in a lot of dependencies. Disable these. Also implement random in Lambdabot.Utils more naively. Author: Joachim Breitner --- a/lambdabot.cabal +++ b/lambdabot.cabal @@ -77,7 +77,7 @@ Lambdabot.Plugin.Check Lambdabot.Plugin.Check.ShowQ Lambdabot.Plugin.Compose - Lambdabot.Plugin.Dice + --Lambdabot.Plugin.Dice Lambdabot.Plugin.Dict Lambdabot.Plugin.Djinn Lambdabot.Plugin.Dummy @@ -98,20 +98,20 @@ Lambdabot.Plugin.Localtime Lambdabot.Plugin.Log Lambdabot.Plugin.More - Lambdabot.Plugin.Numberwang + --Lambdabot.Plugin.Numberwang Lambdabot.Plugin.OEIS Lambdabot.Plugin.OfflineRC Lambdabot.Plugin.Pl Lambdabot.Plugin.Pointful Lambdabot.Plugin.Poll Lambdabot.Plugin.Pretty - Lambdabot.Plugin.Quote + --Lambdabot.Plugin.Quote Lambdabot.Plugin.Search Lambdabot.Plugin.Seen Lambdabot.Plugin.Slap Lambdabot.Plugin.Source Lambdabot.Plugin.Spell - Lambdabot.Plugin.Stats + --Lambdabot.Plugin.Stats Lambdabot.Plugin.System Lambdabot.Plugin.Tell Lambdabot.Plugin.Ticker @@ -161,17 +161,17 @@ dependent-map == 0.1.*, dependent-sum == 0.2.*, dependent-sum-template >= 0.0.0.1, - dice >= 0.1, + --dice >= 0.1, directory >= 1.1, edit-distance >= 0.2, filepath >= 1.3, haskeline >= 0.7, haskell-src-exts >= 1.14.0, - hstatsd >= 0.1, + --hstatsd >= 0.1, hslogger >= 1.2.1, HTTP >= 4000, lifted-base >= 0.2, - misfortune >= 0.1, + --misfortune >= 0.1, monad-control >= 0.3, mtl >= 2, network >= 2.3.0.13, @@ -182,8 +182,8 @@ process >= 1.1, QuickCheck >= 2, random >= 1, - random-fu >= 0.2, - random-source >= 0.3, + --random-fu >= 0.2, + --random-source >= 0.3, regex-tdfa >= 1.1, SafeSemaphore >= 0.9, show >= 0.4, --- a/main/Modules.hs +++ b/main/Modules.hs @@ -12,7 +12,7 @@ import Lambdabot.Plugin.BF import Lambdabot.Plugin.Check import Lambdabot.Plugin.Compose -import Lambdabot.Plugin.Dice +--import Lambdabot.Plugin.Dice import Lambdabot.Plugin.Dict import Lambdabot.Plugin.Djinn import Lambdabot.Plugin.Dummy @@ -35,7 +35,7 @@ import Lambdabot.Plugin.Pointful import Lambdabot.Plugin.Poll import Lambdabot.Plugin.Pretty -import Lambdabot.Plugin.Quote +--import Lambdabot.Plugin.Quote import Lambdabot.Plugin.Search import Lambdabot.Plugin.Seen import Lambdabot.Plugin.Slap @@ -68,7 +68,7 @@ , "bfPlugin" , "checkPlugin" , "composePlugin" - , "dicePlugin" + --, "dicePlugin" , "dictPlugin" , "djinnPlugin" , "dummyPlugin" @@ -90,7 +90,7 @@ , "pointfulPlugin" , "pollPlugin" , "prettyPlugin" - , "quotePlugin" + --, "quotePlugin" , "searchPlugin" , "seenPlugin" , "slapPlugin" --- a/src/Lambdabot.hs +++ b/src/Lambdabot.hs @@ -39,7 +39,7 @@ import Control.Monad.Reader import Control.Monad.State import qualified Data.Map as M -import Data.Random.Source +--import Data.Random.Source import qualified Data.Set as S ------------------------------------------------------------------------ @@ -173,15 +173,3 @@ ircPrivmsg' who msg = send $ privmsg who msg ------------------------------------------------------------------------ - -monadRandom [d| - - instance MonadRandom LB where - getRandomWord8 = LB (lift getRandomWord8) - getRandomWord16 = LB (lift getRandomWord16) - getRandomWord32 = LB (lift getRandomWord32) - getRandomWord64 = LB (lift getRandomWord64) - getRandomDouble = LB (lift getRandomDouble) - getRandomNByteInteger n = LB (lift (getRandomNByteInteger n)) - - |] --- a/src/Lambdabot/Util.hs +++ b/src/Lambdabot/Util.hs @@ -24,7 +24,7 @@ import Control.Monad.Trans import Data.Char import Data.List -import Data.Random +import System.Random (randomRIO) ------------------------------------------------------------------------ @@ -57,7 +57,10 @@ -- | Pick a random element of the list. random :: MonadIO m => [a] -> m a -random = io . sample . randomElement +random = io . pick + where + pick :: [a] -> IO a + pick xs = randomRIO (0, length xs - 1) >>= return . (xs !!) ------------------------------------------------------------------------ debian/changelog0000644000000000000000000000321612237556553011057 0ustar lambdabot (4.3.0.1-1) unstable; urgency=low [ Joachim Breitner ] * Depend on haskell-devscripts 0.8.13 to ensure this package is built against experimental * Bump standards version, no change * New upstream release * Enable compat level 9 [ Colin Watson ] * Build-depend on ghc-ghci, due to use of Template Haskell. [ Joachim Breitner ] * Disable some plugins that have a bad dependency-to-usefulness ratio (Dice, Quote, Numberwang, Stats) * Adjust watch file to new hackage layout [ Raúl Benencia ] * New upstream release * Update disable-some-plugins patch in order for it to work with the new upstream release * Depend on libghc-src-exts-dev (>= 1.14.0) * Add plugins packages to Suggest and Recommends * Rename bf binary name to match the one provided by hsbrainfuck package -- Clint Adams Sat, 09 Nov 2013 20:12:07 -0500 lambdabot (4.2.3.2-4) unstable; urgency=low * Build-Depend on cdbs to make lintian (and dak) happy, although haskell-devscripts does depend on cdbs. -- Joachim Breitner Sun, 11 Mar 2012 17:57:32 +0100 lambdabot (4.2.3.2-3) unstable; urgency=low * patches/use-FlexibleInstances: GHC 7.4.1 compatibility * Redo debian/rules to use hlibrary.mk -- Joachim Breitner Sun, 11 Mar 2012 16:28:15 +0100 lambdabot (4.2.3.2-2) unstable; urgency=low * Change fptools path. * Change maintainer to Debian Haskell Group. -- Clint Adams Sat, 01 Oct 2011 17:04:47 -0400 lambdabot (4.2.3.2-1) unstable; urgency=low * Initial release. -- Clint Adams Thu, 02 Jun 2011 10:37:55 -0400 debian/source/0000755000000000000000000000000012237556412010475 5ustar debian/source/format0000644000000000000000000000001412237556412011703 0ustar 3.0 (quilt) debian/watch0000644000000000000000000000017712237556412010233 0ustar version=3 http://hackage.haskell.org/package/lambdabot/distro-monitor .*-([0-9\.]+).(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))