summaryrefslogtreecommitdiff
blob: 983d73703e6194067dae5db392a42b5b38089e9d (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
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ml/ocaml-mysql/ocaml-mysql-1.0.3.ebuild,v 1.1 2005/02/06 16:20:11 mattam Exp $

inherit findlib

IUSE="doc"

DESCRIPTION="A package for ocaml that provides access to mysql databases."
SRC_URI="http://raevnos.pennmush.org/code/${PN}/${P}.tar.gz"
HOMEPAGE="http://raevnos.pennmush.org/code/ocaml-mysql/index.html"

DEPEND=">=dev-lang/ocaml-3.06
	>=dev-db/mysql-4.0.12"

RDEPEND="$DEPEND"

SLOT="0"
LICENSE="LGPL-2"
KEYWORDS="x86 ppc"

src_compile()
{
	epatch ${FILESDIR}/${P}-head.patch
	econf || die "configure failed"
	make all || die "make failed"
	make opt
}

src_install()
{
	findlib_src_preinst
	make install || die

	( use doc ) && dohtml -r doc/html/*
	dodoc META COPYING CHANGES README VERSION
}