From f18b24f425b124dfc88d9efc4be9ffbc2cd9fd35 Mon Sep 17 00:00:00 2001 From: Stanislav Sedov Date: Tue, 8 Apr 2008 12:15:02 +0000 Subject: [PATCH] - Add ocaml-typeconv, a mini library required for some other preprocessing libraries. WWW: http://www.janestcapital.com/ocaml/index.html --- devel/Makefile | 1 + devel/ocaml-typeconv/Makefile | 35 ++++++++++++++++++++++++++++++++++ devel/ocaml-typeconv/distinfo | 3 +++ devel/ocaml-typeconv/pkg-descr | 7 +++++++ 4 files changed, 46 insertions(+) create mode 100644 devel/ocaml-typeconv/Makefile create mode 100644 devel/ocaml-typeconv/distinfo create mode 100644 devel/ocaml-typeconv/pkg-descr diff --git a/devel/Makefile b/devel/Makefile index faa6400566d9..8e382cf7e390 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -847,6 +847,7 @@ SUBDIR += ocaml-sdl SUBDIR += ocaml-sem SUBDIR += ocaml-sexplib + SUBDIR += ocaml-typeconv SUBDIR += ocaml-ulex SUBDIR += ocaml-xstr SUBDIR += ocaml-xstrp4 diff --git a/devel/ocaml-typeconv/Makefile b/devel/ocaml-typeconv/Makefile new file mode 100644 index 000000000000..456233276ed5 --- /dev/null +++ b/devel/ocaml-typeconv/Makefile @@ -0,0 +1,35 @@ +# New ports collection makefile for: ocaml-type-conv +# Date created: 2008-04-08 +# Whom: Stanislav Sedov +# +# $FreeBSD$ +# + +PORTNAME= type-conv +PORTVERSION= 1.0.0 +CATEGORIES= devel +MASTER_SITES= http://janestcapital.com/ocaml/ +PKGNAMEPREFIX= ocaml- + +MAINTAINER= stas@FreeBSD.org +COMMENT= Type conversion routines for OCaml + +USE_GMAKE= yes +USE_OCAML= yes +USE_OCAML_FINDLIB=yes + +SA_DIR= ${LOCALBASE}/${OCAML_SITELIBDIR} + +.include + +post-extract: +# For nonstandard prefixes +.if !exists(${OCAMLFIND_DESTDIR}) + ${MKDIR} ${OCAMLFIND_DESTDIR} +.endif + +post-install: + @${FIND} ${OCAMLFIND_DESTDIR}/${PORTNAME} -type f | \ + ${SED} "s,^${PREFIX}/,," >> ${TMPPLIST} + +.include diff --git a/devel/ocaml-typeconv/distinfo b/devel/ocaml-typeconv/distinfo new file mode 100644 index 000000000000..fb4136dcaac0 --- /dev/null +++ b/devel/ocaml-typeconv/distinfo @@ -0,0 +1,3 @@ +MD5 (type-conv-1.0.0.tar.gz) = 703e7f74d9c01d5e49274011e846bba8 +SHA256 (type-conv-1.0.0.tar.gz) = 3435f00c1c56c9a4ba7a4281fd9f7eec5ee2cda75806498a11974a379e3f1870 +SIZE (type-conv-1.0.0.tar.gz) = 22456 diff --git a/devel/ocaml-typeconv/pkg-descr b/devel/ocaml-typeconv/pkg-descr new file mode 100644 index 000000000000..59288aa141be --- /dev/null +++ b/devel/ocaml-typeconv/pkg-descr @@ -0,0 +1,7 @@ +The type-conv mini library factors out functionality needed by different +preprocessors that generate code from type specifications, because this +functionality cannot be duplicated without losing the ability to use +these preprocessors simultaneously. + +Author: Markus Mottl +WWW: http://www.janestcapital.com/ocaml/index.html