| 1 | Tue Mar 24 15:34:04 CET 2009 Christian Kellermann <Christian.Kellermann@nefkom.net> |
|---|
| 2 | * convert extra dirs flags to readline flags for configure explicitly |
|---|
| 3 | |
|---|
| 4 | New patches: |
|---|
| 5 | |
|---|
| 6 | [convert extra dirs flags to readline flags for configure explicitly |
|---|
| 7 | Christian Kellermann <Christian.Kellermann@nefkom.net>**20090324143404 |
|---|
| 8 | Ignore-this: 8bc5abe2866b3e74ea2aeca92be7296a |
|---|
| 9 | ] { |
|---|
| 10 | hunk ./Setup.hs 3 |
|---|
| 11 | module Main (main) where |
|---|
| 12 | |
|---|
| 13 | +import Distribution.PackageDescription |
|---|
| 14 | import Distribution.Simple |
|---|
| 15 | hunk ./Setup.hs 5 |
|---|
| 16 | +import Distribution.Simple.Configure |
|---|
| 17 | +import Distribution.Simple.Command |
|---|
| 18 | +import Distribution.Simple.LocalBuildInfo |
|---|
| 19 | +import Distribution.Simple.Setup |
|---|
| 20 | +import Distribution.Simple.Utils |
|---|
| 21 | +import System.Directory |
|---|
| 22 | +import System.FilePath |
|---|
| 23 | + |
|---|
| 24 | +readLineConf :: (Either GenericPackageDescription PackageDescription, HookedBuildInfo) -> ConfigFlags -> IO LocalBuildInfo |
|---|
| 25 | +readLineConf args@(desc, buildinfo) flags |
|---|
| 26 | + = do let verbosity = fromFlag (configVerbosity flags) |
|---|
| 27 | + readLineLib = "--with-readline-libraries=" ++ joinPath (configExtraLibDirs flags) |
|---|
| 28 | + readLineInc = "--with-readline-includes=" ++ joinPath (configExtraIncludeDirs flags) |
|---|
| 29 | + confargs = (configureArgs True flags) ++ [readLineLib] ++ [readLineInc] |
|---|
| 30 | + confExists <- doesFileExist "configure" |
|---|
| 31 | + if confExists |
|---|
| 32 | + then rawSystemExit verbosity "sh" $ |
|---|
| 33 | + "configure" |
|---|
| 34 | + : confargs |
|---|
| 35 | + else die "configure script not found." |
|---|
| 36 | + configure args flags |
|---|
| 37 | + |
|---|
| 38 | |
|---|
| 39 | main :: IO () |
|---|
| 40 | hunk ./Setup.hs 29 |
|---|
| 41 | -main = defaultMainWithHooks defaultUserHooks |
|---|
| 42 | +main = defaultMainWithHooks $ simpleUserHooks { confHook = readLineConf } |
|---|
| 43 | hunk ./readline.cabal 17 |
|---|
| 44 | extra-tmp-files: |
|---|
| 45 | config.log config.status autom4te.cache |
|---|
| 46 | readline.buildinfo include/HsReadlineConfig.h |
|---|
| 47 | -build-type: Configure |
|---|
| 48 | +build-type: Custom |
|---|
| 49 | cabal-version: >=1.2 |
|---|
| 50 | |
|---|
| 51 | flag split-base |
|---|
| 52 | } |
|---|
| 53 | |
|---|
| 54 | Context: |
|---|
| 55 | |
|---|
| 56 | [TAG GHC 6.8.3 release |
|---|
| 57 | Ian Lynagh <igloo@earth.li>**20080619124351] |
|---|
| 58 | [Fix haddock docs for readHistory and writeHistory; spotted by Krasimir Angelov |
|---|
| 59 | Ian Lynagh <igloo@earth.li>**20080612142547] |
|---|
| 60 | [Fix building with old haddock versions: escape '/'s |
|---|
| 61 | Ian Lynagh <igloo@earth.li>**20080304230655] |
|---|
| 62 | [#2053: Make readHistory/writeHistory return a Bool instead of throwing an exception on failure. |
|---|
| 63 | judah.jacobson@gmail.com**20080226233929] |
|---|
| 64 | [#2053: add additional history functions |
|---|
| 65 | alexander.dunlap@gmail.com**20080122050536 |
|---|
| 66 | The following functions were added: readHistory, writeHistory, appendHistory, historyTruncateFile, clearHistory, stifleHistory, unstifleHistory, historyIsStifled, historyMaxEntries |
|---|
| 67 | ] |
|---|
| 68 | [markup for URL |
|---|
| 69 | Ross Paterson <ross@soi.city.ac.uk>**20071107005425] |
|---|
| 70 | [remove obsolete config.mk.in |
|---|
| 71 | Ross Paterson <ross@soi.city.ac.uk>**20071107005850 |
|---|
| 72 | |
|---|
| 73 | This was used when building in the GHC tree using the old fptools build |
|---|
| 74 | system, to pass parameters from configure to the Makefile. With the new |
|---|
| 75 | Cabal-based build system, they go via readline.buildinfo. |
|---|
| 76 | ] |
|---|
| 77 | [FIX: fix name of include file in sdist |
|---|
| 78 | Ross Paterson <ross@soi.city.ac.uk>**20071103163724] |
|---|
| 79 | [Fix test for whether readline is really editline to work for MacOS 10.5 |
|---|
| 80 | Manuel M T Chakravarty <chak@cse.unsw.edu.au>**20071031105453] |
|---|
| 81 | [Use configurations to allow building with older ghc & base lib |
|---|
| 82 | Duncan Coutts <duncan@haskell.org>**20071018111417 |
|---|
| 83 | Also specify build-type and cabal-version |
|---|
| 84 | ] |
|---|
| 85 | [bump the version number |
|---|
| 86 | Ian Lynagh <igloo@earth.li>**20071014105053] |
|---|
| 87 | [Add interface for rl_completion_word_break_hook (version 5.0 or higher). |
|---|
| 88 | judah.jacobson@gmail.com**20070211231618] |
|---|
| 89 | [Add get/set functions for the rl_attempted_completion_over variable. |
|---|
| 90 | judah.jacobson@gmail.com**20070211230806] |
|---|
| 91 | [Add HsReadlineConfig.h to install-includes |
|---|
| 92 | Ian Lynagh <igloo@earth.li>**20070925214115 |
|---|
| 93 | Patch from Audrey Tang |
|---|
| 94 | ] |
|---|
| 95 | [clean config.mk |
|---|
| 96 | Simon Marlow <simonmar@microsoft.com>**20070914140737] |
|---|
| 97 | [Add more entries to boring file |
|---|
| 98 | Ian Lynagh <igloo@earth.li>**20070913210720] |
|---|
| 99 | [Add a boring file |
|---|
| 100 | Ian Lynagh <igloo@earth.li>**20070913204656] |
|---|
| 101 | [TAG ghc-6.8 branched 2007-09-03 |
|---|
| 102 | Ian Lynagh <igloo@earth.li>**20070903155838] |
|---|
| 103 | [Link against GNUreadline.framework, if it's available. |
|---|
| 104 | judah.jacobson@gmail.com**20070906052628 |
|---|
| 105 | This can be overridden by setting --with-readline-includes or |
|---|
| 106 | --with-readline-libraries. |
|---|
| 107 | ] |
|---|
| 108 | [Remove redundant include/Makefile |
|---|
| 109 | Ian Lynagh <igloo@earth.li>**20070828205711] |
|---|
| 110 | [Call the license LICENSE rather than COPYING for consistency |
|---|
| 111 | Ian Lynagh <igloo@earth.li>**20070828130747] |
|---|
| 112 | [added a bit of documentation to the readline library |
|---|
| 113 | ijones@syntaxpolice.org**20070819083106] |
|---|
| 114 | [--configure-option and --ghc-option are now provided by Cabal |
|---|
| 115 | Ross Paterson <ross@soi.city.ac.uk>**20070604115727] |
|---|
| 116 | [Remove Makefile and package.conf.in (used in the old build system) |
|---|
| 117 | Ian Lynagh <igloo@earth.li>**20070524142629] |
|---|
| 118 | [Remove unnecessary "import Prelude hiding (catch)" |
|---|
| 119 | Ian Lynagh <igloo@earth.li>**20070523222119] |
|---|
| 120 | [We now depend on process |
|---|
| 121 | Ian Lynagh <igloo@earth.li>**20070523181523] |
|---|
| 122 | [add install-includes: field |
|---|
| 123 | Simon Marlow <simonmar@microsoft.com>**20070517095014] |
|---|
| 124 | [Make the Cabal build system honour configure flags |
|---|
| 125 | Roman Leshchinskiy <rl@cse.unsw.edu.au>**20070504042130 |
|---|
| 126 | |
|---|
| 127 | The Cabal build system was ignoring --with-readline-includes and |
|---|
| 128 | --with-readline-libraries. |
|---|
| 129 | ] |
|---|
| 130 | [Make configure fail if the package is not buildable |
|---|
| 131 | Ian Lynagh <igloo@earth.li>**20070430190918] |
|---|
| 132 | [Follow Cabal changes in Setup.hs |
|---|
| 133 | Ian Lynagh <igloo@earth.li>**20070418114443] |
|---|
| 134 | [readline no longer needs to hide build failure |
|---|
| 135 | Ian Lynagh <igloo@earth.li>**20070415215805 |
|---|
| 136 | The GHC build system now copes with it itself. |
|---|
| 137 | ] |
|---|
| 138 | [Fix configure with no --with-cc |
|---|
| 139 | Ian Lynagh <igloo@earth.li>**20070415194819] |
|---|
| 140 | [Fix -Wall warnings |
|---|
| 141 | Ian Lynagh <igloo@earth.li>**20070411005013] |
|---|
| 142 | [Add missing case in removePrefix |
|---|
| 143 | Ian Lynagh <igloo@earth.li>**20070411002555] |
|---|
| 144 | [Pass configure opts down to ./configure, and add a nasty hack not to fail |
|---|
| 145 | Ian Lynagh <igloo@earth.li>**20070406182410 |
|---|
| 146 | If readline doesn't build then we still want to build the rest of GHC. |
|---|
| 147 | For now readline simply ignores any failure when asked to build, but we |
|---|
| 148 | really need to do something better here! |
|---|
| 149 | ] |
|---|
| 150 | [parse (but don't pass on) options for ./configure |
|---|
| 151 | Ian Lynagh <igloo@earth.li>**20070406153705] |
|---|
| 152 | [Make syntax in .cabal file haddock-friendly |
|---|
| 153 | Ian Lynagh <igloo@earth.li>**20070308163504] |
|---|
| 154 | [make Setup suitable for building the libraries with GHC |
|---|
| 155 | Ian Lynagh <igloo@earth.li>**20061112214707] |
|---|
| 156 | [Match the types in the C source, not the documentation |
|---|
| 157 | Ian Lynagh <igloo@earth.li>**20070404122733] |
|---|
| 158 | [Fix C/Haskell type mismatch |
|---|
| 159 | Ian Lynagh <igloo@earth.li>**20070404003613] |
|---|
| 160 | [Give ld -Llibdir, not -Ilibdir |
|---|
| 161 | Ian Lynagh <igloo@earth.li>**20070305143239] |
|---|
| 162 | [copy/paste-o |
|---|
| 163 | Ian Lynagh <igloo@earth.li>**20070305141749] |
|---|
| 164 | [README about building from darcs |
|---|
| 165 | Ross Paterson <ross@soi.city.ac.uk>**20070218110201] |
|---|
| 166 | [TAG 6.6 release |
|---|
| 167 | Ian Lynagh <igloo@earth.li>**20061011124740] |
|---|
| 168 | [add boilerplate Setup.hs |
|---|
| 169 | Ross Paterson <ross@soi.city.ac.uk>**20060928231526] |
|---|
| 170 | [Typo (this is the readline, not unix, package) |
|---|
| 171 | Ian Lynagh <igloo@earth.li>**20060823144042] |
|---|
| 172 | [remove unnecessary #include "ghcconfig.h" |
|---|
| 173 | Ross Paterson <ross@soi.city.ac.uk>**20060809132127] |
|---|
| 174 | [Make the configure test robust against libedit |
|---|
| 175 | Simon Marlow <simonmar@microsoft.com>**20060706120654 |
|---|
| 176 | See #766 |
|---|
| 177 | Thanks to Greg Wright for the fix. |
|---|
| 178 | ] |
|---|
| 179 | [make a start on Cabalizing readline |
|---|
| 180 | Ross Paterson <ross@soi.city.ac.uk>**20060609161024] |
|---|
| 181 | [Move readline configuration into the readline package |
|---|
| 182 | Simon Marlow <simonmar@microsoft.com>**20060609135511 |
|---|
| 183 | |
|---|
| 184 | Configuration of the readline package is now done with a |
|---|
| 185 | package-private configure script, which takes it a step closer to |
|---|
| 186 | being a standalone Cabal package. |
|---|
| 187 | |
|---|
| 188 | At the same time I added --with-readline-includes and |
|---|
| 189 | --with-readline-libraries options to cater for systems where these |
|---|
| 190 | libraries live in non-std places. |
|---|
| 191 | |
|---|
| 192 | ] |
|---|
| 193 | [TAG Initial conversion from CVS complete |
|---|
| 194 | John Goerzen <jgoerzen@complete.org>**20060112154138] |
|---|
| 195 | Patch bundle hash: |
|---|
| 196 | f1938d8a02a4c1469dabb3a46fbf4b87f607c09d |
|---|