summaryrefslogtreecommitdiff
path: root/dev-ml
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2010-08-08 08:23:53 +0000
committerAlexis Ballier <aballier@gentoo.org>2010-08-08 08:23:53 +0000
commit8923d15a1d1747702a001bdf414d65ca7989b0c1 (patch)
treeb220155063a081aca3eaee8052fc0fc077b0cff1 /dev-ml
parentVersion bump. (diff)
downloadgentoo-2-8923d15a1d1747702a001bdf414d65ca7989b0c1.tar.gz
gentoo-2-8923d15a1d1747702a001bdf414d65ca7989b0c1.tar.bz2
gentoo-2-8923d15a1d1747702a001bdf414d65ca7989b0c1.zip
Initial import, ebuild by me
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'dev-ml')
-rw-r--r--dev-ml/gd4o/ChangeLog10
-rw-r--r--dev-ml/gd4o/gd4o-1.0_alpha5.ebuild55
-rw-r--r--dev-ml/gd4o/metadata.xml5
3 files changed, 70 insertions, 0 deletions
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 <aballier@gentoo.org> +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 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>ml</herd>
+</pkgmetadata>