Copyright | Martin Sjögren 2004 |
---|---|
License | BSD3 |
Maintainer | [email protected] |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
This is an alternative build system that delegates everything to the make
program. All the commands just end up calling make
with appropriate
arguments. The intention was to allow preexisting packages that used
makefiles to be wrapped into Cabal packages. In practice essentially all
such packages were converted over to the "Simple" build system instead.
Consequently this module is not used much and it certainly only sees cursory
maintenance and no testing. Perhaps at some point we should stop pretending
that it works.
Uses the parsed command-line from Distribution.Simple.Setup in order to build Haskell tools using a back-end build system based on make. Obviously we assume that there is a configure script, and that after the ConfigCmd has been run, there is a Makefile. Further assumptions:
- ConfigCmd
- We assume the configure script accepts
--with-hc
,--with-hc-pkg
,--prefix
,--bindir
,--libdir
,--libexecdir
,--datadir
. - BuildCmd
- We assume that the default Makefile target will build everything.
- InstallCmd
- We assume there is an
install
target. Note that we assume that this does *not* register the package! - CopyCmd
- We assume there is a
copy
target, and a variable$(destdir)
. Thecopy
target should probably just invokemake install
recursively (e.g.$(MAKE) install prefix=$(destdir)/$(prefix) bindir=$(destdir)/$(bindir)
. The reason we can't invokemake install
directly here is that we don't know the value of$(prefix)
. - SDistCmd
- We assume there is a
dist
target. - RegisterCmd
- We assume there is a
register
target and a variable$(user)
. - UnregisterCmd
- We assume there is an
unregister
target. - HaddockCmd
- We assume there is a
docs
ordoc
target.
Synopsis
- module Distribution.Package
- data License
- = GPL (Maybe Version)
- | AGPL (Maybe Version)
- | LGPL (Maybe Version)
- | BSD2
- | BSD3
- | BSD4
- | MIT
- | ISC
- | MPL Version
- | Apache (Maybe Version)
- | PublicDomain
- | AllRightsReserved
- | UnspecifiedLicense
- | OtherLicense
- | UnknownLicense String
- data Version
- defaultMain :: IO ()
- defaultMainArgs :: [String] -> IO ()
- defaultMainNoRead :: PackageDescription -> IO ()
Documentation
module Distribution.Package
Indicates the license under which a package's source code is released.
Versions of the licenses not listed here will be rejected by Hackage and
cause cabal check
to issue a warning.
GPL (Maybe Version) | |
AGPL (Maybe Version) | |
LGPL (Maybe Version) | GNU Lesser General Public License, version 2.1 or version 3. |
BSD2 | |
BSD3 | |
BSD4 | 4-clause BSD license. This license has not been approved by the OSI and is incompatible with the GNU GPL. It is provided for historical reasons and should be avoided. |
MIT | |
ISC | |
MPL Version | |
Apache (Maybe Version) | |
PublicDomain | The author of a package disclaims any copyright to its source code and dedicates it to the public domain. This is not a software license. Please note that it is not possible to dedicate works to the public domain in every jurisdiction, nor is a work that is in the public domain in one jurisdiction necessarily in the public domain elsewhere. |
AllRightsReserved | Explicitly 'All Rights Reserved', eg for proprietary software. The package may not be legally modified or redistributed by anyone but the rightsholder. |
UnspecifiedLicense | No license specified which legally defaults to 'All Rights Reserved'. The package may not be legally modified or redistributed by anyone but the rightsholder. |
OtherLicense | Any other software license. |
UnknownLicense String | Indicates an erroneous license name. |
Instances
A Version
represents the version of a software entity.
Instances of Eq
and Ord
are provided, which gives exact
equality and lexicographic ordering of the version number
components (i.e. 2.1 > 2.0, 1.2.3 > 1.2.2, etc.).
This type is opaque and distinct from the Version
type in
Data.Version since Cabal-2.0
. The difference extends to the
Binary
instance using a different (and more compact) encoding.
Since: Cabal-2.0.0.2
Instances
defaultMain :: IO () Source #
defaultMainArgs :: [String] -> IO () Source #
defaultMainNoRead :: PackageDescription -> IO () Source #
Deprecated: it ignores its PackageDescription arg