diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2010-07-24 18:46:48 +0000 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2010-07-24 18:46:48 +0000 |
commit | 808ba34d78e54899886955acbd5406869a51eaf8 (patch) | |
tree | 8d5a247edcef6f60ca07e27de0dbabbba4a51874 /dev-haskell | |
parent | Parallel build fix (diff) | |
download | gentoo-2-808ba34d78e54899886955acbd5406869a51eaf8.tar.gz gentoo-2-808ba34d78e54899886955acbd5406869a51eaf8.tar.bz2 gentoo-2-808ba34d78e54899886955acbd5406869a51eaf8.zip |
Version bump. Marked ~alpha and ~ia64. Removed old versions.
(Portage version: 2.1.8.3/cvs/Linux x86_64)
Diffstat (limited to 'dev-haskell')
-rw-r--r-- | dev-haskell/hscolour/ChangeLog | 11 | ||||
-rw-r--r-- | dev-haskell/hscolour/files/hscolour-0.15-utf8-aware.diff | 121 | ||||
-rw-r--r-- | dev-haskell/hscolour/hscolour-1.15.ebuild | 29 | ||||
-rw-r--r-- | dev-haskell/hscolour/hscolour-1.17.ebuild (renamed from dev-haskell/hscolour/hscolour-1.12.ebuild) | 18 | ||||
-rw-r--r-- | dev-haskell/hscolour/hscolour-1.8.ebuild | 40 |
5 files changed, 14 insertions, 205 deletions
diff --git a/dev-haskell/hscolour/ChangeLog b/dev-haskell/hscolour/ChangeLog index a2dc4cf39689..ce4b388f5ab9 100644 --- a/dev-haskell/hscolour/ChangeLog +++ b/dev-haskell/hscolour/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for dev-haskell/hscolour -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-haskell/hscolour/ChangeLog,v 1.4 2009/12/15 22:55:23 kolmodin Exp $ +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-haskell/hscolour/ChangeLog,v 1.5 2010/07/24 18:46:47 slyfox Exp $ + +*hscolour-1.17 (24 Jul 2010) + + 24 Jul 2010; Sergei Trofimovich <slyfox@gentoo.org> + -files/hscolour-0.15-utf8-aware.diff, -hscolour-1.8.ebuild, + -hscolour-1.12.ebuild, -hscolour-1.15.ebuild, +hscolour-1.17.ebuild: + Version bump. Marked ~alpha and ~ia64. Removed old versions. *hscolour-1.15 (15 Dec 2009) diff --git a/dev-haskell/hscolour/files/hscolour-0.15-utf8-aware.diff b/dev-haskell/hscolour/files/hscolour-0.15-utf8-aware.diff deleted file mode 100644 index c0187e0aa6f1..000000000000 --- a/dev-haskell/hscolour/files/hscolour-0.15-utf8-aware.diff +++ /dev/null @@ -1,121 +0,0 @@ -Tue Dec 1 19:30:23 EET 2009 Sergei Trofimovich <slyfox@inbox.ru> - * add UTF8 I/O when built against ghc6.12+ - - This patch fixes following usecase: - NONASCII-utf8-rich-project: LANG=C cabal hscolour - (realworld example!) - - By default ghc presumes locale I/O and breaks horribly. - This patch switches to explicit UTF8 when deals with files. -Mon Nov 30 13:47:23 EET 2009 Sergei Trofimovich <slyfox@inbox.ru> - * Print newline when output usage banner. -Mon Nov 30 12:35:39 EET 2009 Sergei Trofimovich <slyfox@inbox.ru> - * Use Cabal instead of hardcoding version info (stolen from highlighting-kate) -diff -rN -u old-hscolour/hscolour.cabal new-hscolour/hscolour.cabal ---- old-hscolour/hscolour.cabal 2009-12-01 19:41:01.145689639 +0200 -+++ new-hscolour/hscolour.cabal 2009-12-01 19:41:01.155689306 +0200 -@@ -6,6 +6,7 @@ - Homepage: http://www.cs.york.ac.uk/fp/darcs/hscolour/ - License: GPL - License-file: LICENCE-GPL -+Cabal-Version: >= 1.6 - Build-depends: haskell98, base < 10 - Extensions: - Synopsis: Colourise Haskell code. -@@ -35,6 +36,9 @@ - Language.Haskell.HsColour.Options - Language.Haskell.HsColour.Output - Language.Haskell.HsColour.TTY -+Other-Modules: -+ Paths_hscolour -+ Util - data-files: hscolour.css - --ghc-options: -O -W - Build-Type: Simple -diff -rN -u old-hscolour/HsColour.hs new-hscolour/HsColour.hs ---- old-hscolour/HsColour.hs 2009-12-01 19:41:01.145689639 +0200 -+++ new-hscolour/HsColour.hs 2009-12-01 19:41:01.148689183 +0200 -@@ -6,11 +6,17 @@ - import Language.Haskell.HsColour.Options - import System - import IO -+import System.IO (withFile) - import Monad (when) - import List (intersperse, isSuffixOf) - import Debug.Trace - --version = "1.15" -+import Util (set_utf8_io_enc) -+ -+import Data.Version (showVersion) -+import qualified Paths_hscolour (version) -+ -+version = showVersion Paths_hscolour.version - - optionTable :: [(String,Option)] - optionTable = [ ("help", Help) -@@ -68,27 +74,43 @@ - ioWrapper (HSColour.hscolour output pref anchors partial title) - - where -+ -- -+ -- Implement follow such I/O codepage rules: -+ -- FILE I(unput) / O(utput) is in UTF8 -+ -- TTY I(unput) / O(utput) is in locale -+ -- (may have problems with HsColour IFILE >OFILE, as it differs from HsColour IFILE -oOFILE) -+ -- TTY stderr is alwais in locale (always used for user interaction) -+ -- -+ -- Some common use cases: -+ -- File I / FILE O (HsColour -css -anchor -oOFILE IFILE) : are both always done in UTF8 mode (cabal hscolour mode) -+ -- File I / TTY O (HsColour IFILE) : file is read in UTF-8 written in locale -+ -- TTY I / TTY O (HsColour) : stdin/stdout are both in locale -+ -+ -- fully mimic Prelude analogues -+ writeUTF8File f txt = withFile f WriteMode (\hdl -> set_utf8_io_enc hdl >> hPutStr hdl txt) -+ readUTF8File name = openFile name ReadMode >>= set_utf8_io_enc >>= hGetContents -+ - writeResult outF s = do if null outF then putStr s -- else writeFile (last outF) s -+ else writeUTF8File (last outF) s - exitSuccess - fileInteract out inFs u = do h <- case out of - [] -> return stdout -- [outF] -> openFile outF WriteMode -+ [outF] -> openFile outF WriteMode >>= set_utf8_io_enc - mapM_ (\ (f,lit)-> -- readFile f >>= hPutStr h . u lit) -+ readUTF8File f >>= hPutStr h . u lit) - inFs - hClose h - ttyInteract [] lit u = do hSetBuffering stdout NoBuffering - Prelude.interact (u lit) - ttyInteract [outF] lit u = do c <- hGetContents stdin -- writeFile outF (u lit c) -+ writeUTF8File outF (u lit c) - exitSuccess = exitWith ExitSuccess - errorOut s = hPutStrLn stderr s >> hFlush stderr >> exitFailure - usage prog = "Usage: "++prog - ++" options [file.hs]\n where\n options = [ " - ++ (indent 15 . unwords . width 58 58 . intersperse "|" - . ("-oOUTPUT":) -- . map (('-':) . fst)) optionTable ++ " ]" -+ . map (('-':) . fst)) optionTable ++ " ]\n" - useDefault d f list | null list = d - | otherwise = f (head list) - useDefaults d f list | null list = d -diff -rN -u old-hscolour/Util.hs new-hscolour/Util.hs ---- old-hscolour/Util.hs 1970-01-01 03:00:00.000000000 +0300 -+++ new-hscolour/Util.hs 2009-12-01 19:41:01.153688353 +0200 -@@ -0,0 +1,12 @@ -+{-# LANGUAGE CPP #-} -+ -+module Util where -+ -+import System.IO -+ -+set_utf8_io_enc :: Handle -> IO Handle -+set_utf8_io_enc h = -+#if MIN_VERSION_base(4,2,0) -+ hSetEncoding h utf8 >> -+#endif -+ return h diff --git a/dev-haskell/hscolour/hscolour-1.15.ebuild b/dev-haskell/hscolour/hscolour-1.15.ebuild deleted file mode 100644 index e1393f1baa4f..000000000000 --- a/dev-haskell/hscolour/hscolour-1.15.ebuild +++ /dev/null @@ -1,29 +0,0 @@ -# Copyright 1999-2009 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-haskell/hscolour/hscolour-1.15.ebuild,v 1.1 2009/12/15 22:55:23 kolmodin Exp $ - -CABAL_FEATURES="bin lib profile haddock" -inherit base haskell-cabal - -DESCRIPTION="Colourise Haskell code." -HOMEPAGE="http://www.cs.york.ac.uk/fp/darcs/hscolour/" -SRC_URI="http://hackage.haskell.org/packages/archive/${PN}/${PV}/${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~sparc ~x86" -IUSE="" - -RDEPEND=">=dev-lang/ghc-6.6.1" -DEPEND="${RDEPEND} - >=dev-haskell/cabal-1.6" - -PATCHES=("${FILESDIR}/hscolour-0.15-utf8-aware.diff") - -src_install() { - cabal_src_install - if use doc; then - dohtml index.html hscolour.css - dodoc README - fi -} diff --git a/dev-haskell/hscolour/hscolour-1.12.ebuild b/dev-haskell/hscolour/hscolour-1.17.ebuild index 60c1ea08c3ca..7aefee39f11d 100644 --- a/dev-haskell/hscolour/hscolour-1.12.ebuild +++ b/dev-haskell/hscolour/hscolour-1.17.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2009 Gentoo Foundation +# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-haskell/hscolour/hscolour-1.12.ebuild,v 1.1 2009/02/07 12:26:13 kolmodin Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-haskell/hscolour/hscolour-1.17.ebuild,v 1.1 2010/07/24 18:46:47 slyfox Exp $ CABAL_FEATURES="bin lib profile haddock" -inherit haskell-cabal +inherit base haskell-cabal DESCRIPTION="Colourise Haskell code." HOMEPAGE="http://www.cs.york.ac.uk/fp/darcs/hscolour/" @@ -11,16 +11,8 @@ SRC_URI="http://hackage.haskell.org/packages/archive/${PN}/${PV}/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" -KEYWORDS="~amd64 ~sparc ~x86" +KEYWORDS="~alpha ~amd64 ~ia64 ~ppc64 ~sparc ~x86" IUSE="" DEPEND=">=dev-lang/ghc-6.6.1 - dev-haskell/cabal" - -src_install() { - cabal_src_install - if use doc; then - dohtml index.html hscolour.css - dodoc README - fi -} + >=dev-haskell/cabal-1.6" diff --git a/dev-haskell/hscolour/hscolour-1.8.ebuild b/dev-haskell/hscolour/hscolour-1.8.ebuild deleted file mode 100644 index dae08d34a12f..000000000000 --- a/dev-haskell/hscolour/hscolour-1.8.ebuild +++ /dev/null @@ -1,40 +0,0 @@ -# Copyright 1999-2007 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-haskell/hscolour/hscolour-1.8.ebuild,v 1.2 2007/12/15 16:32:32 dcoutts Exp $ - -CABAL_FEATURES="bin lib profile haddock" -inherit haskell-cabal - -DESCRIPTION="Colourise Haskell code" -HOMEPAGE="http://www.cs.york.ac.uk/fp/darcs/hscolour/" -SRC_URI="ftp://ftp.cs.york.ac.uk/pub/haskell/contrib/${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~sparc ~x86" -IUSE="" - -DEPEND="dev-lang/ghc" -RDEPEND="" - -src_unpack() { - unpack "${A}" - - # Fix for a haddock parse error, hopefully fixed after version 1.8 - sed -i -e 's|document/fragment|document\\/fragment|' \ - "${S}/Language/Haskell/HsColour/LaTeX.hs" - - # Correct version number. Doh! - sed -i -e 's|version = "1.7"|version = "1.8"|' "${S}/HsColour.hs" - - # Lower -O2 to -O - sed -i -e 's/-O2/-O/' "${S}/hscolour.cabal" -} - -src_install() { - cabal_src_install - if use doc; then - dohtml index.html hscolour.css - dodoc README - fi -} |