summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndres Loeh <kosmikus@gentoo.org>2004-08-24 08:47:49 +0000
committerAndres Loeh <kosmikus@gentoo.org>2004-08-24 08:47:49 +0000
commitec16a973d3f8f9724d2ddbbe6635a9f79b88c187 (patch)
treed7721ffcb18e4c08dbc16c5909154e4063aac2e5 /dev-haskell/c2hs
parentgrammar fixes in postinst instruction (diff)
downloadhistorical-ec16a973d3f8f9724d2ddbbe6635a9f79b88c187.tar.gz
historical-ec16a973d3f8f9724d2ddbbe6635a9f79b88c187.tar.bz2
historical-ec16a973d3f8f9724d2ddbbe6635a9f79b88c187.zip
new import
Diffstat (limited to 'dev-haskell/c2hs')
-rw-r--r--dev-haskell/c2hs/ChangeLog10
-rw-r--r--dev-haskell/c2hs/Manifest4
-rw-r--r--dev-haskell/c2hs/c2hs-0.13.1.ebuild46
-rw-r--r--dev-haskell/c2hs/files/digest-c2hs-0.13.11
-rw-r--r--dev-haskell/c2hs/metadata.xml8
5 files changed, 69 insertions, 0 deletions
diff --git a/dev-haskell/c2hs/ChangeLog b/dev-haskell/c2hs/ChangeLog
new file mode 100644
index 000000000000..18e07ca23db5
--- /dev/null
+++ b/dev-haskell/c2hs/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for dev-haskell/c2hs
+# Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-haskell/c2hs/ChangeLog,v 1.1 2004/08/24 08:47:49 kosmikus Exp $
+
+*c2hs-0.13.1 (24 Aug 2004)
+
+ 24 Aug 2004; Andres Loeh <kosmikus@gentoo.org> c2hs-0.13.1.ebuild,
+ metadata.xml:
+ Initial import.
+
diff --git a/dev-haskell/c2hs/Manifest b/dev-haskell/c2hs/Manifest
new file mode 100644
index 000000000000..8e4b4ba3dfbc
--- /dev/null
+++ b/dev-haskell/c2hs/Manifest
@@ -0,0 +1,4 @@
+MD5 0c2be33cbd47d1196929418a71068aed c2hs-0.13.1.ebuild 1132
+MD5 f970407f307f84cf5f90aac82b82c91b ChangeLog 347
+MD5 a769ecfcd1cdd2d40986627df7dfb249 metadata.xml 224
+MD5 553c80abca37c62b17c9e593c4ffae4e files/digest-c2hs-0.13.1 63
diff --git a/dev-haskell/c2hs/c2hs-0.13.1.ebuild b/dev-haskell/c2hs/c2hs-0.13.1.ebuild
new file mode 100644
index 000000000000..ed7661b57627
--- /dev/null
+++ b/dev-haskell/c2hs/c2hs-0.13.1.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-haskell/c2hs/c2hs-0.13.1.ebuild,v 1.1 2004/08/24 08:47:49 kosmikus Exp $
+
+DESCRIPTION="An interface generator for Haskell"
+HOMEPAGE="http://www.cse.unsw.edu.au/~chak/haskell/c2hs/"
+SRC_URI="http://www.cse.unsw.edu.au/~chak/haskell/c2hs/${P}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+
+KEYWORDS="~x86"
+
+IUSE=""
+
+DEPEND=">=virtual/ghc-6.2"
+
+src_compile() {
+ # package config file apparently missing haskell98 dependency
+ sed -i "s:lang\":lang\",\"haskell98\":" c2hs/c2hs.conf.in
+ econf --disable-add-package || die
+ # tested emake; doesn't work
+ make || die
+}
+
+src_install() {
+ make DESTDIR=${D} install || die
+}
+
+pkg_postinst() {
+ einfo "Registering c2hs package"
+ /usr/bin/c2hs-config --package-conf \
+ | ghc-pkg -u --auto-ghci-libs
+}
+
+pkg_postrm() {
+ # check if another version is still there
+ has_version "<${CATEGORY}/${PF}" \
+ || has_version ">${CATEGORY}/${PF}" \
+ || unregister_ghc_packages
+}
+
+unregister_ghc_packages() {
+ einfo "Unregistering c2hs package"
+ /usr/bin/ghc-pkg -r c2hs
+}
+
diff --git a/dev-haskell/c2hs/files/digest-c2hs-0.13.1 b/dev-haskell/c2hs/files/digest-c2hs-0.13.1
new file mode 100644
index 000000000000..54799ac06fe3
--- /dev/null
+++ b/dev-haskell/c2hs/files/digest-c2hs-0.13.1
@@ -0,0 +1 @@
+MD5 7b00cc31c50a6eb6b29ec537e5581a24 c2hs-0.13.1.tar.gz 371020
diff --git a/dev-haskell/c2hs/metadata.xml b/dev-haskell/c2hs/metadata.xml
new file mode 100644
index 000000000000..a53a18c06081
--- /dev/null
+++ b/dev-haskell/c2hs/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>