Tweak the sed command so that it works on OSX
[ghc.git] / packages
index c5b166f..9fc8a32 100644 (file)
--- a/packages
+++ b/packages
@@ -1,45 +1,85 @@
-# Note that when adding libraries to this file, you also need to add
+# Despite the name "package", this file contains the master list of 
+# the *repositories* that make up GHC. It is parsed by
+# * boot
+# * sync-all
+# * rules/extra-packages.mk
+#
+# Some of this information is duplicated elsewhere in the build system:
+#    See Trac #3896
+# In particular when adding libraries to this file, you also need to add
 # the library to the SUBDIRS variable in libraries/Makefile so that they
 # actually get built
-.                                       ghc                             git
-utils/hsc2hs                            hsc2hs                          darcs
-libraries/array                         packages/array                  darcs
-libraries/base                          packages/base                   darcs
-libraries/base3-compat                  packages/base3-compat           darcs
-libraries/bytestring                    packages/bytestring             darcs
-libraries/Cabal                         packages/Cabal                  darcs
-libraries/containers                    packages/containers             darcs
-libraries/directory                     packages/directory              darcs
-libraries/editline                      packages/editline               darcs
-libraries/filepath                      packages/filepath               darcs
-libraries/ghc-prim                      packages/ghc-prim               darcs
-libraries/haskell98                     packages/haskell98              darcs
-libraries/hpc                           packages/hpc                    darcs
-libraries/integer-gmp                   packages/integer-gmp            darcs
-libraries/old-locale                    packages/old-locale             darcs
-libraries/old-time                      packages/old-time               darcs
-libraries/packedstring                  packages/packedstring           darcs
-libraries/pretty                        packages/pretty                 darcs
-libraries/process                       packages/process                darcs
-libraries/random                        packages/random                 darcs
-libraries/st                            packages/st                     darcs
-libraries/template-haskell              packages/template-haskell       darcs
-libraries/unix                          packages/unix                   darcs
-libraries/Win32                         packages/Win32                  darcs
-libraries/HUnit             extralibs   packages/HUnit                  darcs
-libraries/QuickCheck        extralibs   packages/QuickCheck             darcs
-libraries/haskell-src       extralibs   packages/haskell-src            darcs
-libraries/html              extralibs   packages/html                   darcs
-libraries/mtl               extralibs   packages/mtl                    darcs
-libraries/network           extralibs   packages/network                darcs
-libraries/parsec            extralibs   packages/parsec                 darcs
-libraries/parallel          extralibs   packages/parallel               darcs
-libraries/regex-base        extralibs   packages/regex-base             darcs
-libraries/regex-compat      extralibs   packages/regex-compat           darcs
-libraries/regex-posix       extralibs   packages/regex-posix            darcs
-libraries/stm               extralibs   packages/stm                    darcs
-libraries/time              extralibs   packages/time                   darcs
-libraries/xhtml             extralibs   packages/xhtml                  darcs
-libraries/dph               dph         packages/dph                    darcs
-testsuite                   testsuite   testsuite                       darcs
-nofib                       nofib       nofib                           darcs
+#
+# The repos are of several kinds:
+#    - The main GHC source repo
+#    - Each boot package lives in a repo
+#    - DPH is a repo that contains several packages
+#    - Haddock and hsc2hs are applications, built on top of GHC, 
+#        and in turn needed to bootstrap GHC
+#    - ghc-tarballs is need to build GHC
+#    - nofib and testsuite are optional helpers
+#
+# The format of the lines in this file is:
+#   localpath    tag    remotepath    VCS
+# where
+#   * 'localpath' is where to put the repository in a checked out tree.
+#   * 'remotepath' is where the repository is in the central repository.
+#     It is - for submodules.
+#   * 'VCS' is what version control system the repo uses.
+#
+#   * The 'tag' determines when "darcs-all get" will get the
+#     repo. If the tag is "-" then it will always get it, but if there
+#     is a tag then a corresponding flag must be given to darcs-all, e.g.
+#     if you want to get the packages with an "extralibs" or "testsuite"
+#     tag then you need to use "darcs-all --extra --testsuite get".
+#     Support for new tags must be manually added to the darcs-all script.
+# 
+#     'tag' is also used to determine which packages the build system
+#     deems to have the EXTRA_PACKAGE property: tags 'dph' and 'extra' 
+#     both give this property
+#
+# Lines that start with a '#' are comments.
+#
+# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+#    localpath                tag           remotepath                          VCS
+# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ghc-tarballs                    -           ghc-tarballs.git                    git
+utils/hsc2hs                    -           hsc2hs.git                          git
+utils/haddock                   -           haddock.git                         git
+libraries/array                 -           packages/array.git                  git
+libraries/base                  -           packages/base.git                   git
+libraries/binary                -           -                                   git
+libraries/bytestring            -           -                                   git
+libraries/Cabal                 -           -                                   git
+libraries/containers            -           -                                   git
+libraries/deepseq               -           packages/deepseq.git                git
+libraries/directory             -           packages/directory.git              git
+libraries/filepath              -           packages/filepath.git               git
+libraries/ghc-prim              -           packages/ghc-prim.git               git
+libraries/haskeline             -           -                                   git
+libraries/haskell98             -           packages/haskell98.git              git
+libraries/haskell2010           -           packages/haskell2010.git            git
+libraries/hoopl                 -           packages/hoopl.git                  git
+libraries/hpc                   -           packages/hpc.git                    git
+libraries/integer-gmp           -           packages/integer-gmp.git            git
+libraries/integer-simple        -           packages/integer-simple.git         git
+libraries/old-locale            -           packages/old-locale.git             git
+libraries/old-time              -           packages/old-time.git               git
+libraries/pretty                -           -                                   git
+libraries/process               -           packages/process.git                git
+libraries/template-haskell      -           packages/template-haskell.git       git
+libraries/terminfo              -           -                                   git
+libraries/time                  -           -                                   git
+libraries/transformers          -           -                                   git
+libraries/unix                  -           packages/unix.git                   git
+libraries/Win32                 -           -                                   git
+libraries/xhtml                 -           -                                   git
+testsuite                       testsuite   testsuite.git                       git
+nofib                           nofib       nofib.git                           git
+libraries/parallel              extra       packages/parallel.git               git
+libraries/stm                   extra       packages/stm.git                    git
+libraries/random                dph         -                                   git
+libraries/primitive             dph         -                                   git
+libraries/vector                dph         -                                   git
+libraries/dph                   dph         packages/dph.git                    git
+.                               -           ghc.git                             git