ChangeLog

# ChangeLog for dev-ml/ocaml-mysql
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/dev-ml/ocaml-mysql/ChangeLog,v 1.9 2008/04/20 14:24:21 aballier Exp $

20 Apr 2008; Alexis Ballier
-files/ocaml-mysql-1.0.3-shtool.patch, -ocaml-mysql-1.0.3-r1.ebuild:
remove old

20 Apr 2008; Markus Meier ocaml-mysql-1.0.4.ebuild:
x86 stable, bug #217549

19 Apr 2008; nixnut ocaml-mysql-1.0.4.ebuild:
Stable on ppc wrt bug 217549

*ocaml-mysql-1.0.4 (03 Jan 2008)

03 Jan 2008; Alexis Ballier
+ocaml-mysql-1.0.4.ebuild:
version bump, make ocamlopt optional, ~amd64

23 Nov 2006; Francesco Riosa
ocaml-mysql-1.0.3-r1.ebuild:
dev-db/mysql => virtual/mysql

10 Sep 2006; Alexandre Buisse
-ocaml-mysql-1.0.3.ebuild:
Removed vulnerable 1.0.3 (bug #140545).

17 Aug 2005; Francesco Riosa
+files/ocaml-mysql-1.0.3-shtool-r1.patch, ocaml-mysql-1.0.3-r1.ebuild:
fix Bug #101349, recreated the patch to apply to the correct file

*ocaml-mysql-1.0.3-r1 (02 Jun 2005)

02 Jun 2005; Matthieu Sozeau
+files/ocaml-mysql-1.0.3-shtool.patch, +ocaml-mysql-1.0.3-r1.ebuild:
Fixes security bug in shtool (see bug #93784).

*ocaml-mysql-1.0.3 (06 Feb 2005)

06 Feb 2005; Matthieu Sozeau +metadata.xml,
+files/ocaml-mysql-1.0.3-head.patch, +ocaml-mysql-1.0.3.ebuild:
Mysql wrapper for ocaml. Original ebuild from gim . Fixes bug
#32726.

Manifest

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

AUX ocaml-mysql-1.0.3-head.patch 1635 RMD160 2170d145833669fa344285ee26cea5857ba9015c SHA1 5872bbfc312eec1d668b6cdd284efb950afc874e SHA256 e0352eff5ff3e81858c0163eac18afe8f8d7f5811e51a47b0d6a1d497eea58a3
AUX ocaml-mysql-1.0.3-shtool-r1.patch 608 RMD160 6b3785b01bdb23e9cb37c55d1c736c84944af5b5 SHA1 04caa34c34c4a833faa761f3801a53a424b1fef1 SHA256 566d149a809af207b710966eba4aaf3c354d4c68c4a78ec83409482e8c4ed9d3
DIST ocaml-mysql-1.0.4.tar.gz 119584 RMD160 57b316fdbdd26762916859d04ab0ca15c1365203 SHA1 e8b7c2d84eee9ae798cd5dcd3ba68fc64c321f9b SHA256 59d11111558986f0ed237016f9758a3cb99e2fdd0ce0dc128319a3ac2a55259e
EBUILD ocaml-mysql-1.0.4.ebuild 1379 RMD160 8923568329c64c612ab23fa40cc9404be17f741b SHA1 9682a4f92f255e88fbdc2c233afb25f695bc8272 SHA256 b6497f0c3aa64e45a9e9ad1fb9802365be3cbf8f24e9e59833d53d1ef4041529
MISC ChangeLog 1609 RMD160 421a9a9534366b8794691123eb98f0524bbc4554 SHA1 886cf0f4a6647c87f5aa545961d692231bb1f671 SHA256 697e1b1d6ffb49ec7818d049ee2e378480eb6f99dddbc0942cff078ecadc3ebe
MISC metadata.xml 157 RMD160 30153301a2a5cca5547a6e47941aae2895837613 SHA1 66e87d50f913856e703f3ee29841b03332af40db SHA256 d14b8b08774f2a40f42d70ff40b1b4f1c4725e7095d702143a32909553eac799
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)

iEYEARECAAYFAkgLUiEACgkQvFcC4BYPU0obzwCfQaXa4QqmNr9AvkYD+LbiKAIX
ypAAn2J7+tfJre9hLETlbzjWCazDwzFs
=WiHz
-----END PGP SIGNATURE-----

files

metadata.xml




ml

ocaml-mysql-1.0.4.ebuild

# Copyright 1999-2008 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.4.ebuild,v 1.3 2008/04/20 14:13:50 maekke Exp $

inherit findlib eutils

EAPI="1"

IUSE="doc +ocamlopt"

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
>=virtual/mysql-4.0"

RDEPEND="$DEPEND"

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

pkg_setup() {
if use ocamlopt && ! built_with_use --missing true dev-lang/ocaml ocamlopt; then
eerror "In order to build ${PN} with native code support from ocaml"
eerror "You first need to have a native code ocaml compiler."
eerror "You need to install dev-lang/ocaml with ocamlopt useflag on."
die "Please install ocaml with ocamlopt useflag"
fi
}

src_unpack() {
unpack ${A}
cd "${S}"

epatch "${FILESDIR}/${PN}-1.0.3-head.patch"
epatch "${FILESDIR}/${PN}-1.0.3-shtool-r1.patch"
}

src_compile()
{
econf
emake all || die "make failed"
if use ocamlopt; then
emake opt || die "make opt failed"
fi
}

src_install()
{
findlib_src_preinst
emake install || die "make install failed"

use doc && dohtml -r doc/html/*
dodoc CHANGES README VERSION
}