# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="WASH/CGI is an EDSL for server-side Web scripting with Sessions, Compositional Forms, and Graphics" HOMEPAGE="http://www.informatik.uni-freiburg.de/~thiemann/haskell/WASH/" SRC_URI="http://www.informatik.uni-freiburg.de/~thiemann/haskell/WASH/${P}.tgz" LICENSE="" SLOT="0" KEYWORDS="~x86" IUSE="doc" DEPEND=">=virtual/ghc-6.2" src_compile() { # determine ghc library directory # (so that it's possible to install the library for # multiple versions of ghc) local myopts 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}" addwrite /usr/lib/ghc-6.2.1 ./configure \ --prefix=${D}/usr \ ${myopts} \ || die "./configure failed" make depend || die "Make depend failed" make all || die "Make all failed" } src_install() { ghc_version=`best_version virtual/ghc | sed "s:.*/::"` addwrite /usr/lib/ghc-6.2.1 make install || die "make install failed" dodoc INSTALL if use doc; then cp -r Examples ${D}/usr/share/doc/${PF} cd doc dohtml -r * fi }