diff options
author | Duncan Coutts <dcoutts@gentoo.org> | 2007-07-08 16:01:04 +0000 |
---|---|---|
committer | Duncan Coutts <dcoutts@gentoo.org> | 2007-07-08 16:01:04 +0000 |
commit | db42c6a2f6af5d0b22c4bb58a4dd5152334f55cd (patch) | |
tree | 42b41508f3dfc02805d0aa86cadc772176c57b66 /dev-haskell/cabal | |
parent | Use dev-lang/ghc rather than virtual/ghc. (diff) | |
download | gentoo-2-db42c6a2f6af5d0b22c4bb58a4dd5152334f55cd.tar.gz gentoo-2-db42c6a2f6af5d0b22c4bb58a4dd5152334f55cd.tar.bz2 gentoo-2-db42c6a2f6af5d0b22c4bb58a4dd5152334f55cd.zip |
New cabal version that comes with ghc-6.6.1.
(Portage version: 2.1.2.9)
Diffstat (limited to 'dev-haskell/cabal')
-rw-r--r-- | dev-haskell/cabal/ChangeLog | 7 | ||||
-rw-r--r-- | dev-haskell/cabal/cabal-1.1.6.2.ebuild | 63 | ||||
-rw-r--r-- | dev-haskell/cabal/files/digest-cabal-1.1.6.2 | 3 |
3 files changed, 72 insertions, 1 deletions
diff --git a/dev-haskell/cabal/ChangeLog b/dev-haskell/cabal/ChangeLog index 21d1f84e582f..cb22ea9948fd 100644 --- a/dev-haskell/cabal/ChangeLog +++ b/dev-haskell/cabal/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-haskell/cabal # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-haskell/cabal/ChangeLog,v 1.26 2007/04/29 18:02:20 kolmodin Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-haskell/cabal/ChangeLog,v 1.27 2007/07/08 16:01:04 dcoutts Exp $ + +*cabal-1.1.6.2 (08 Jul 2007) + + 08 Jul 2007; Duncan Coutts <dcoutts@gentoo.org> +cabal-1.1.6.2.ebuild: + New cabal version that comes with ghc-6.6.1. 29 Apr 2007; Lennart Kolmodin <kolmodin@gentoo.org> cabal-1.1.3-r1.ebuild, cabal-1.1.4.ebuild: diff --git a/dev-haskell/cabal/cabal-1.1.6.2.ebuild b/dev-haskell/cabal/cabal-1.1.6.2.ebuild new file mode 100644 index 000000000000..7e80bdba61e2 --- /dev/null +++ b/dev-haskell/cabal/cabal-1.1.6.2.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-haskell/cabal/cabal-1.1.6.2.ebuild,v 1.1 2007/07/08 16:01:04 dcoutts Exp $ + +CABAL_FEATURES="bootstrap profile lib" +inherit haskell-cabal eutils + +DESCRIPTION="Haskell Common Architecture for Building Applications and Libraries" +HOMEPAGE="http://haskell.org/cabal" +SRC_URI="http://haskell.org/cabal/release/${P}/${P}.tar.gz" +LICENSE="as-is" +SLOT="0" + +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" + +IUSE="doc" + +DEPEND=">=virtual/ghc-6.2" + +GHC_PV="6.6.1" + +src_unpack() { + if test $(ghc-version) = ${GHC_PV}; then + elog "cabal-${PV} is included in ghc-${GHC_PV}, nothing to install." + else + unpack "${A}" + if ! $(ghc-cabal); then + sed -i 's/Build-Depends: base/Build-Depends: base, unix/' \ + ${S}/Cabal.cabal + fi + fi +} + +src_compile() { + if ! test $(ghc-version) = ${GHC_PV}; then + if ghc-cabal; then + make setup HC="$(ghc-getghc) -ignore-package Cabal" + else + make setup HC="$(ghc-getghc)" + fi + cabal-configure + cabal-build + fi +} + +src_install() { + if test $(ghc-version) = ${GHC_PV}; then + dodir "$(ghc-confdir)" + echo '[]' > "${D}/$(ghc-confdir)/$(ghc-localpkgconf)" + else + cabal_src_install + + # documentation (install directly) + dohtml -r doc/users-guide + if use doc; then + dohtml -r doc/API + dohtml -r doc/pkg-spec-html + dodoc doc/pkg-spec.pdf + fi + dodoc changelog copyright README releaseNotes TODO + fi +} + diff --git a/dev-haskell/cabal/files/digest-cabal-1.1.6.2 b/dev-haskell/cabal/files/digest-cabal-1.1.6.2 new file mode 100644 index 000000000000..05df5b6eab65 --- /dev/null +++ b/dev-haskell/cabal/files/digest-cabal-1.1.6.2 @@ -0,0 +1,3 @@ +MD5 fc3c2b6ddf11da28f1dadba4676500d2 cabal-1.1.6.2.tar.gz 549071 +RMD160 de6ba431220670736e4fa2e407e59b60b83cddba cabal-1.1.6.2.tar.gz 549071 +SHA256 9c687e4ca1a15958a7fe1caabc3c6d7d8e361e37cc37bbf7c8c80a3e507a7b41 cabal-1.1.6.2.tar.gz 549071 |