diff options
author | Matthieu Sozeau <mattam@gentoo.org> | 2005-02-06 16:20:11 +0000 |
---|---|---|
committer | Matthieu Sozeau <mattam@gentoo.org> | 2005-02-06 16:20:11 +0000 |
commit | 545edafe21f1a467012b95272a1a6c8c710c04cb (patch) | |
tree | 1f506310a5c6655792967ff2e6d5f86add84d08a /dev-ml | |
parent | Initial import, fixes #63286 (diff) | |
download | gentoo-2-545edafe21f1a467012b95272a1a6c8c710c04cb.tar.gz gentoo-2-545edafe21f1a467012b95272a1a6c8c710c04cb.tar.bz2 gentoo-2-545edafe21f1a467012b95272a1a6c8c710c04cb.zip |
New ebuild, fixes bug #32726.
Diffstat (limited to 'dev-ml')
-rw-r--r-- | dev-ml/ocaml-mysql/ChangeLog | 11 | ||||
-rw-r--r-- | dev-ml/ocaml-mysql/Manifest | 2 | ||||
-rw-r--r-- | dev-ml/ocaml-mysql/files/digest-ocaml-mysql-1.0.3 | 1 | ||||
-rw-r--r-- | dev-ml/ocaml-mysql/files/ocaml-mysql-1.0.3-head.patch | 27 | ||||
-rw-r--r-- | dev-ml/ocaml-mysql/metadata.xml | 5 | ||||
-rw-r--r-- | dev-ml/ocaml-mysql/ocaml-mysql-1.0.3.ebuild | 37 |
6 files changed, 83 insertions, 0 deletions
diff --git a/dev-ml/ocaml-mysql/ChangeLog b/dev-ml/ocaml-mysql/ChangeLog new file mode 100644 index 000000000000..0fd779ace74f --- /dev/null +++ b/dev-ml/ocaml-mysql/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for dev-ml/ocaml-mysql +# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ml/ocaml-mysql/ChangeLog,v 1.1 2005/02/06 16:20:11 mattam Exp $ + +*ocaml-mysql-1.0.3 (06 Feb 2005) + + 06 Feb 2005; Matthieu Sozeau <mattam@gentoo.org> +metadata.xml, + +files/ocaml-mysql-1.0.3-head.patch, +ocaml-mysql-1.0.3.ebuild: + Mysql wrapper for ocaml. Original ebuild from gim <gentoo@gim.name>. Fixes bug + #32726. + diff --git a/dev-ml/ocaml-mysql/Manifest b/dev-ml/ocaml-mysql/Manifest new file mode 100644 index 000000000000..2402ede43848 --- /dev/null +++ b/dev-ml/ocaml-mysql/Manifest @@ -0,0 +1,2 @@ +MD5 c94e4ddd9faa65c0e3c63b3e5c1993b0 ocaml-mysql-1.0.3.ebuild 816 +MD5 d6862e23b576fefef089e739a132cd16 files/digest-ocaml-mysql-1.0.3 69 diff --git a/dev-ml/ocaml-mysql/files/digest-ocaml-mysql-1.0.3 b/dev-ml/ocaml-mysql/files/digest-ocaml-mysql-1.0.3 new file mode 100644 index 000000000000..b6a1e1190087 --- /dev/null +++ b/dev-ml/ocaml-mysql/files/digest-ocaml-mysql-1.0.3 @@ -0,0 +1 @@ +MD5 3254be1cb6ef8801701a5628e60cfee4 ocaml-mysql-1.0.3.tar.gz 111574 diff --git a/dev-ml/ocaml-mysql/files/ocaml-mysql-1.0.3-head.patch b/dev-ml/ocaml-mysql/files/ocaml-mysql-1.0.3-head.patch new file mode 100644 index 000000000000..8e178ff23c83 --- /dev/null +++ b/dev-ml/ocaml-mysql/files/ocaml-mysql-1.0.3-head.patch @@ -0,0 +1,27 @@ +--- etc/shtool.orig 2004-02-15 15:58:06.714608714 +0100 ++++ etc/shtool 2004-02-15 15:58:45.627450465 +0100 +@@ -532,13 +532,13 @@ + if [ ".$opt_e" = .yes -a ".`echo $text | egrep '%d'`" != . ]; then + if [ ".$domainname" = . ]; then + if [ -f /etc/resolv.conf ]; then +- domainname="`egrep '^[ ]*domain' /etc/resolv.conf | head -1 |\ ++ domainname="`egrep '^[ ]*domain' /etc/resolv.conf | head -n 1 |\ + sed -e 's/.*domain//' \ + -e 's/^[ ]*//' -e 's/^ *//' -e 's/^ *//' \ + -e 's/^\.//' -e 's/^/./' |\ + awk '{ printf("%s", $1); }'`" + if [ ".$domainname" = . ]; then +- domainname="`egrep '^[ ]*search' /etc/resolv.conf | head -1 |\ ++ domainname="`egrep '^[ ]*search' /etc/resolv.conf | head -n 1 |\ + sed -e 's/.*search//' \ + -e 's/^[ ]*//' -e 's/^ *//' -e 's/^ *//' \ + -e 's/ .*//' -e 's/ .*//' \ +@@ -2100,7 +2100,7 @@ + if [ -r "$FILE" ]; then + # grep out current information + id=`grep 'Version [0-9]*.[0-9]*[.abps][0-9]* ([0-9]*-[a-zA-Z]*-[0-9]*)' $FILE | \ +- head -1 | \ ++ head -n 1 | \ + sed -e 's%.*Version \([0-9]*\)\.\([0-9]*\)\([.abps]\)\([0-9]*\) (\([0-9]*-[a-zA-Z]*-[0-9]*\)).*%\1:\2:\3:\4:\5%'` + version=`echo $id | awk -F: '{ print $1 }'` + revision=`echo $id | awk -F: '{ print $2 }'` diff --git a/dev-ml/ocaml-mysql/metadata.xml b/dev-ml/ocaml-mysql/metadata.xml new file mode 100644 index 000000000000..849ed8ebf13d --- /dev/null +++ b/dev-ml/ocaml-mysql/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>ml</herd> +</pkgmetadata> diff --git a/dev-ml/ocaml-mysql/ocaml-mysql-1.0.3.ebuild b/dev-ml/ocaml-mysql/ocaml-mysql-1.0.3.ebuild new file mode 100644 index 000000000000..983d73703e61 --- /dev/null +++ b/dev-ml/ocaml-mysql/ocaml-mysql-1.0.3.ebuild @@ -0,0 +1,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 +} |