summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndres Loeh <kosmikus@gentoo.org>2005-02-26 15:26:01 +0000
committerAndres Loeh <kosmikus@gentoo.org>2005-02-26 15:26:01 +0000
commit126506789ed5a309dcf66fc9f590fdb01bb81c40 (patch)
tree43b681e5fe3461a43e064d09dd004077fe556ecd /dev-haskell
parentBetter support for embedded and PXE thanks to solar. (diff)
downloadgentoo-2-126506789ed5a309dcf66fc9f590fdb01bb81c40.tar.gz
gentoo-2-126506789ed5a309dcf66fc9f590fdb01bb81c40.tar.bz2
gentoo-2-126506789ed5a309dcf66fc9f590fdb01bb81c40.zip
initial import of dev-haskell/cabal. cabal provides infrastructure for the distribution of future Haskell libraries.
Diffstat (limited to 'dev-haskell')
-rw-r--r--dev-haskell/cabal/ChangeLog10
-rw-r--r--dev-haskell/cabal/Manifest5
-rw-r--r--dev-haskell/cabal/cabal-0.5.ebuild77
-rw-r--r--dev-haskell/cabal/files/digest-cabal-0.51
-rw-r--r--dev-haskell/cabal/metadata.xml8
5 files changed, 101 insertions, 0 deletions
diff --git a/dev-haskell/cabal/ChangeLog b/dev-haskell/cabal/ChangeLog
new file mode 100644
index 000000000000..bfcfd61c9482
--- /dev/null
+++ b/dev-haskell/cabal/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for dev-haskell/cabal
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-haskell/cabal/ChangeLog,v 1.1 2005/02/26 15:26:01 kosmikus Exp $
+
+*cabal-0.5 (26 Feb 2005)
+
+ 26 Feb 2005; Andres Loeh <kosmikus@gentoo.org> +metadata.xml,
+ +cabal-0.5.ebuild:
+ Initial import.
+
diff --git a/dev-haskell/cabal/Manifest b/dev-haskell/cabal/Manifest
new file mode 100644
index 000000000000..0c17986f8904
--- /dev/null
+++ b/dev-haskell/cabal/Manifest
@@ -0,0 +1,5 @@
+MD5 6e0bfcbc73ac727934ab8b18e4fc9ac5 cabal-0.1.ebuild 1829
+MD5 dc0537a25f82eab687f3e58d5d2b4e79 cabal-0.5.ebuild 1206
+MD5 0b2872d51fdf7a2694dab3d34b57667d metadata.xml 232
+MD5 d89e54e0d971167e8d185f244ddc81eb files/digest-cabal-0.1 58
+MD5 9d318d0c3adc5992247ee3f54ff9c5b6 files/digest-cabal-0.5 58
diff --git a/dev-haskell/cabal/cabal-0.5.ebuild b/dev-haskell/cabal/cabal-0.5.ebuild
new file mode 100644
index 000000000000..8fd2fcae014d
--- /dev/null
+++ b/dev-haskell/cabal/cabal-0.5.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-haskell/cabal/cabal-0.5.ebuild,v 1.1 2005/02/26 15:26:01 kosmikus Exp $
+
+inherit ghc-package
+
+DESCRIPTION="Haskell Common Architecture for Building Applications and Libraries"
+HOMEPAGE="http://haskell.org/cabal"
+SRC_URI="http://haskell.org/cabal/release/${P}.tgz"
+LICENSE="as-is"
+SLOT="0"
+
+KEYWORDS="~x86"
+
+IUSE=""
+
+DEPEND="${DEPEND}
+ >=virtual/ghc-6.2"
+
+S="${WORKDIR}/${PN}"
+
+# The following functions exist because they are likely to be extracted
+# to an eclass when other Cabal-based packages are added to Portage.
+
+cabal-configure() {
+ ./setup configure \
+ --ghc --prefix=/usr \
+ --with-compiler="$(ghc-getghc)" \
+ --with-hc-pkg="$(ghc-getghcpkg)" \
+ "$@" || die "setup configure failed"
+}
+
+cabal-build() {
+ ./setup build \
+ || die "setup build failed"
+}
+
+cabal-copy() {
+ ./setup copy \
+ --copy-prefix="${D}/usr" \
+ || die "setup copy failed"
+}
+
+cabal-pkg() {
+ ./setup register \
+ --gen-script \
+ || die "setup register failed"
+ # sed on ghc-pkg when it isn't always called ghc-pkg
+ # therefore, sed on a flag (we assume a lot about register.sh here)
+ sed -i "s|--auto-ghci-libs\(.*\)$|--force \1 --config-file=\\\\|" register.sh
+ echo "${S}/$(ghc-localpkgconf)" >> register.sh
+ ghc-setup-pkg
+ ./register.sh
+ ghc-install-pkg
+}
+
+src_compile() {
+ # bootstrap: build setup
+ make HC="$(ghc-getghc)" setup || die "make setup failed"
+ # cabal-style configure and compile
+ cabal-configure
+ cabal-build
+}
+
+src_install() {
+ cabal-copy
+ ghc-makeghcilib ${D}/usr/lib/Cabal-${PV}/libHSCabal-${PV}.a
+ cabal-pkg
+ # documentation (install directly; generation seems broken to me atm)
+ 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
+}
diff --git a/dev-haskell/cabal/files/digest-cabal-0.5 b/dev-haskell/cabal/files/digest-cabal-0.5
new file mode 100644
index 000000000000..c3ea655579dd
--- /dev/null
+++ b/dev-haskell/cabal/files/digest-cabal-0.5
@@ -0,0 +1 @@
+MD5 76be68429fe6034c28356d8c8205b7fc cabal-0.5.tgz 354557
diff --git a/dev-haskell/cabal/metadata.xml b/dev-haskell/cabal/metadata.xml
new file mode 100644
index 000000000000..dcdfa93b10ec
--- /dev/null
+++ b/dev-haskell/cabal/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>haskell</herd>
+ <maintainer>
+ <email>kosmikus@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>