summaryrefslogtreecommitdiff
path: root/dev-ml
diff options
context:
space:
mode:
authorMatthieu Sozeau <mattam@gentoo.org>2005-03-27 15:30:56 +0000
committerMatthieu Sozeau <mattam@gentoo.org>2005-03-27 15:30:56 +0000
commit479c46a25821de0bca90bdc0432283263ff7624e (patch)
treece9006a5228f48daca9df82be0bfb3561224bc25 /dev-ml
parentTypo on the gmime dep. (diff)
downloadgentoo-2-479c46a25821de0bca90bdc0432283263ff7624e.tar.gz
gentoo-2-479c46a25821de0bca90bdc0432283263ff7624e.tar.bz2
gentoo-2-479c46a25821de0bca90bdc0432283263ff7624e.zip
New ebuild, ocaml RPC implementation.
Diffstat (limited to 'dev-ml')
-rw-r--r--dev-ml/rpc/ChangeLog11
-rw-r--r--dev-ml/rpc/Manifest3
-rw-r--r--dev-ml/rpc/files/digest-rpc-0.4.11
-rw-r--r--dev-ml/rpc/files/ocamlrpcgen.142
-rw-r--r--dev-ml/rpc/metadata.xml5
-rw-r--r--dev-ml/rpc/rpc-0.4.1.ebuild53
6 files changed, 115 insertions, 0 deletions
diff --git a/dev-ml/rpc/ChangeLog b/dev-ml/rpc/ChangeLog
new file mode 100644
index 000000000000..9207910501cc
--- /dev/null
+++ b/dev-ml/rpc/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for dev-ml/rpc
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ml/rpc/ChangeLog,v 1.1 2005/03/27 15:30:56 mattam Exp $
+
+*rpc-0.4.1 (27 Mar 2005)
+
+ 27 Mar 2005; Matthieu Sozeau <mattam@gentoo.org> +metadata.xml,
+ +files/ocamlrpcgen.1, +rpc-0.4.1.ebuild:
+ A Sun RPC implementation for ocaml. Thanks to Thomas de Grenier de Latour
+ <degrenier@easyconnect.fr> for initial ebuild.
+
diff --git a/dev-ml/rpc/Manifest b/dev-ml/rpc/Manifest
new file mode 100644
index 000000000000..a69c1bc819ab
--- /dev/null
+++ b/dev-ml/rpc/Manifest
@@ -0,0 +1,3 @@
+MD5 5c5107341296cc1f1c0a0f83ce1e647d rpc-0.4.1.ebuild 1290
+MD5 6c96519c2eaa540cbf4a847d694aad06 files/digest-rpc-0.4.1 61
+MD5 5ac175b0a62d4fb3064745c41e1eff02 files/ocamlrpcgen.1 1021
diff --git a/dev-ml/rpc/files/digest-rpc-0.4.1 b/dev-ml/rpc/files/digest-rpc-0.4.1
new file mode 100644
index 000000000000..c342b485e7d2
--- /dev/null
+++ b/dev-ml/rpc/files/digest-rpc-0.4.1
@@ -0,0 +1 @@
+MD5 3cabac4cd3a60b276098003d5dd5e697 rpc-0.4.1.tar.gz 154817
diff --git a/dev-ml/rpc/files/ocamlrpcgen.1 b/dev-ml/rpc/files/ocamlrpcgen.1
new file mode 100644
index 000000000000..19d3ca0f01ec
--- /dev/null
+++ b/dev-ml/rpc/files/ocamlrpcgen.1
@@ -0,0 +1,42 @@
+.TH ocamlrpcgen 1 "2004"
+.SH NAME
+ocamlrpcgen \- Ocaml module generator for RPC message handling
+.SH SYNOPSIS
+.B ocamlrpcgen
+[\fIOPTION\fR] \fIfile.xdr\fR...
+.SH DESCRIPTION
+.B ocamlrpcgen
+is a command-line tool that generates O'Caml modules which greatly
+simplify the creation and invocation of remote procedures. It uses
+description files in the XDR format.
+.TP
+\fB\-aux\fR
+Generates file_aux.ml file
+.TP
+\fB\-clnt\fR
+Generates file_clnt.ml file
+.TP
+\fB\-srv\fR
+Generates file_srv.ml file
+.TP
+\fB\-int v\fR
+Set the default variant of the language mapping of int
+.TP
+\fB\-hyper v\fR
+Set the default variant of the language mapping of hyper
+.TP
+\fB\-cpp p\fR
+Call the command p as preprocessor
+.TP
+\fB\-D var=value\fR
+Define the preprocessor variable var
+.TP
+\fB\-U var\fR
+Undefine the preprocessor variable var
+.TP
+\fB\-help\fR, \fB\--help\fR
+Display the list of options
+.SH AUTHOR
+This manual page was written by Thomas Petazzoni
+<thomas.petazzoni@enix.org> for the Debian GNU/Linux system (but may
+be used by others).
diff --git a/dev-ml/rpc/metadata.xml b/dev-ml/rpc/metadata.xml
new file mode 100644
index 000000000000..2193d772e351
--- /dev/null
+++ b/dev-ml/rpc/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/rpc/rpc-0.4.1.ebuild b/dev-ml/rpc/rpc-0.4.1.ebuild
new file mode 100644
index 000000000000..f967434dec2b
--- /dev/null
+++ b/dev-ml/rpc/rpc-0.4.1.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ml/rpc/rpc-0.4.1.ebuild,v 1.1 2005/03/27 15:30:56 mattam Exp $
+
+inherit findlib
+
+DESCRIPTION="OCaml implementation of Sun's protocol for Remote Procedure Calls"
+HOMEPAGE="http://www.ocaml-programming.de/programming/rpc.html"
+LICENSE="as-is"
+DEPEND=">=dev-lang/ocaml-3.08
+ dev-ml/equeue
+ >=dev-ml/ocamlnet-0.95
+ >=dev-ml/netclient-0.90"
+SRC_URI="http://www.ocaml-programming.de/packages/${P}.tar.gz"
+SLOT="0"
+KEYWORDS="~x86 ~ppc"
+IUSE="doc"
+# Stripping breaks ocamlrpcgen
+RESTRICT="nostrip"
+
+# TODO: add optional AUTH support
+# - add "auth" to IUSE
+# - "$(use_with auth auth-local)" + "$(use_with auth auth-dh)" for ./configure
+# - "use auth && dodoc doc/README.authdh" for src_install()
+# But that's still a bit experimental, and i have no way to test it.
+
+src_compile() {
+ ./configure -with-ocamlrpcgen || die "Configuration failed"
+ make all opt || die "Compilation failed"
+}
+
+src_install () {
+ dodir /usr/bin
+ findlib_src_install BINDIR=${D}/usr/bin/
+ dodoc doc/{README,LICENSE,INSTALL}
+ if use doc; then
+ for dir in examples/*
+ do
+ if [ -d $dir ]
+ then
+ insinto /usr/share/doc/${PF}/$dir
+ doins $dir/*
+ else
+ insinto /usr/share/doc/${PF}/examples
+ doins $dir
+ fi
+ done
+ insinto /usr/share/doc/${PF}/examples
+ doins doc/*.ml*
+ fi
+ # Thanks to Thomas Petazzoni for this manpage, it's from his Debian package
+ doman ${FILESDIR}/ocamlrpcgen.1
+}