summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndres Loeh <kosmikus@gentoo.org>2004-11-18 17:11:05 +0000
committerAndres Loeh <kosmikus@gentoo.org>2004-11-18 17:11:05 +0000
commit6efd284a7abd09598e263ae932fb333023373a92 (patch)
treec638d005839bc7cc78f472129a87309f5e6054d3 /dev-haskell/wash
parentAdd warning in pkg_postinst if /etc/pam.d/cron is SUID and give user instruct... (diff)
downloadgentoo-2-6efd284a7abd09598e263ae932fb333023373a92.tar.gz
gentoo-2-6efd284a7abd09598e263ae932fb333023373a92.tar.bz2
gentoo-2-6efd284a7abd09598e263ae932fb333023373a92.zip
moved from dev-haskell/WASH
Diffstat (limited to 'dev-haskell/wash')
-rw-r--r--dev-haskell/wash/ChangeLog15
-rw-r--r--dev-haskell/wash/Manifest6
-rw-r--r--dev-haskell/wash/metadata.xml8
-rw-r--r--dev-haskell/wash/wash-2.0.5-r1.ebuild51
-rw-r--r--dev-haskell/wash/wash-2.0.5.ebuild97
5 files changed, 177 insertions, 0 deletions
diff --git a/dev-haskell/wash/ChangeLog b/dev-haskell/wash/ChangeLog
new file mode 100644
index 000000000000..537633b2ae87
--- /dev/null
+++ b/dev-haskell/wash/ChangeLog
@@ -0,0 +1,15 @@
+# ChangeLog for dev-haskell/wash
+# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-haskell/wash/ChangeLog,v 1.1 2004/11/18 17:11:05 kosmikus Exp $
+
+*WASH-2.0.5-r1 (18 Nov 2004)
+
+ 18 Nov 2004; Andres Loeh <kosmikus@gentoo.org> +WASH-2.0.5-r1.ebuild:
+ Updated ebuild to make use of ghc-package eclass (bug #69270).
+
+*WASH-2.0.5 (26 Oct 2004)
+
+ 26 Oct 2004; Andres Loeh <kosmikus@gentoo.org> WASH-2.0.5.ebuild,
+ metadata.xml:
+ Initial import, as requested in bug #56997.
+
diff --git a/dev-haskell/wash/Manifest b/dev-haskell/wash/Manifest
new file mode 100644
index 000000000000..5945569d4cac
--- /dev/null
+++ b/dev-haskell/wash/Manifest
@@ -0,0 +1,6 @@
+MD5 1b6f631b689e2bfcdcdc6ddf8cdfabbf wash-2.0.5-r1.ebuild 1347
+MD5 146a7a47e9e36a6007e352025f69ac86 wash-2.0.5.ebuild 2730
+MD5 44effdb37de40d55fda82fe4c0a6c58f ChangeLog 533
+MD5 a769ecfcd1cdd2d40986627df7dfb249 metadata.xml 224
+MD5 17b177468da822de7bb9ba89a644b9ce files/digest-wash-2.0.5 62
+MD5 17b177468da822de7bb9ba89a644b9ce files/digest-wash-2.0.5-r1 62
diff --git a/dev-haskell/wash/metadata.xml b/dev-haskell/wash/metadata.xml
new file mode 100644
index 000000000000..a53a18c06081
--- /dev/null
+++ b/dev-haskell/wash/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>
diff --git a/dev-haskell/wash/wash-2.0.5-r1.ebuild b/dev-haskell/wash/wash-2.0.5-r1.ebuild
new file mode 100644
index 000000000000..dd552f69d9f4
--- /dev/null
+++ b/dev-haskell/wash/wash-2.0.5-r1.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-haskell/wash/wash-2.0.5-r1.ebuild,v 1.1 2004/11/18 17:11:05 kosmikus Exp $
+
+inherit ghc-package
+
+# the installation bundle is called WashNGo
+MY_P="WashNGo"
+MY_PV=${MY_P}-${PV}
+
+DESCRIPTION="WASH is a family of embedded domain-specific languages for programming Web applications"
+HOMEPAGE="http://www.informatik.uni-freiburg.de/~thiemann/haskell/WASH/"
+SRC_URI="http://www.informatik.uni-freiburg.de/~thiemann/haskell/WASH/${MY_PV}.tgz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="doc postgres"
+
+DEPEND=">=virtual/ghc-6.2
+ postgres? ( dev-haskell/c2hs
+ >=dev-db/postgresql-7.4.3 )"
+
+S=${WORKDIR}/${MY_PV}
+
+src_compile() {
+ local myopts
+ myopts="${myopts} `use_enable postgres dbconnect`"
+ myopts="${myopts} `use_enable doc build-docs`"
+ ./configure \
+ --prefix="${D}usr" \
+ --host=${CHOST} \
+ --libdir=${D}/$(ghc-libdir) \
+ ${myopts} \
+ --enable-register-package="${S}/$(ghc-localpkgconf)" \
+ || die "configure failed"
+ make depend || die "make depend failed"
+ make all || die "make all failed"
+}
+
+src_install() {
+ ghc-setup-pkg
+ make install || die "make install failed"
+ ghc-install-pkg
+ dodoc README
+ if use doc; then
+ cp -r Examples ${D}/usr/share/doc/${PF}
+ cd doc
+ dohtml -r *
+ fi
+}
diff --git a/dev-haskell/wash/wash-2.0.5.ebuild b/dev-haskell/wash/wash-2.0.5.ebuild
new file mode 100644
index 000000000000..d94af850170e
--- /dev/null
+++ b/dev-haskell/wash/wash-2.0.5.ebuild
@@ -0,0 +1,97 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-haskell/wash/wash-2.0.5.ebuild,v 1.1 2004/11/18 17:11:05 kosmikus Exp $
+
+# the installation bundle is called WashNGo
+MY_P="WashNGo"
+MY_PV=${MY_P}-${PV}
+
+DESCRIPTION="WASH is a family of embedded domain-specific languages for programming Web applications"
+HOMEPAGE="http://www.informatik.uni-freiburg.de/~thiemann/haskell/WASH/"
+SRC_URI="http://www.informatik.uni-freiburg.de/~thiemann/haskell/WASH/${MY_PV}.tgz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="doc postgres"
+
+DEPEND=">=virtual/ghc-6.2
+ postgres? ( dev-haskell/c2hs
+ >=dev-db/postgresql-7.4.3 )"
+
+# RDEPEND: c2hs needed?
+
+S=${WORKDIR}/${MY_PV}
+
+src_compile() {
+ local myopts
+ myopts="${myopts} `use_enable postgres dbconnect`"
+ myopts="${myopts} `use_enable doc build-docs`"
+ # determine ghc library directory
+ ghc_version=`best_version virtual/ghc | sed "s:.*/::"`
+ test -n ${ghc_version} && ghclibdir="/usr/lib/${ghc_version}"
+ test -n ${ghclibdir} || ghclibdir="/usr/lib"
+ test -n ${ghclibdir} && myopts="${myopts} --libdir=${D}${ghclibdir}"
+ ./configure \
+ --prefix="${D}usr" \
+ --host=${CHOST} \
+ ${myopts} \
+ --enable-register-package="${S}/${MY_PV}.conf" \
+ || die "configure failed"
+ make depend || die "make depend failed"
+ make all || die "make all failed"
+}
+
+src_install() {
+ mkdir -p ${D}${ghclibdir}
+ echo "[]" > ${S}/${MY_PV}.conf
+ make install || die "make install failed"
+ # fix references to D in temporary package configuration file
+ cat ${S}/${MY_PV}.conf | sed "s:${D}::" \
+ > ${D}${ghclibdir}/${MY_PV}.conf
+
+ dodoc README
+ if use doc; then
+ cp -r Examples ${D}/usr/share/doc/${PF}
+ cd doc
+ dohtml -r *
+ fi
+}
+
+pkg_postinst() {
+ # packages: WASH/WASHHTML cgi/WASH-CGI dbconnect/DBCONNECT
+ # Utility/Utility Mail/WASHMail
+ register_ghc_package Utility
+ register_ghc_package WASHHTML
+ register_ghc_package WASHMail
+ register_ghc_package WASH-CGI
+ register_ghc_package WASH
+ use postgres && register_ghc_package DBCONNECT
+}
+
+pkg_postrm() {
+ # check if another version is still there
+ has_version "<${CATEGORY}/${PF}" \
+ || has_version ">${CATEGORY}/${PF}" \
+ || unregister_ghc_packages
+}
+
+register_ghc_package() {
+ einfo "Registering $1 package"
+ /usr/bin/ghc-pkg -f ${ghclibdir}/${MY_PV}.conf -s $1 \
+ | /usr/bin/ghc-pkg -u --auto-ghci-libs
+}
+
+unregister_ghc_packages() {
+ unregister_ghc_package DBCONNECT
+ unregister_ghc_package WASH
+ unregister_ghc_package WASH-CGI
+ unregister_ghc_package WASHMail
+ unregister_ghc_package WASHHTML
+ unregister_ghc_package Utility
+}
+
+unregister_ghc_package() {
+ einfo "Unregistering $1 package (warnings are safe to ignore)"
+ /usr/sbin/ghc-pkg -r $1
+}