From 8923d15a1d1747702a001bdf414d65ca7989b0c1 Mon Sep 17 00:00:00 2001 From: Alexis Ballier Date: Sun, 8 Aug 2010 08:23:53 +0000 Subject: Initial import, ebuild by me (Portage version: 2.2_rc67/cvs/Linux x86_64) --- dev-ml/gd4o/ChangeLog | 10 +++++++ dev-ml/gd4o/gd4o-1.0_alpha5.ebuild | 55 ++++++++++++++++++++++++++++++++++++++ dev-ml/gd4o/metadata.xml | 5 ++++ 3 files changed, 70 insertions(+) create mode 100644 dev-ml/gd4o/ChangeLog create mode 100644 dev-ml/gd4o/gd4o-1.0_alpha5.ebuild create mode 100644 dev-ml/gd4o/metadata.xml (limited to 'dev-ml') diff --git a/dev-ml/gd4o/ChangeLog b/dev-ml/gd4o/ChangeLog new file mode 100644 index 000000000000..a472573511c1 --- /dev/null +++ b/dev-ml/gd4o/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for dev-ml/gd4o +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ml/gd4o/ChangeLog,v 1.1 2010/08/08 08:23:53 aballier Exp $ + +*gd4o-1.0_alpha5 (08 Aug 2010) + + 08 Aug 2010; Alexis Ballier +gd4o-1.0_alpha5.ebuild, + +metadata.xml: + Initial import, ebuild by me + diff --git a/dev-ml/gd4o/gd4o-1.0_alpha5.ebuild b/dev-ml/gd4o/gd4o-1.0_alpha5.ebuild new file mode 100644 index 000000000000..3b23e72fc96d --- /dev/null +++ b/dev-ml/gd4o/gd4o-1.0_alpha5.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ml/gd4o/gd4o-1.0_alpha5.ebuild,v 1.1 2010/08/08 08:23:53 aballier Exp $ + +EAPI=3 + +inherit toolchain-funcs findlib + +MY_P="${P/_alpha/a}" + +DESCRIPTION="OCaml interface to the GD graphics library" +HOMEPAGE="http://sourceforge.net/projects/gd4o/" +SRC_URI="mirror://sourceforge/gd4o/${MY_P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64" +IUSE="doc +ocamlopt" + +DEPEND=">=dev-lang/ocaml-3.10.2[ocamlopt?] + media-libs/gd + media-libs/jpeg + sys-libs/zlib + media-libs/libpng + media-libs/freetype:2" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + sed -i 's/CFLAGS =/CFLAGS += -fPIC/' Makefile || die +} + +src_compile() { + emake CC="$(tc-getCC)" || die + if use ocamlopt ; then + emake CC="$(tc-getCC)" opt || die + fi + if use doc ; then + emake docs || die + fi +} + +src_test() { + emake test || die + if use ocamlopt ; then + emake test.opt || die + fi +} + +src_install() { + findlib_src_install + dodoc BUGS CHANGES README* TODO doc/manual.txt + use doc && dohtml -r doc +} diff --git a/dev-ml/gd4o/metadata.xml b/dev-ml/gd4o/metadata.xml new file mode 100644 index 000000000000..2193d772e351 --- /dev/null +++ b/dev-ml/gd4o/metadata.xml @@ -0,0 +1,5 @@ + + + +ml + -- cgit v1.2.3-65-gdbad