blob: c0b56995a9e30610682b391465defe3f9a85892e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-haskell/wash/wash-2.0.6.ebuild,v 1.2 2005/03/25 00:31: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
!>=virtual/ghc-6.4
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 exec_prefix=${D}/usr 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
}
|